/freebsd-13-stable/sys/dev/sound/pci/ |
H A D | spicds.c | 40 static MALLOC_DEFINE(M_SPICDS, "spicds", "SPI codec"); 48 unsigned int type; /* codec type */ 58 spicds_wrbit(struct spicds_info *codec, int bit) argument 61 if (codec->cif) 69 codec->ctrl(codec->devinfo, cs, 0, cdti); 71 codec->ctrl(codec->devinfo, cs, 1, cdti); 78 spicds_wrcd(struct spicds_info *codec, int reg, u_int16_t val) argument 83 device_printf(codec 144 struct spicds_info *codec; local 168 spicds_destroy(struct spicds_info *codec) argument 175 spicds_settype(struct spicds_info *codec, unsigned int type) argument 183 spicds_setcif(struct spicds_info *codec, unsigned int cif) argument 191 spicds_setformat(struct spicds_info *codec, unsigned int format) argument 199 spicds_setdvc(struct spicds_info *codec, unsigned int dvc) argument 207 spicds_init(struct spicds_info *codec) argument 253 spicds_reinit(struct spicds_info *codec) argument 274 spicds_set(struct spicds_info *codec, int dir, unsigned int left, unsigned int right) argument [all...] |
H A D | spicds.h | 116 void spicds_destroy(struct spicds_info *codec); 117 void spicds_settype(struct spicds_info *codec, unsigned int type); 118 void spicds_setcif(struct spicds_info *codec, unsigned int cif); 119 void spicds_setformat(struct spicds_info *codec, unsigned int format); 120 void spicds_setdvc(struct spicds_info *codec, unsigned int dvc); 121 void spicds_init(struct spicds_info *codec); 122 void spicds_reinit(struct spicds_info *codec); 123 void spicds_set(struct spicds_info *codec, int dir, unsigned int left, unsigned int right);
|
H A D | envy24.c | 97 /* codec interface entrys */ 100 void (*destroy)(void *codec); 101 void (*init)(void *codec); 102 void (*reinit)(void *codec); 103 void (*setvolume)(void *codec, int dir, unsigned int left, unsigned int right); 104 void (*setrate)(void *codec, int which, int rate); 115 struct codec_entry *codec; member in struct:cfg_info 240 -1, /* Master output level. It is depend on codec support */ 250 1, /* alternative codec */ 363 &delta_codec, /* default codec routine 809 envy24_gpio_i2c_ctl(void *codec, unsigned int scl, unsigned int sda) argument 825 i2c_wrbit(void *codec, void (*ctrl)(void*, unsigned int, unsigned int), int bit) argument 844 i2c_start(void *codec, void (*ctrl)(void*, unsigned int, unsigned int)) argument 857 i2c_stop(void *codec, void (*ctrl)(void*, unsigned int, unsigned int)) argument 870 i2c_ack(void *codec, void (*ctrl)(void*, unsigned int, unsigned int)) argument 884 i2c_wr(void *codec, void (*ctrl)(void*, unsigned int, unsigned int), u_int32_t dev, int reg, u_int8_t val) argument 913 envy24_delta_ak4524_ctl(void *codec, unsigned int cs, unsigned int cclk, unsigned int cdti) argument 963 envy24_delta_ak4524_destroy(void *codec) argument 985 envy24_delta_ak4524_init(void *codec) argument 1040 envy24_delta_ak4524_reinit(void *codec) argument 1053 envy24_delta_ak4524_setvolume(void *codec, int dir, unsigned int left, unsigned int right) argument [all...] |
H A D | via82c686.c | 88 struct ac97_info *codec; member in struct:via_info 149 /* poll until codec not busy */ 154 printf("via: codec busy\n"); 166 /* poll until codec valid */ 171 printf("via: codec invalid\n"); 317 * If the codec supports variable-rate audio (i.e. does the upsampling 318 * itself), then negotiate the rate with the codec. Otherwise, 323 return ac97_setrate(via->codec, reg, speed); 509 /* Wait for codec to become ready (largest reported delay here 310ms) */ 540 via->codec [all...] |
H A D | envy24ht.c | 106 /* codec interface entrys */ 109 void (*destroy)(void *codec); 110 void (*init)(void *codec); 111 void (*reinit)(void *codec); 112 void (*setvolume)(void *codec, int dir, unsigned int left, unsigned int right); 113 void (*setrate)(void *codec, int which, int rate); 124 struct codec_entry *codec; member in struct:cfg_info 209 /* SPI codec access interface */ 239 -1, /* Master output level. It is depend on codec support */ 249 1, /* alternative codec */ 898 envy24ht_spi_ctl(void *codec, unsigned int cs, unsigned int cclk, unsigned int cdti) argument 948 envy24ht_spi_destroy(void *codec) argument 970 envy24ht_spi_init(void *codec) argument 996 envy24ht_spi_reinit(void *codec) argument 1009 envy24ht_spi_setvolume(void *codec, int dir, unsigned int left, unsigned int right) argument [all...] |
H A D | ich.c | 191 struct ac97_info *codec; member in struct:sc_info 246 /* ac97 codec */ 474 ch->spd = ((uint64_t)ac97_setrate(sc->codec, ch->spdreg, r) * 704 * function of the ac97 codec initialization code (to be investigated). 843 device_printf(sc->dev, "primary codec not ready!\n"); 921 * the primary codec becoming ready in ich_init(). 1005 sc->codec = AC97_CREATE(dev, sc, ich_ac97); 1006 if (sc->codec == NULL) 1026 ac97_setflags(sc->codec, ac97_getflags(sc->codec) | AC97_F_EAPD_IN [all...] |
H A D | fm801.c | 207 * 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"); 545 /* reset codec */ 574 struct ac97_info *codec = NULL; local 615 codec [all...] |
H A D | via8233.c | 115 struct ac97_info *codec; member in struct:via_info 315 /* poll until codec not busy */ 321 device_printf(via->dev, "%s: codec busy\n", __func__); 330 /* poll until codec valid */ 336 device_printf(via->dev, "%s: codec invalid\n", __func__); 480 return (ac97_setrate(via->codec, AC97_REGEXT_LADCRATE, speed)); 512 return (ac97_setrate(via->codec, AC97_REGEXT_FDACRATE, speed)); 1154 /* Wait for codec to become ready (largest reported delay 310ms) */ 1161 device_printf(dev, "primary codec not ready (cnt = 0x%02x)\n", cnt); 1334 via->codec [all...] |
H A D | atiixp.c | 122 struct ac97_info *codec; member in struct:atiixp_info 404 device_printf(sc->dev, "codec read timeout! (reg 0x%x)\n", reg); 1036 "WARNING: timeout during codec detection; " 1045 * ATI IXP can have upto 3 codecs, but single codec should be 1049 /* codec 0 present */ 1056 /* codec 1 present */ 1061 /* codec 2 present */ 1071 sc->codec = AC97_CREATE(sc->dev, sc, atiixp_ac97); 1072 if (sc->codec == NULL) 1080 ac97_setflags(sc->codec, ac97_getflag [all...] |
H A D | csapcm.c | 140 /* ac97 codec */ 782 struct ac97_info *codec; local 813 codec = AC97_CREATE(dev, csa, csa_ac97); 814 if (codec == NULL) { 819 ac97_setflags(codec, AC97_F_EAPD_INV); 820 if (mixer_init(dev, ac97_getmixerclass(), codec) == -1) { 821 ac97_destroy(codec); 831 ac97_destroy(codec); 840 ac97_destroy(codec); 890 * And power down everything on the AC97 codec [all...] |
H A D | aureal.c | 142 if (j==50) printf("pcm%d: codec timeout reading register %x (%x)\n", 159 if (j==50) printf("codec timeout during write of register %x, data %x\n", 167 if (tries == 3) printf("giving up writing 0x%4x to codec reg %2x\n", data, regno); 449 /* init codec */ 484 /* setup codec */ 491 if (j==100) device_printf(dev, "codec not ready, status 0x%x\n", i); 562 struct ac97_info *codec; local 635 codec = AC97_CREATE(dev, au, au_ac97); 636 if (codec == NULL) goto bad; 637 if (mixer_init(dev, ac97_getmixerclass(), codec) [all...] |
H A D | ds1.c | 238 /* ac97 codec */ 268 * "pcm0: ac97 codec init failed" 947 struct ac97_info *codec = NULL; local 990 codec = AC97_CREATE(dev, sc, ds_ac97); 991 if (codec == NULL) 999 ac97_setflags(codec, ac97_getflags(codec) | AC97_F_EAPD_INV); 1004 mixer_init(dev, ac97_getmixerclass(), codec); 1028 if (codec) 1029 ac97_destroy(codec); [all...] |
H A D | neomagic.c | 208 /* ac97 codec */ 258 device_printf(sc->dev, "ac97 codec not ready\n"); 278 device_printf(sc->dev, "ac97 codec not ready\n"); 669 struct ac97_info *codec = NULL; local 695 codec = AC97_CREATE(dev, sc, nm_ac97); 696 if (codec == NULL) goto bad; 697 if (mixer_init(dev, ac97_getmixerclass(), codec) == -1) goto bad; 719 if (codec) ac97_destroy(codec);
|
H A D | t4dwave.c | 178 /* ac97 codec */ 235 if (i == 0) printf("codec timeout during read of register %x\n", regno); 296 if (i==0) printf("codec timeout writing %x, data %x\n", regno, data); 827 struct ac97_info *codec = NULL; local 876 codec = AC97_CREATE(dev, tr, tr_ac97); 877 if (codec == NULL) goto bad; 878 if (mixer_init(dev, ac97_getmixerclass(), codec) == -1) goto bad; 935 if (codec) ac97_destroy(codec);
|
H A D | cs4281.c | 254 /* ac97 codec */ 552 /* Power off card and codec */ 615 device_printf(sc->dev, "codec did not avail\n"); 620 * AC97 codec */ 625 /* (9) Wait for codec calibration */ 634 device_printf(sc->dev, "codec failed to calibrate\n"); 650 /* (12) Start digital data transfer of audio data to codec */ 764 struct ac97_info *codec = NULL; local 842 codec = AC97_CREATE(dev, sc, cs4281_ac97); 843 if (codec [all...] |
H A D | maestro.c | 162 struct ac97_info *codec; member in struct:agg_info 591 /* XXX - 2nd codec should be looked at. */ 767 "warning: codec not ready.\n"); 1767 struct ac97_info *codec = NULL; local 1877 device_printf(dev, "PT101 codec detected!\n"); 1882 codec = AC97_CREATE(dev, ess, agg_ac97); 1883 if (codec == NULL) { 1884 device_printf(dev, "failed to create AC97 codec softc!\n"); 1888 if (mixer_init(dev, ac97_getmixerclass(), codec) == -1) { 1893 ess->codec [all...] |
/freebsd-13-stable/sys/dev/sound/pcm/ |
H A D | ac97_patch.c | 39 void ad1886_patch(struct ac97_info* codec) argument 48 ac97_wrcd(codec, AC97_AD_JACK_SPDIF, 0x0010); 51 void ad198x_patch(struct ac97_info* codec) argument 53 switch (ac97_getsubvendor(codec)) { 57 ac97_wrcd(codec, 0x76, ac97_rdcd(codec, 0x76) | 0x0420); 62 void ad1981b_patch(struct ac97_info* codec) argument 67 switch (ac97_getsubvendor(codec)) { 70 ac97_wrcd(codec, AC97_AD_JACK_SPDIF, 71 ac97_rdcd(codec, AC97_AD_JACK_SPDI 78 cmi9739_patch(struct ac97_info* codec) argument 95 alc655_patch(struct ac97_info* codec) argument [all...] |
H A D | ac97.c | 43 static MALLOC_DEFINE(M_AC97, "ac97", "ac97 codec"); 237 * XXX This is a fluke, really! The real codec 311 ac97_rdcd(struct ac97_info *codec, int reg) argument 313 if (codec->flags & AC97_F_RDCD_BUG) { 316 i[0] = AC97_READ(codec->methods, codec->devinfo, reg); 317 i[1] = AC97_READ(codec->methods, codec->devinfo, reg); 319 i[j-- & 1] = AC97_READ(codec->methods, codec 332 ac97_wrcd(struct ac97_info *codec, int reg, u_int16_t val) argument 338 ac97_reset(struct ac97_info *codec) argument 352 ac97_setrate(struct ac97_info *codec, int which, int rate) argument 383 ac97_setextmode(struct ac97_info *codec, u_int16_t mode) argument 399 ac97_getextmode(struct ac97_info *codec) argument 405 ac97_getextcaps(struct ac97_info *codec) argument 411 ac97_getcaps(struct ac97_info *codec) argument 417 ac97_getsubvendor(struct ac97_info *codec) argument 423 ac97_setrecsrc(struct ac97_info *codec, int channel) argument 439 ac97_setmixer(struct ac97_info *codec, unsigned channel, unsigned left, unsigned right) argument 518 ac97_fix_auxout(struct ac97_info *codec) argument 553 ac97_fix_tone(struct ac97_info *codec) argument 600 ac97_initmixer(struct ac97_info *codec) argument 797 ac97_reinitmixer(struct ac97_info *codec) argument 830 struct ac97_info *codec; local 854 ac97_destroy(struct ac97_info *codec) argument 864 ac97_setflags(struct ac97_info *codec, u_int32_t val) argument 870 ac97_getflags(struct ac97_info *codec) argument 880 struct ac97_info *codec; local 906 ac97_init_sysctl(struct ac97_info *codec) argument 924 codec, sizeof(codec), sysctl_hw_snd_ac97_eapd, local 931 struct ac97_info *codec = mix_getdevinfo(m); local 1032 struct ac97_info *codec = mix_getdevinfo(m); local 1047 struct ac97_info *codec = mix_getdevinfo(m); local 1057 struct ac97_info *codec = mix_getdevinfo(m); local 1068 struct ac97_info *codec = mix_getdevinfo(m); local [all...] |
H A D | ac97.h | 98 void ac97_destroy(struct ac97_info *codec); 99 void ac97_setflags(struct ac97_info *codec, u_int32_t val); 100 u_int32_t ac97_getflags(struct ac97_info *codec); 101 int ac97_setrate(struct ac97_info *codec, int which, int rate); 102 int ac97_setextmode(struct ac97_info *codec, u_int16_t mode); 103 u_int16_t ac97_getextmode(struct ac97_info *codec); 104 u_int16_t ac97_getextcaps(struct ac97_info *codec); 105 u_int16_t ac97_getcaps(struct ac97_info *codec); 106 u_int32_t ac97_getsubvendor(struct ac97_info *codec); 108 u_int16_t ac97_rdcd(struct ac97_info *codec, in [all...] |
/freebsd-13-stable/lib/libbearssl/ |
H A D | Makefile.libsa.inc | 19 codec/ccopy.c \ 20 codec/dec32be.c \ 21 codec/dec64be.c \ 22 codec/enc32be.c \ 23 codec/enc64be.c \ 24 codec/pemdec.c \
|
H A D | Makefile | 13 codec/dec16be.c \ 14 codec/dec16le.c \ 15 codec/dec32le.c \ 16 codec/dec64le.c \ 17 codec/enc16be.c \ 18 codec/enc16le.c \ 19 codec/enc32le.c \ 20 codec/enc64le.c \ 21 codec/pemenc.c \
|
/freebsd-13-stable/sys/dev/sound/pci/hda/ |
H A D | hdacc.c | 65 #define hdacc_lock(codec) snd_mtxlock((codec)->lock) 66 #define hdacc_unlock(codec) snd_mtxunlock((codec)->lock) 67 #define hdacc_lockassert(codec) snd_mtxassert((codec)->lock) 480 struct hdacc_softc *codec = device_get_softc(dev); local 488 codec->lock = HDAC_GET_MTX(device_get_parent(dev), dev); 489 codec->dev = dev; 490 codec 536 struct hdacc_softc *codec = device_get_softc(dev); local 580 struct hdacc_softc *codec = device_get_softc(dev); local 628 struct hdacc_softc *codec = device_get_softc(dev); local 644 struct hdacc_softc *codec = device_get_softc(dev); local 657 struct hdacc_softc *codec = device_get_softc(dev); local 696 struct hdacc_softc *codec = device_get_softc(dev); local 706 struct hdacc_softc *codec = device_get_softc(dev); local 726 struct hdacc_softc *codec = device_get_softc(dev); local 736 struct hdacc_softc *codec = device_get_softc(dev); local [all...] |
/freebsd-13-stable/usr.sbin/bhyve/ |
H A D | pci_hda.c | 155 struct hda_codec_class *codec, const char *play, const char *rec, 371 struct hda_codec_class *codec = NULL; local 390 * For now we play with one single codec 392 codec = hda_find_codec_class("hda_codec"); 393 if (codec) { 398 err = hda_codec_constructor(sc, codec, p ? \ 472 hda_codec_constructor(struct hda_softc *sc, struct hda_codec_class *codec, argument 487 hci->codec = codec; 491 if (!codec 518 struct hda_codec_class *codec = NULL; local 543 struct hda_codec_class *codec = NULL; local 570 struct hda_codec_class *codec = NULL; local [all...] |
H A D | pci_hda.h | 66 struct hda_codec_class *codec; member in struct:hda_codec_inst
|
/freebsd-13-stable/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_7zip.c | 122 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) { 1003 zip->codec = coder1->codec; 1006 switch (zip->codec) { 1012 if (coder2->codec != _7Z_X86 && 1013 coder2->codec ! [all...] |