Searched refs:codec (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-11-stable/sys/dev/sound/pci/
H A Dspicds.c38 static MALLOC_DEFINE(M_SPICDS, "spicds", "SPI codec");
46 unsigned int type; /* codec type */
56 spicds_wrbit(struct spicds_info *codec, int bit) argument
59 if (codec->cif)
67 codec->ctrl(codec->devinfo, cs, 0, cdti);
69 codec->ctrl(codec->devinfo, cs, 1, cdti);
76 spicds_wrcd(struct spicds_info *codec, int reg, u_int16_t val) argument
81 device_printf(codec
142 struct spicds_info *codec; local
166 spicds_destroy(struct spicds_info *codec) argument
173 spicds_settype(struct spicds_info *codec, unsigned int type) argument
181 spicds_setcif(struct spicds_info *codec, unsigned int cif) argument
189 spicds_setformat(struct spicds_info *codec, unsigned int format) argument
197 spicds_setdvc(struct spicds_info *codec, unsigned int dvc) argument
205 spicds_init(struct spicds_info *codec) argument
251 spicds_reinit(struct spicds_info *codec) argument
272 spicds_set(struct spicds_info *codec, int dir, unsigned int left, unsigned int right) argument
[all...]
H A Dspicds.h114 void spicds_destroy(struct spicds_info *codec);
115 void spicds_settype(struct spicds_info *codec, unsigned int type);
116 void spicds_setcif(struct spicds_info *codec, unsigned int cif);
117 void spicds_setformat(struct spicds_info *codec, unsigned int format);
118 void spicds_setdvc(struct spicds_info *codec, unsigned int dvc);
119 void spicds_init(struct spicds_info *codec);
120 void spicds_reinit(struct spicds_info *codec);
121 void spicds_set(struct spicds_info *codec, int dir, unsigned int left, unsigned int right);
H A Denvy24.c95 /* codec interface entrys */
98 void (*destroy)(void *codec);
99 void (*init)(void *codec);
100 void (*reinit)(void *codec);
101 void (*setvolume)(void *codec, int dir, unsigned int left, unsigned int right);
102 void (*setrate)(void *codec, int which, int rate);
113 struct codec_entry *codec; member in struct:cfg_info
238 -1, /* Master output level. It is depend on codec support */
248 1, /* alternative codec */
361 &delta_codec, /* default codec routine
807 envy24_gpio_i2c_ctl(void *codec, unsigned int scl, unsigned int sda) argument
823 i2c_wrbit(void *codec, void (*ctrl)(void*, unsigned int, unsigned int), int bit) argument
842 i2c_start(void *codec, void (*ctrl)(void*, unsigned int, unsigned int)) argument
855 i2c_stop(void *codec, void (*ctrl)(void*, unsigned int, unsigned int)) argument
868 i2c_ack(void *codec, void (*ctrl)(void*, unsigned int, unsigned int)) argument
882 i2c_wr(void *codec, void (*ctrl)(void*, unsigned int, unsigned int), u_int32_t dev, int reg, u_int8_t val) argument
911 envy24_delta_ak4524_ctl(void *codec, unsigned int cs, unsigned int cclk, unsigned int cdti) argument
961 envy24_delta_ak4524_destroy(void *codec) argument
983 envy24_delta_ak4524_init(void *codec) argument
1038 envy24_delta_ak4524_reinit(void *codec) argument
1051 envy24_delta_ak4524_setvolume(void *codec, int dir, unsigned int left, unsigned int right) argument
[all...]
H A Dvia82c686.c86 struct ac97_info *codec; member in struct:via_info
148 /* poll until codec not busy */
153 printf("via: codec busy\n");
166 /* poll until codec valid */
171 printf("via: codec invalid\n");
319 * If the codec supports variable-rate audio (i.e. does the upsampling
320 * itself), then negotiate the rate with the codec. Otherwise,
325 return ac97_setrate(via->codec, reg, speed);
513 /* Wait for codec to become ready (largest reported delay here 310ms) */
544 via->codec
[all...]
H A Denvy24ht.c104 /* codec interface entrys */
107 void (*destroy)(void *codec);
108 void (*init)(void *codec);
109 void (*reinit)(void *codec);
110 void (*setvolume)(void *codec, int dir, unsigned int left, unsigned int right);
111 void (*setrate)(void *codec, int which, int rate);
122 struct codec_entry *codec; member in struct:cfg_info
207 /* SPI codec access interface */
237 -1, /* Master output level. It is depend on codec support */
247 1, /* alternative codec */
896 envy24ht_spi_ctl(void *codec, unsigned int cs, unsigned int cclk, unsigned int cdti) argument
946 envy24ht_spi_destroy(void *codec) argument
968 envy24ht_spi_init(void *codec) argument
994 envy24ht_spi_reinit(void *codec) argument
1007 envy24ht_spi_setvolume(void *codec, int dir, unsigned int left, unsigned int right) argument
[all...]
H A Dich.c189 struct ac97_info *codec; member in struct:sc_info
244 /* ac97 codec */
472 ch->spd = ((uint64_t)ac97_setrate(sc->codec, ch->spdreg, r) *
703 * function of the ac97 codec initialization code (to be investigated).
842 device_printf(sc->dev, "primary codec not ready!\n");
920 * the primary codec becoming ready in ich_init().
1004 sc->codec = AC97_CREATE(dev, sc, ich_ac97);
1005 if (sc->codec == NULL)
1025 ac97_setflags(sc->codec, ac97_getflags(sc->codec) | AC97_F_EAPD_IN
[all...]
H A Dfm801.c207 * ac97 codec routines
221 printf("fm801 rdcd: codec busy\n");
233 printf("fm801 rdcd: write codec invalid\n");
250 /* Poll until codec is ready */
256 printf("fm801 wrcd: read codec busy\n");
263 /* wait until codec is ready */
269 printf("fm801 wrcd: read codec busy\n");
547 /* reset codec */
576 struct ac97_info *codec = NULL; local
617 codec
[all...]
H A Dvia8233.c113 struct ac97_info *codec; member in struct:via_info
314 /* poll until codec not busy */
320 device_printf(via->dev, "%s: codec busy\n", __func__);
329 /* poll until codec valid */
335 device_printf(via->dev, "%s: codec invalid\n", __func__);
479 return (ac97_setrate(via->codec, AC97_REGEXT_LADCRATE, speed));
511 return (ac97_setrate(via->codec, AC97_REGEXT_FDACRATE, speed));
1153 /* Wait for codec to become ready (largest reported delay 310ms) */
1160 device_printf(dev, "primary codec not ready (cnt = 0x%02x)\n", cnt);
1333 via->codec
[all...]
H A Datiixp.c120 struct ac97_info *codec; member in struct:atiixp_info
402 device_printf(sc->dev, "codec read timeout! (reg 0x%x)\n", reg);
1034 "WARNING: timeout during codec detection; "
1043 * ATI IXP can have upto 3 codecs, but single codec should be
1047 /* codec 0 present */
1054 /* codec 1 present */
1059 /* codec 2 present */
1069 sc->codec = AC97_CREATE(sc->dev, sc, atiixp_ac97);
1070 if (sc->codec == NULL)
1078 ac97_setflags(sc->codec, ac97_getflag
[all...]
H A Dcsapcm.c138 /* ac97 codec */
780 struct ac97_info *codec; local
811 codec = AC97_CREATE(dev, csa, csa_ac97);
812 if (codec == NULL) {
817 ac97_setflags(codec, AC97_F_EAPD_INV);
818 if (mixer_init(dev, ac97_getmixerclass(), codec) == -1) {
819 ac97_destroy(codec);
829 ac97_destroy(codec);
838 ac97_destroy(codec);
888 * And power down everything on the AC97 codec
[all...]
H A Daureal.c140 if (j==50) printf("pcm%d: codec timeout reading register %x (%x)\n",
157 if (j==50) printf("codec timeout during write of register %x, data %x\n",
165 if (tries == 3) printf("giving up writing 0x%4x to codec reg %2x\n", data, regno);
448 /* init codec */
483 /* setup codec */
490 if (j==100) device_printf(dev, "codec not ready, status 0x%x\n", i);
561 struct ac97_info *codec; local
634 codec = AC97_CREATE(dev, au, au_ac97);
635 if (codec == NULL) goto bad;
636 if (mixer_init(dev, ac97_getmixerclass(), codec)
[all...]
H A Dds1.c236 /* ac97 codec */
266 * "pcm0: ac97 codec init failed"
946 struct ac97_info *codec = NULL; local
989 codec = AC97_CREATE(dev, sc, ds_ac97);
990 if (codec == NULL)
998 ac97_setflags(codec, ac97_getflags(codec) | AC97_F_EAPD_INV);
1003 mixer_init(dev, ac97_getmixerclass(), codec);
1027 if (codec)
1028 ac97_destroy(codec);
[all...]
H A Dneomagic.c206 /* ac97 codec */
256 device_printf(sc->dev, "ac97 codec not ready\n");
276 device_printf(sc->dev, "ac97 codec not ready\n");
667 struct ac97_info *codec = NULL; local
693 codec = AC97_CREATE(dev, sc, nm_ac97);
694 if (codec == NULL) goto bad;
695 if (mixer_init(dev, ac97_getmixerclass(), codec) == -1) goto bad;
717 if (codec) ac97_destroy(codec);
H A Dt4dwave.c176 /* ac97 codec */
233 if (i == 0) printf("codec timeout during read of register %x\n", regno);
294 if (i==0) printf("codec timeout writing %x, data %x\n", regno, data);
826 struct ac97_info *codec = NULL; local
880 codec = AC97_CREATE(dev, tr, tr_ac97);
881 if (codec == NULL) goto bad;
882 if (mixer_init(dev, ac97_getmixerclass(), codec) == -1) goto bad;
964 if (codec) ac97_destroy(codec);
H A Dcs4281.c252 /* ac97 codec */
550 /* Power off card and codec */
613 device_printf(sc->dev, "codec did not avail\n");
618 * AC97 codec */
623 /* (9) Wait for codec calibration */
632 device_printf(sc->dev, "codec failed to calibrate\n");
648 /* (12) Start digital data transfer of audio data to codec */
762 struct ac97_info *codec = NULL; local
840 codec = AC97_CREATE(dev, sc, cs4281_ac97);
841 if (codec
[all...]
H A Dmaestro.c162 struct ac97_info *codec; member in struct:agg_info
596 /* XXX - 2nd codec should be looked at. */
772 "warning: codec not ready.\n");
1778 struct ac97_info *codec = NULL; local
1888 device_printf(dev, "PT101 codec detected!\n");
1893 codec = AC97_CREATE(dev, ess, agg_ac97);
1894 if (codec == NULL) {
1895 device_printf(dev, "failed to create AC97 codec softc!\n");
1899 if (mixer_init(dev, ac97_getmixerclass(), codec) == -1) {
1904 ess->codec
[all...]
H A Demu10kx-pcm.c107 struct ac97_info *codec; member in struct:emu_pcm_info
215 /* create submixer for AC97 codec */
216 if ((sc->ac97_mixerclass != NULL) && (sc->codec != NULL)) {
217 sc->sm = mixer_create(sc->dev, sc->ac97_mixerclass, sc->codec, "ac97");
262 /* drop submixer for AC97 codec */
289 to AC97 codec). Calculate it manually. */
410 /* Recording from AC97 codec.
510 * Some parts of AC97 codec are not used by hardware, but can be used
603 * in mixer). There is no 'playback' from AC97 codec -
654 /* real ac97 codec */
[all...]
H A Dmaestro3.c194 /* talk to the codec - called from ac97.c */
317 /* ac97 codec */
1319 struct ac97_info *codec = NULL; local
1415 codec = AC97_CREATE(dev, sc, m3_codec);
1416 if (codec == NULL) {
1420 if (mixer_init(dev, ac97_getmixerclass(), codec)) {
1462 if (codec)
1463 ac97_destroy(codec);
H A Des137x.c1099 /* try to reset codec directly */
1710 struct ac97_info *codec = NULL; local
1810 codec = AC97_CREATE(dev, es, es1371_ac97);
1811 if (codec == NULL)
1816 if (mixer_init(dev, ac97_getmixerclass(), codec))
1887 if (codec)
1888 ac97_destroy(codec);
H A Demu10k1.c374 /* ac97 codec */
2075 struct ac97_info *codec = NULL; local
2120 codec = AC97_CREATE(dev, sc, emu_ac97);
2121 if (codec == NULL) goto bad;
2122 gotmic = (ac97_getcaps(codec) & AC97_CAP_MICCHANNEL) ? 1 : 0;
2123 if (mixer_init(dev, ac97_getmixerclass(), codec) == -1) goto bad;
2151 if (codec) ac97_destroy(codec);
/freebsd-11-stable/sys/dev/sound/pcm/
H A Dac97_patch.c37 void ad1886_patch(struct ac97_info* codec) argument
46 ac97_wrcd(codec, AC97_AD_JACK_SPDIF, 0x0010);
49 void ad198x_patch(struct ac97_info* codec) argument
51 switch (ac97_getsubvendor(codec)) {
55 ac97_wrcd(codec, 0x76, ac97_rdcd(codec, 0x76) | 0x0420);
60 void ad1981b_patch(struct ac97_info* codec) argument
65 switch (ac97_getsubvendor(codec)) {
68 ac97_wrcd(codec, AC97_AD_JACK_SPDIF,
69 ac97_rdcd(codec, AC97_AD_JACK_SPDI
76 cmi9739_patch(struct ac97_info* codec) argument
93 alc655_patch(struct ac97_info* codec) argument
[all...]
H A Dac97.c41 static MALLOC_DEFINE(M_AC97, "ac97", "ac97 codec");
235 * XXX This is a fluke, really! The real codec
309 ac97_rdcd(struct ac97_info *codec, int reg) argument
311 if (codec->flags & AC97_F_RDCD_BUG) {
314 i[0] = AC97_READ(codec->methods, codec->devinfo, reg);
315 i[1] = AC97_READ(codec->methods, codec->devinfo, reg);
317 i[j-- & 1] = AC97_READ(codec->methods, codec
330 ac97_wrcd(struct ac97_info *codec, int reg, u_int16_t val) argument
336 ac97_reset(struct ac97_info *codec) argument
350 ac97_setrate(struct ac97_info *codec, int which, int rate) argument
381 ac97_setextmode(struct ac97_info *codec, u_int16_t mode) argument
397 ac97_getextmode(struct ac97_info *codec) argument
403 ac97_getextcaps(struct ac97_info *codec) argument
409 ac97_getcaps(struct ac97_info *codec) argument
415 ac97_getsubvendor(struct ac97_info *codec) argument
421 ac97_setrecsrc(struct ac97_info *codec, int channel) argument
437 ac97_setmixer(struct ac97_info *codec, unsigned channel, unsigned left, unsigned right) argument
516 ac97_fix_auxout(struct ac97_info *codec) argument
551 ac97_fix_tone(struct ac97_info *codec) argument
598 ac97_initmixer(struct ac97_info *codec) argument
795 ac97_reinitmixer(struct ac97_info *codec) argument
828 struct ac97_info *codec; local
852 ac97_destroy(struct ac97_info *codec) argument
862 ac97_setflags(struct ac97_info *codec, u_int32_t val) argument
868 ac97_getflags(struct ac97_info *codec) argument
878 struct ac97_info *codec; local
904 ac97_init_sysctl(struct ac97_info *codec) argument
921 codec, sizeof(codec), sysctl_hw_snd_ac97_eapd, local
928 struct ac97_info *codec = mix_getdevinfo(m); local
1029 struct ac97_info *codec = mix_getdevinfo(m); local
1044 struct ac97_info *codec = mix_getdevinfo(m); local
1054 struct ac97_info *codec = mix_getdevinfo(m); local
1065 struct ac97_info *codec = mix_getdevinfo(m); local
[all...]
H A Dac97.h96 void ac97_destroy(struct ac97_info *codec);
97 void ac97_setflags(struct ac97_info *codec, u_int32_t val);
98 u_int32_t ac97_getflags(struct ac97_info *codec);
99 int ac97_setrate(struct ac97_info *codec, int which, int rate);
100 int ac97_setextmode(struct ac97_info *codec, u_int16_t mode);
101 u_int16_t ac97_getextmode(struct ac97_info *codec);
102 u_int16_t ac97_getextcaps(struct ac97_info *codec);
103 u_int16_t ac97_getcaps(struct ac97_info *codec);
104 u_int32_t ac97_getsubvendor(struct ac97_info *codec);
106 u_int16_t ac97_rdcd(struct ac97_info *codec, in
[all...]
/freebsd-11-stable/sys/dev/sound/pci/hda/
H A Dhdacc.c63 #define hdacc_lock(codec) snd_mtxlock((codec)->lock)
64 #define hdacc_unlock(codec) snd_mtxunlock((codec)->lock)
65 #define hdacc_lockassert(codec) snd_mtxassert((codec)->lock)
66 #define hdacc_lockowned(codec) mtx_owned((codec)->lock)
455 struct hdacc_softc *codec = device_get_softc(dev); local
463 codec
511 struct hdacc_softc *codec = device_get_softc(dev); local
556 struct hdacc_softc *codec = device_get_softc(dev); local
604 struct hdacc_softc *codec = device_get_softc(dev); local
620 struct hdacc_softc *codec = device_get_softc(dev); local
633 struct hdacc_softc *codec = device_get_softc(dev); local
672 struct hdacc_softc *codec = device_get_softc(dev); local
682 struct hdacc_softc *codec = device_get_softc(dev); local
702 struct hdacc_softc *codec = device_get_softc(dev); local
712 struct hdacc_softc *codec = device_get_softc(dev); local
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_support_format_7zip.c122 unsigned long codec; member in struct:_7z_folder::_7z_coder
259 /* The codec information of a folder. */
260 unsigned long codec; member in struct:_7zip
667 has a coder with a _7Z_CRYPTO codec then the folder is encrypted.
672 switch(folder->coders[fidx].codec) {
1007 zip->codec = coder1->codec;
1010 switch (zip->codec) {
1016 if (coder2->codec != _7Z_X86 &&
1017 coder2->codec !
[all...]

Completed in 296 milliseconds

12