/sound/pci/ac97/ |
H A D | Makefile | 6 snd-ac97-codec-y := ac97_codec.o ac97_pcm.o 7 snd-ac97-codec-$(CONFIG_PROC_FS) += ac97_proc.o 10 obj-$(CONFIG_SND_AC97_CODEC) += snd-ac97-codec.o
|
/sound/soc/codecs/ |
H A D | wl1273.h | 2 * sound/soc/codec/wl1273.h 4 * ALSA SoC WL1273 codec driver 28 int wl1273_get_format(struct snd_soc_codec *codec, unsigned int *fmt);
|
H A D | cq93vc.c | 43 static inline unsigned int cq93vc_read(struct snd_soc_codec *codec, argument 46 struct davinci_vc *davinci_vc = codec->control_data; 51 static inline int cq93vc_write(struct snd_soc_codec *codec, unsigned int reg, argument 54 struct davinci_vc *davinci_vc = codec->control_data; 68 struct snd_soc_codec *codec = dai->codec; local 69 u8 reg = cq93vc_read(codec, DAVINCI_VC_REG09) & ~DAVINCI_VC_REG09_MUTE; 72 cq93vc_write(codec, DAVINCI_VC_REG09, 75 cq93vc_write(codec, DAVINCI_VC_REG09, reg); 83 struct snd_soc_codec *codec local 97 cq93vc_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) argument 147 cq93vc_resume(struct snd_soc_codec *codec) argument 154 cq93vc_probe(struct snd_soc_codec *codec) argument 171 cq93vc_remove(struct snd_soc_codec *codec) argument [all...] |
H A D | tlv320aic32x4.c | 265 static inline int aic32x4_change_page(struct snd_soc_codec *codec, argument 268 struct aic32x4_priv *aic32x4 = snd_soc_codec_get_drvdata(codec); 275 ret = codec->hw_write(codec->control_data, data, 2); 284 static int aic32x4_write(struct snd_soc_codec *codec, unsigned int reg, argument 287 struct aic32x4_priv *aic32x4 = snd_soc_codec_get_drvdata(codec); 295 return aic32x4_change_page(codec, val); 298 ret = aic32x4_change_page(codec, page); 306 if (codec->hw_write(codec 312 aic32x4_read(struct snd_soc_codec *codec, unsigned int reg) argument 341 aic32x4_add_widgets(struct snd_soc_codec *codec) argument 356 struct snd_soc_codec *codec = codec_dai->codec; local 372 struct snd_soc_codec *codec = codec_dai->codec; local 434 struct snd_soc_codec *codec = dai->codec; local 516 struct snd_soc_codec *codec = dai->codec; local 527 aic32x4_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) argument 638 aic32x4_suspend(struct snd_soc_codec *codec, pm_message_t state) argument 644 aic32x4_resume(struct snd_soc_codec *codec) argument 650 aic32x4_probe(struct snd_soc_codec *codec) argument 703 aic32x4_remove(struct snd_soc_codec *codec) argument [all...] |
H A D | tlv320dac33.c | 2 * ALSA SoC Texas Instruments TLV320DAC33 codec driver 94 struct snd_soc_codec *codec; member in struct:tlv320dac33_priv 174 static inline unsigned int dac33_read_reg_cache(struct snd_soc_codec *codec, argument 177 u8 *cache = codec->reg_cache; 184 static inline void dac33_write_reg_cache(struct snd_soc_codec *codec, argument 187 u8 *cache = codec->reg_cache; 194 static int dac33_read(struct snd_soc_codec *codec, unsigned int reg, argument 197 struct tlv320dac33_priv *dac33 = snd_soc_codec_get_drvdata(codec); 204 val = i2c_smbus_read_byte_data(codec->control_data, value[0]); 206 dev_err(codec 220 dac33_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 247 dac33_write_locked(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 261 dac33_write16(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 294 dac33_init_chip(struct snd_soc_codec *codec) argument 333 dac33_read_id(struct snd_soc_codec *codec) argument 347 dac33_soft_power(struct snd_soc_codec *codec, int power) argument 360 dac33_disable_digital(struct snd_soc_codec *codec) argument 375 dac33_hard_power(struct snd_soc_codec *codec, int power) argument 445 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 456 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 630 dac33_add_widgets(struct snd_soc_codec *codec) argument 642 dac33_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) argument 678 struct snd_soc_codec *codec = dac33->codec; local 724 struct snd_soc_codec *codec = dac33->codec; local 749 struct snd_soc_codec *codec; local 783 struct snd_soc_codec *codec = dev; local 798 dac33_oscwait(struct snd_soc_codec *codec) argument 816 struct snd_soc_codec *codec = rtd->codec; local 831 struct snd_soc_codec *codec = rtd->codec; local 844 struct snd_soc_codec *codec = rtd->codec; local 889 struct snd_soc_codec *codec = rtd->codec; local 1088 struct snd_soc_codec *codec = rtd->codec; local 1147 struct snd_soc_codec *codec = rtd->codec; local 1180 struct snd_soc_codec *codec = rtd->codec; local 1324 struct snd_soc_codec *codec = codec_dai->codec; local 1354 struct snd_soc_codec *codec = codec_dai->codec; local 1406 dac33_soc_probe(struct snd_soc_codec *codec) argument 1467 dac33_soc_remove(struct snd_soc_codec *codec) argument 1480 dac33_soc_suspend(struct snd_soc_codec *codec, pm_message_t state) argument 1487 dac33_soc_resume(struct snd_soc_codec *codec) argument [all...] |
H A D | wm8804.c | 75 struct snd_soc_codec *codec; member in struct:wm8804_priv 96 wm8804->codec->cache_sync = 1; \ 116 struct snd_soc_codec *codec; local 119 codec = snd_kcontrol_chip(kcontrol); 120 src = snd_soc_read(codec, WM8804_SPDTX4); 132 struct snd_soc_codec *codec; local 135 codec = snd_kcontrol_chip(kcontrol); 141 src = snd_soc_read(codec, WM8804_SPDTX4); 154 txpwr = snd_soc_read(codec, WM8804_PWRDN) & 0x4; 156 snd_soc_update_bits(codec, WM8804_PWRD 178 wm8804_volatile(struct snd_soc_codec *codec, unsigned int reg) argument 199 wm8804_reset(struct snd_soc_codec *codec) argument 206 struct snd_soc_codec *codec; local 279 struct snd_soc_codec *codec; local 392 struct snd_soc_codec *codec; local 434 struct snd_soc_codec *codec; local 469 struct snd_soc_codec *codec; local 484 wm8804_sync_cache(struct snd_soc_codec *codec) argument 502 wm8804_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) argument 544 wm8804_suspend(struct snd_soc_codec *codec, pm_message_t state) argument 550 wm8804_resume(struct snd_soc_codec *codec) argument 560 wm8804_remove(struct snd_soc_codec *codec) argument 575 wm8804_probe(struct snd_soc_codec *codec) argument [all...] |
H A D | stac9766.c | 2 * stac9766.c -- ALSA SoC STAC9766 codec support 141 static int stac9766_ac97_write(struct snd_soc_codec *codec, unsigned int reg, argument 144 u16 *cache = codec->reg_cache; 147 stac9766_ac97_write(codec, AC97_INT_PAGING, 0); 148 soc_ac97_ops.write(codec->ac97, reg, val); 149 stac9766_ac97_write(codec, AC97_INT_PAGING, 1); 155 soc_ac97_ops.write(codec->ac97, reg, val); 160 static unsigned int stac9766_ac97_read(struct snd_soc_codec *codec, argument 163 u16 val = 0, *cache = codec->reg_cache; 166 stac9766_ac97_write(codec, AC97_INT_PAGIN 187 struct snd_soc_codec *codec = dai->codec; local 209 struct snd_soc_codec *codec = dai->codec; local 225 stac9766_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) argument 243 stac9766_reset(struct snd_soc_codec *codec, int try_warm) argument 259 stac9766_codec_suspend(struct snd_soc_codec *codec, pm_message_t state) argument 266 stac9766_codec_resume(struct snd_soc_codec *codec) argument 338 stac9766_codec_probe(struct snd_soc_codec *codec) argument 369 stac9766_codec_remove(struct snd_soc_codec *codec) argument [all...] |
H A D | wm8958-dsp2.c | 42 static int wm8958_dsp2_fw(struct snd_soc_codec *codec, const char *name, argument 45 struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); 58 dev_err(codec->dev, "%s: firmware too short\n", name); 63 dev_err(codec->dev, "%s: firmware has bad file magic %08x\n", 74 dev_err(codec->dev, "%s: unsupported firmware version %d\n", 79 dev_err(codec->dev, "%s: unsupported target device %d\n", 84 dev_err(codec->dev, "%s: unsupported target core %d\n", 91 dev_info(codec->dev, "%s timestamp %llx\n", 94 snd_soc_write(codec, 0x102, 0x2); 95 snd_soc_write(codec, 192 wm8958_dsp_start_mbc(struct snd_soc_codec *codec, int path) argument 236 wm8958_dsp_start_vss(struct snd_soc_codec *codec, int path) argument 297 wm8958_dsp_start_enh_eq(struct snd_soc_codec *codec, int path) argument 328 wm8958_dsp_apply(struct snd_soc_codec *codec, int path, int start) argument 418 struct snd_soc_codec *codec = w->codec; local 456 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 478 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 500 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 512 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 546 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 568 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 579 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 601 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 623 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 635 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 684 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 699 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 746 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 768 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 790 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 802 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); local 863 struct snd_soc_codec *codec = context; local 875 struct snd_soc_codec *codec = context; local 894 struct snd_soc_codec *codec = context; local 912 wm8958_dsp2_init(struct snd_soc_codec *codec) argument [all...] |
H A D | wm8900.c | 183 static int wm8900_volatile_register(struct snd_soc_codec *codec, unsigned int reg) argument 193 static void wm8900_reset(struct snd_soc_codec *codec) argument 195 snd_soc_write(codec, WM8900_REG_RESET, 0); 197 memcpy(codec->reg_cache, wm8900_reg_defaults, 204 struct snd_soc_codec *codec = w->codec; local 205 u16 hpctl1 = snd_soc_read(codec, WM8900_REG_HPCTL1); 212 snd_soc_write(codec, WM8900_REG_HPCTL1, hpctl1); 221 snd_soc_write(codec, WM8900_REG_HPCTL1, hpctl1); 228 snd_soc_write(codec, WM8900_REG_HPCTL 610 wm8900_add_widgets(struct snd_soc_codec *codec) argument 626 struct snd_soc_codec *codec = rtd->codec; local 740 wm8900_set_fll(struct snd_soc_codec *codec, int fll_id, unsigned int freq_in, unsigned int freq_out) argument 820 struct snd_soc_codec *codec = codec_dai->codec; local 870 struct snd_soc_codec *codec = codec_dai->codec; local 982 struct snd_soc_codec *codec = codec_dai->codec; local 1032 wm8900_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) argument 1125 wm8900_suspend(struct snd_soc_codec *codec, pm_message_t state) argument 1147 wm8900_resume(struct snd_soc_codec *codec) argument 1184 wm8900_probe(struct snd_soc_codec *codec) argument 1239 wm8900_remove(struct snd_soc_codec *codec) argument [all...] |
H A D | da7210.c | 2 * DA7210 ALSA Soc codec driver 194 static inline u32 da7210_read_reg_cache(struct snd_soc_codec *codec, u32 reg) argument 196 u8 *cache = codec->reg_cache; 204 static int da7210_write(struct snd_soc_codec *codec, u32 reg, u32 value) argument 206 u8 *cache = codec->reg_cache; 209 BUG_ON(codec->driver->volatile_register); 214 if (reg >= codec->driver->reg_cache_size) 217 if (2 != codec->hw_write(codec->control_data, data, 2)) 227 static inline u32 da7210_read(struct snd_soc_codec *codec, u3 argument 239 struct snd_soc_codec *codec = dai->codec; local 267 struct snd_soc_codec *codec = rtd->codec; local 381 struct snd_soc_codec *codec = codec_dai->codec; local 451 da7210_probe(struct snd_soc_codec *codec) argument [all...] |
H A D | uda134x.c | 51 * The codec has no support for reading its registers except for peak level... 53 static inline unsigned int uda134x_read_reg_cache(struct snd_soc_codec *codec, argument 56 u8 *cache = codec->reg_cache; 66 static inline void uda134x_write_reg_cache(struct snd_soc_codec *codec, argument 69 u8 *cache = codec->reg_cache; 80 static int uda134x_write(struct snd_soc_codec *codec, unsigned int reg, argument 86 struct uda134x_platform_data *pd = codec->control_data; 96 uda134x_write_reg_cache(codec, reg, value); 134 static inline void uda134x_reset(struct snd_soc_codec *codec) argument 136 u8 reset_reg = uda134x_read_reg_cache(codec, UDA134X_STATUS 144 struct snd_soc_codec *codec = dai->codec; local 163 struct snd_soc_codec *codec =rtd->codec; local 195 struct snd_soc_codec *codec = rtd->codec; local 209 struct snd_soc_codec *codec = rtd->codec; local 281 struct snd_soc_codec *codec = codec_dai->codec; local 303 struct snd_soc_codec *codec = codec_dai->codec; local 327 uda134x_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) argument 486 uda134x_soc_probe(struct snd_soc_codec *codec) argument 562 uda134x_soc_remove(struct snd_soc_codec *codec) argument 574 uda134x_soc_suspend(struct snd_soc_codec *codec, pm_message_t state) argument 582 uda134x_soc_resume(struct snd_soc_codec *codec) argument [all...] |
H A D | wm8523.c | 40 /* codec private data */ 61 static int wm8523_volatile_register(struct snd_soc_codec *codec, unsigned int reg) argument 72 static int wm8523_reset(struct snd_soc_codec *codec) argument 74 return snd_soc_write(codec, WM8523_DEVICE_ID, 0); 109 static int wm8523_add_widgets(struct snd_soc_codec *codec) argument 111 struct snd_soc_dapm_context *dapm = &codec->dapm; 136 struct snd_soc_codec *codec = dai->codec; local 137 struct wm8523_priv *wm8523 = snd_soc_codec_get_drvdata(codec); 143 dev_err(codec 160 struct snd_soc_codec *codec = rtd->codec; local 207 struct snd_soc_codec *codec = codec_dai->codec; local 256 struct snd_soc_codec *codec = codec_dai->codec; local 312 wm8523_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) argument 398 wm8523_suspend(struct snd_soc_codec *codec, pm_message_t state) argument 404 wm8523_resume(struct snd_soc_codec *codec) argument 414 wm8523_probe(struct snd_soc_codec *codec) argument 496 wm8523_remove(struct snd_soc_codec *codec) argument [all...] |
H A D | wm9090.c | 147 static int wm9090_volatile(struct snd_soc_codec *codec, unsigned int reg) argument 162 static void wait_for_dc_servo(struct snd_soc_codec *codec) argument 167 dev_dbg(codec->dev, "Waiting for DC servo...\n"); 171 reg = snd_soc_read(codec, WM9090_DC_SERVO_READBACK_0); 172 dev_dbg(codec->dev, "DC servo status: %x\n", reg); 178 dev_err(codec->dev, "Timed out waiting for DC Servo\n"); 273 struct snd_soc_codec *codec = w->codec; local 274 unsigned int reg = snd_soc_read(codec, WM9090_ANALOGUE_HP_0); 278 snd_soc_update_bits(codec, WM9090_CHARGE_PUMP_ 441 wm9090_add_controls(struct snd_soc_codec *codec) argument 494 wm9090_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) argument 551 wm9090_probe(struct snd_soc_codec *codec) argument 611 wm9090_suspend(struct snd_soc_codec *codec, pm_message_t state) argument 618 wm9090_resume(struct snd_soc_codec *codec) argument 629 wm9090_remove(struct snd_soc_codec *codec) argument [all...] |
/sound/soc/ |
H A D | soc-cache.c | 37 static int do_hw_write(struct snd_soc_codec *codec, unsigned int reg, argument 42 if (!snd_soc_codec_volatile_register(codec, reg) && 43 reg < codec->driver->reg_cache_size && 44 !codec->cache_bypass) { 45 ret = snd_soc_cache_write(codec, reg, value); 50 if (codec->cache_only) { 51 codec->cache_sync = 1; 55 ret = codec->hw_write(codec->control_data, data, len); 64 static unsigned int do_hw_read(struct snd_soc_codec *codec, unsigne argument 85 snd_soc_4_12_read(struct snd_soc_codec *codec, unsigned int reg) argument 91 snd_soc_4_12_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 101 snd_soc_7_9_read(struct snd_soc_codec *codec, unsigned int reg) argument 107 snd_soc_7_9_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 118 snd_soc_8_8_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 130 snd_soc_8_8_read(struct snd_soc_codec *codec, unsigned int reg) argument 136 snd_soc_8_16_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 148 snd_soc_8_16_read(struct snd_soc_codec *codec, unsigned int reg) argument 155 do_i2c_read(struct snd_soc_codec *codec, void *reg, int reglen, void *data, int datalen) argument 186 snd_soc_8_8_read_i2c(struct snd_soc_codec *codec, unsigned int r) argument 203 snd_soc_8_16_read_i2c(struct snd_soc_codec *codec, unsigned int r) argument 220 snd_soc_16_8_read_i2c(struct snd_soc_codec *codec, unsigned int r) argument 236 snd_soc_16_8_read(struct snd_soc_codec *codec, unsigned int reg) argument 242 snd_soc_16_8_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 255 snd_soc_16_16_read_i2c(struct snd_soc_codec *codec, unsigned int r) argument 271 snd_soc_16_16_read(struct snd_soc_codec *codec, unsigned int reg) argument 277 snd_soc_16_16_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 296 snd_soc_hw_bulk_write_raw(struct snd_soc_codec *codec, unsigned int reg, const void *data, size_t len) argument 390 snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, int addr_bits, int data_bits, enum snd_soc_control_type control) argument 543 snd_soc_rbtree_cache_sync(struct snd_soc_codec *codec) argument 573 snd_soc_rbtree_cache_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 605 snd_soc_rbtree_cache_read(struct snd_soc_codec *codec, unsigned int reg, unsigned int *value) argument 623 snd_soc_rbtree_cache_exit(struct snd_soc_codec *codec) argument 650 snd_soc_rbtree_cache_init(struct snd_soc_codec *codec) argument 745 snd_soc_lzo_compress_cache_block(struct snd_soc_codec *codec, struct snd_soc_lzo_ctx *lzo_ctx) argument 763 snd_soc_lzo_decompress_cache_block(struct snd_soc_codec *codec, struct snd_soc_lzo_ctx *lzo_ctx) argument 781 snd_soc_lzo_get_blkindex(struct snd_soc_codec *codec, unsigned int reg) argument 791 snd_soc_lzo_get_blkpos(struct snd_soc_codec *codec, unsigned int reg) argument 801 snd_soc_lzo_get_blksize(struct snd_soc_codec *codec) argument 809 snd_soc_lzo_cache_sync(struct snd_soc_codec *codec) argument 835 snd_soc_lzo_cache_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 897 snd_soc_lzo_cache_read(struct snd_soc_codec *codec, unsigned int reg, unsigned int *value) argument 937 snd_soc_lzo_cache_exit(struct snd_soc_codec *codec) argument 967 snd_soc_lzo_cache_init(struct snd_soc_codec *codec) argument 1069 snd_soc_flat_cache_sync(struct snd_soc_codec *codec) argument 1096 snd_soc_flat_cache_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 1104 snd_soc_flat_cache_read(struct snd_soc_codec *codec, unsigned int reg, unsigned int *value) argument 1112 snd_soc_flat_cache_exit(struct snd_soc_codec *codec) argument 1121 snd_soc_flat_cache_init(struct snd_soc_codec *codec) argument 1172 snd_soc_cache_init(struct snd_soc_codec *codec) argument 1203 snd_soc_cache_exit(struct snd_soc_codec *codec) argument 1221 snd_soc_cache_read(struct snd_soc_codec *codec, unsigned int reg, unsigned int *value) argument 1246 snd_soc_cache_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) argument 1273 snd_soc_cache_sync(struct snd_soc_codec *codec) argument 1302 snd_soc_get_reg_access_index(struct snd_soc_codec *codec, unsigned int reg) argument 1323 snd_soc_default_volatile_register(struct snd_soc_codec *codec, unsigned int reg) argument 1337 snd_soc_default_readable_register(struct snd_soc_codec *codec, unsigned int reg) argument 1351 snd_soc_default_writable_register(struct snd_soc_codec *codec, unsigned int reg) argument [all...] |
/sound/pci/hda/ |
H A D | Makefile | 3 snd-hda-codec-y := hda_codec.o 4 snd-hda-codec-$(CONFIG_SND_HDA_GENERIC) += hda_generic.o 5 snd-hda-codec-$(CONFIG_PROC_FS) += hda_proc.o 6 snd-hda-codec-$(CONFIG_SND_HDA_HWDEP) += hda_hwdep.o 7 snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o 9 snd-hda-codec-realtek-objs := patch_realtek.o 10 snd-hda-codec-cmedia-objs := patch_cmedia.o 11 snd-hda-codec-analog-objs := patch_analog.o 12 snd-hda-codec-idt-objs := patch_sigmatel.o 13 snd-hda-codec [all...] |
H A D | hda_beep.h | 2 * Digital Beep Input Interface for HD-audio codec 34 struct hda_codec *codec; member in struct:hda_beep 41 unsigned int linear_tone:1; /* linear tone for IDT/STAC codec */ 49 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable); 50 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); 51 void snd_hda_detach_beep_device(struct hda_codec *codec); 53 static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) argument 57 static inline void snd_hda_detach_beep_device(struct hda_codec *codec) argument
|
H A D | hda_codec.c | 46 /* codec vendor labels */ 93 static void hda_keep_power_on(struct hda_codec *codec); 95 static inline void hda_keep_power_on(struct hda_codec *codec) {} argument 172 make_codec_cmd(struct hda_codec *codec, hda_nid_t nid, int direct, argument 177 if ((codec->addr & ~0xf) || (direct & ~1) || (nid & ~0x7f) || 179 printk(KERN_ERR "hda-codec: out of range cmd %x:%x:%x:%x:%x\n", 180 codec->addr, direct, nid, verb, parm); 184 val = (u32)codec->addr << 28; 195 static int codec_exec_verb(struct hda_codec *codec, unsigned int cmd, argument 198 struct hda_bus *bus = codec 240 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, int direct, unsigned int verb, unsigned int parm) argument 263 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int direct, unsigned int verb, unsigned int parm) argument 281 snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) argument 297 snd_hda_get_sub_nodes(struct hda_codec *codec, hda_nid_t nid, hda_nid_t *start_id) argument 328 snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, hda_nid_t *conn_list, int max_conns) argument 365 _hda_get_connections(struct hda_codec *codec, hda_nid_t nid, hda_nid_t *conn_list, int max_conns) argument 528 struct hda_codec *codec; local 574 struct hda_codec *codec, *n; local 604 struct hda_codec *codec; local 697 find_codec_preset(struct hda_codec *codec) argument 751 get_codec_name(struct hda_codec *codec) argument 793 setup_fg_nodes(struct hda_codec *codec) argument 822 read_widget_caps(struct hda_codec *codec, hda_nid_t fg_node) argument 840 read_pin_defaults(struct hda_codec *codec) argument 865 look_up_pincfg(struct hda_codec *codec, struct snd_array *array, hda_nid_t nid) argument 879 set_pincfg(struct hda_codec *codec, hda_nid_t nid, unsigned int cfg) argument 894 snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list, hda_nid_t nid, unsigned int cfg) argument 932 snd_hda_codec_set_pincfg(struct hda_codec *codec, hda_nid_t nid, unsigned int cfg) argument 948 snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid) argument 968 restore_pincfgs(struct hda_codec *codec) argument 985 snd_hda_shutup_pins(struct hda_codec *codec) argument 1005 restore_shutup_pins(struct hda_codec *codec) argument 1027 restore_init_pincfgs(struct hda_codec *codec) argument 1054 get_hda_cvt_setup(struct hda_codec *codec, hda_nid_t nid) argument 1073 snd_hda_codec_free(struct hda_codec *codec) argument 1114 struct hda_codec *codec; local 1235 snd_hda_codec_configure(struct hda_codec *codec) argument 1280 snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, u32 stream_tag, int channel_id, int format) argument 1347 __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid, int do_now) argument 1373 really_cleanup_stream(struct hda_codec *codec, struct hda_cvt_setup *q) argument 1384 purify_inactive_streams(struct hda_codec *codec) argument 1401 hda_cleanup_all_streams(struct hda_codec *codec) argument 1478 get_alloc_amp_hash(struct hda_codec *codec, u32 key) argument 1495 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction) argument 1529 snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int caps) argument 1544 query_caps_hash(struct hda_codec *codec, hda_nid_t nid, u32 key, unsigned int (*func)(struct hda_codec *, hda_nid_t)) argument 1559 read_pin_cap(struct hda_codec *codec, hda_nid_t nid) argument 1575 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) argument 1590 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid) argument 1612 snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) argument 1623 get_vol_mute(struct hda_codec *codec, struct hda_amp_info *info, hda_nid_t nid, int ch, int direction, int index) argument 1645 put_vol_mute(struct hda_codec *codec, struct hda_amp_info *info, hda_nid_t nid, int ch, int direction, int index, int val) argument 1673 snd_hda_codec_amp_read(struct hda_codec *codec, hda_nid_t nid, int ch, int direction, int index) argument 1697 snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int ch, int direction, int idx, int mask, int val) argument 1728 snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, int direction, int idx, int mask, int val) argument 1749 snd_hda_codec_resume_amp(struct hda_codec *codec) argument 1774 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int ofs) argument 1794 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1816 read_amp_value(struct hda_codec *codec, hda_nid_t nid, int ch, int dir, int idx, unsigned int ofs) argument 1830 update_amp_value(struct hda_codec *codec, hda_nid_t nid, int ch, int dir, int idx, unsigned int ofs, unsigned int val) argument 1855 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1880 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1910 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1950 snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int *tlv) argument 1969 _snd_hda_find_mixer_ctl(struct hda_codec *codec, const char *name, int idx) argument 1989 snd_hda_find_mixer_ctl(struct hda_codec *codec, const char *name) argument 1996 find_empty_mixer_ctl_idx(struct hda_codec *codec, const char *name) argument 2025 snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, struct snd_kcontrol *kctl) argument 2065 snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, unsigned int index, hda_nid_t nid) argument 2089 snd_hda_ctls_clear(struct hda_codec *codec) argument 2131 snd_hda_codec_reset(struct hda_codec *codec) argument 2197 map_slaves(struct hda_codec *codec, const char * const *slaves, map_slave_func_t func, void *data) argument 2243 snd_hda_add_vmaster(struct hda_codec *codec, char *name, unsigned int *tlv, const char * const *slaves) argument 2297 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2323 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2358 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2385 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2408 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2438 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2461 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2484 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2513 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2579 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2643 set_dig_out(struct hda_codec *codec, hda_nid_t nid, int verb, int val) argument 2656 set_dig_out_convert(struct hda_codec *codec, hda_nid_t nid, int dig1, int dig2) argument 2668 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2695 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2704 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2769 snd_hda_create_spdif_out_ctls(struct hda_codec *codec, hda_nid_t nid) argument 2831 snd_hda_create_spdif_share_sw(struct hda_codec *codec, struct hda_multi_out *mout) argument 2851 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2860 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2879 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2921 snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid) argument 2972 snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, int direct, unsigned int verb, unsigned int parm) argument 3008 snd_hda_codec_update_cache(struct hda_codec *codec, hda_nid_t nid, int direct, unsigned int verb, unsigned int parm) argument 3035 snd_hda_codec_resume_cache(struct hda_codec *codec) argument 3059 snd_hda_sequence_write_cache(struct hda_codec *codec, const struct hda_verb *seq) argument 3072 hda_set_power_state(struct hda_codec *codec, hda_nid_t fg, unsigned int power_state) argument 3133 hda_exec_init_verbs(struct hda_codec *codec) argument 3139 hda_exec_init_verbs(struct hda_codec *codec) argument 3146 hda_call_codec_suspend(struct hda_codec *codec) argument 3166 hda_call_codec_resume(struct hda_codec *codec) argument 3196 struct hda_codec *codec; local 3215 snd_hda_codec_build_controls(struct hda_codec *codec) argument 3333 get_pcm_param(struct hda_codec *codec, hda_nid_t nid) argument 3346 query_pcm_param(struct hda_codec *codec, hda_nid_t nid) argument 3352 get_stream_param(struct hda_codec *codec, hda_nid_t nid) argument 3362 query_stream_param(struct hda_codec *codec, hda_nid_t nid) argument 3381 snd_hda_query_supported_pcm(struct hda_codec *codec, hda_nid_t nid, u32 *ratesp, u64 *formatsp, unsigned int *bpsp) argument 3484 snd_hda_is_supported_format(struct hda_codec *codec, hda_nid_t nid, unsigned int format) argument 3544 hda_pcm_default_open_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 3551 hda_pcm_default_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 3561 hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 3569 set_pcm_default_values(struct hda_codec *codec, struct hda_pcm_stream *info) argument 3603 snd_hda_codec_prepare(struct hda_codec *codec, struct hda_pcm_stream *hinfo, unsigned int stream, unsigned int format, struct snd_pcm_substream *substream) argument 3619 snd_hda_codec_cleanup(struct hda_codec *codec, struct hda_pcm_stream *hinfo, struct snd_pcm_substream *substream) argument 3667 snd_hda_attach_pcm(struct hda_codec *codec, struct hda_pcm *pcm) argument 3687 snd_hda_codec_build_pcms(struct hda_codec *codec) argument 3759 struct hda_codec *codec; local 3783 snd_hda_check_board_config(struct hda_codec *codec, int num_configs, const char * const *models, const struct snd_pci_quirk *tbl) argument 3847 snd_hda_check_board_codec_sid_config(struct hda_codec *codec, int num_configs, const char * const *models, const struct snd_pci_quirk *tbl) argument 3897 snd_hda_add_new_ctls(struct hda_codec *codec, const struct snd_kcontrol_new *knew) argument 3943 struct hda_codec *codec = local 3957 hda_keep_power_on(struct hda_codec *codec) argument 3965 snd_hda_update_power_acct(struct hda_codec *codec) argument 3982 snd_hda_power_up(struct hda_codec *codec) argument 4011 snd_hda_power_down(struct hda_codec *codec) argument 4037 snd_hda_check_amp_list_power(struct hda_codec *codec, struct hda_loopback_check *check, hda_nid_t nid) argument 4082 snd_hda_ch_mode_info(struct hda_codec *codec, struct snd_ctl_elem_info *uinfo, const struct hda_channel_mode *chmode, int num_chmodes) argument 4101 snd_hda_ch_mode_get(struct hda_codec *codec, struct snd_ctl_elem_value *ucontrol, const struct hda_channel_mode *chmode, int num_chmodes, int max_channels) argument 4122 snd_hda_ch_mode_put(struct hda_codec *codec, struct snd_ctl_elem_value *ucontrol, const struct hda_channel_mode *chmode, int num_chmodes, int *max_channelsp) argument 4171 snd_hda_input_mux_put(struct hda_codec *codec, const struct hda_input_mux *imux, struct snd_ctl_elem_value *ucontrol, hda_nid_t nid, unsigned int *cur_val) argument 4199 setup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid, unsigned int stream_tag, unsigned int format) argument 4220 cleanup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid) argument 4236 struct hda_codec *codec; local 4254 snd_hda_multi_out_dig_open(struct hda_codec *codec, struct hda_multi_out *mout) argument 4270 snd_hda_multi_out_dig_prepare(struct hda_codec *codec, struct hda_multi_out *mout, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 4286 snd_hda_multi_out_dig_cleanup(struct hda_codec *codec, struct hda_multi_out *mout) argument 4299 snd_hda_multi_out_dig_close(struct hda_codec *codec, struct hda_multi_out *mout) argument 4316 snd_hda_multi_out_analog_open(struct hda_codec *codec, struct hda_multi_out *mout, struct snd_pcm_substream *substream, struct hda_pcm_stream *hinfo) argument 4365 snd_hda_multi_out_analog_prepare(struct hda_codec *codec, struct hda_multi_out *mout, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 4423 snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, struct hda_multi_out *mout) argument 4530 snd_hda_parse_pin_def_config(struct hda_codec *codec, struct auto_pin_cfg *cfg, const hda_nid_t *ignore_nids) argument 4785 hda_get_input_pin_label(struct hda_codec *codec, hda_nid_t pin, int check_location) argument 4831 check_mic_location_need(struct hda_codec *codec, const struct auto_pin_cfg *cfg, int input) argument 4865 hda_get_autocfg_input_label(struct hda_codec *codec, const struct auto_pin_cfg *cfg, int input) argument 4930 struct hda_codec *codec; local 4954 struct hda_codec *codec; local 5068 get_jack_default_name(struct hda_codec *codec, hda_nid_t nid, int type) argument 5094 snd_hda_input_jack_add(struct hda_codec *codec, hda_nid_t nid, int type, const char *name) argument 5120 snd_hda_input_jack_report(struct hda_codec *codec, hda_nid_t nid) argument 5149 snd_hda_input_jack_free(struct hda_codec *codec) argument [all...] |
H A D | patch_ca0110.c | 51 struct hda_codec *codec, 54 struct ca0110_spec *spec = codec->spec; 55 return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream, 60 struct hda_codec *codec, 65 struct ca0110_spec *spec = codec->spec; 66 return snd_hda_multi_out_analog_prepare(codec, &spec->multiout, 71 struct hda_codec *codec, 74 struct ca0110_spec *spec = codec->spec; 75 return snd_hda_multi_out_analog_cleanup(codec, &spec->multiout); 82 struct hda_codec *codec, 50 ca0110_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 59 ca0110_playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 70 ca0110_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 81 ca0110_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 89 ca0110_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 97 ca0110_dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 111 ca0110_capture_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 124 ca0110_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 139 _add_switch(struct hda_codec *codec, hda_nid_t nid, const char *pfx, int chan, int dir) argument 150 _add_volume(struct hda_codec *codec, hda_nid_t nid, const char *pfx, int chan, int dir) argument 170 ca0110_build_controls(struct hda_codec *codec) argument 300 ca0110_build_pcms(struct hda_codec *codec) argument 339 init_output(struct hda_codec *codec, hda_nid_t pin, hda_nid_t dac) argument 354 init_input(struct hda_codec *codec, hda_nid_t pin, hda_nid_t adc) argument 369 ca0110_init(struct hda_codec *codec) argument 387 ca0110_free(struct hda_codec *codec) argument 400 parse_line_outs(struct hda_codec *codec) argument 423 parse_hp_out(struct hda_codec *codec) argument 451 parse_input(struct hda_codec *codec) argument 484 parse_digital(struct hda_codec *codec) argument 495 ca0110_parse_auto_config(struct hda_codec *codec) argument 512 patch_ca0110(struct hda_codec *codec) argument [all...] |
H A D | hda_proc.c | 67 struct hda_codec *codec, hda_nid_t nid, 94 struct hda_codec *codec, hda_nid_t nid) 98 for (pcm = 0; pcm < codec->num_pcms; pcm++) { 99 cpcm = &codec->pcm_info[pcm]; 113 struct hda_codec *codec, hda_nid_t nid, int dir) 116 caps = snd_hda_param_read(codec, nid, 132 struct hda_codec *codec, hda_nid_t nid, 142 val = snd_hda_codec_read(codec, nid, 0, 147 val = snd_hda_codec_read(codec, nid, 0, 188 struct hda_codec *codec, hda_nid_ 66 print_nid_array(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, struct snd_array *array) argument 93 print_nid_pcms(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 112 print_amp_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir) argument 131 print_amp_vals(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir, int stereo, int indices) argument 187 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 231 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) argument 325 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) argument 363 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 376 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) argument 394 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 431 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 458 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 469 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 479 print_conn_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type, hda_nid_t *conn, int conn_len) argument 504 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 551 struct hda_codec *codec = entry->private_data; local 715 snd_hda_codec_proc_new(struct hda_codec *codec) argument [all...] |
H A D | patch_cirrus.c | 115 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) argument 117 snd_hda_codec_write(codec, CS420X_VENDOR_NID, 0, 119 return snd_hda_codec_read(codec, CS420X_VENDOR_NID, 0, 123 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, argument 126 snd_hda_codec_write(codec, CS420X_VENDOR_NID, 0, 128 snd_hda_codec_write(codec, CS420X_VENDOR_NID, 0, 140 struct hda_codec *codec, 143 struct cs_spec *spec = codec->spec; 144 return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream, 149 struct hda_codec *codec, 139 cs_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 148 cs_playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 159 cs_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 170 cs_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 178 cs_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 186 cs_dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 197 cs_dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 208 cs_capture_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 222 cs_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 273 cs_build_pcms(struct hda_codec *codec) argument 319 get_dac(struct hda_codec *codec, hda_nid_t pin) argument 329 is_ext_mic(struct hda_codec *codec, unsigned int idx) argument 341 get_adc(struct hda_codec *codec, hda_nid_t pin, unsigned int *idxp) argument 369 is_active_pin(struct hda_codec *codec, hda_nid_t nid) argument 376 parse_output(struct hda_codec *codec) argument 421 parse_input(struct hda_codec *codec) argument 457 parse_digital_output(struct hda_codec *codec) argument 477 parse_digital_input(struct hda_codec *codec) argument 494 add_mute(struct hda_codec *codec, const char *name, int index, unsigned int pval, int dir, struct snd_kcontrol **kctlp) argument 507 add_volume(struct hda_codec *codec, const char *name, int index, unsigned int pval, int dir, struct snd_kcontrol **kctlp) argument 521 fix_volume_caps(struct hda_codec *codec, hda_nid_t dac) argument 533 add_vmaster(struct hda_codec *codec, hda_nid_t dac) argument 554 add_output(struct hda_codec *codec, hda_nid_t dac, int idx, int num_ctls, int type) argument 614 build_output(struct hda_codec *codec) argument 649 change_cur_input(struct hda_codec *codec, unsigned int idx, int force) argument 674 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 693 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 702 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 721 make_bind_capture(struct hda_codec *codec, struct hda_ctl_ops *ops) argument 745 add_input_volume_control(struct hda_codec *codec, struct auto_pin_cfg *cfg, int item) argument 765 build_input(struct hda_codec *codec) argument 816 build_digital_output(struct hda_codec *codec) argument 833 build_digital_input(struct hda_codec *codec) argument 845 cs_automute(struct hda_codec *codec) argument 877 cs_automic(struct hda_codec *codec) argument 895 init_output(struct hda_codec *codec) argument 939 init_input(struct hda_codec *codec) argument 1050 init_digital(struct hda_codec *codec) argument 1064 cs_init(struct hda_codec *codec) argument 1088 cs_build_controls(struct hda_codec *codec) argument 1107 cs_free(struct hda_codec *codec) argument 1115 cs_unsol_event(struct hda_codec *codec, unsigned int res) argument 1135 cs_parse_auto_config(struct hda_codec *codec) argument 1229 fix_pincfg(struct hda_codec *codec, int model) argument 1239 patch_cs420x(struct hda_codec *codec) argument [all...] |
H A D | patch_si3054.c | 4 * HD audio interface patch for Silicon Labs 3054/5 modem codec 76 /* si3054 codec registers (nodes) access macros */ 77 #define GET_REG(codec,reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) 78 #define SET_REG(codec,reg,val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) 79 #define SET_REG_CACHE(codec,reg,val) \ 80 snd_hda_codec_write_cache(codec,reg,0,SI3054_VERB_WRITE_NODE,val) 102 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 105 uvalue->value.integer.value[0] = (GET_REG(codec, re 112 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 139 si3054_build_controls(struct hda_codec *codec) argument 149 si3054_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 168 si3054_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 199 si3054_build_pcms(struct hda_codec *codec) argument 219 si3054_init(struct hda_codec *codec) argument 258 si3054_free(struct hda_codec *codec) argument 274 patch_si3054(struct hda_codec *codec) argument [all...] |
/sound/aoa/codecs/ |
H A D | Makefile | 1 snd-aoa-codec-onyx-objs := onyx.o 2 snd-aoa-codec-tas-objs := tas.o 3 snd-aoa-codec-toonie-objs := toonie.o 5 obj-$(CONFIG_SND_AOA_ONYX) += snd-aoa-codec-onyx.o 6 obj-$(CONFIG_SND_AOA_TAS) += snd-aoa-codec-tas.o 7 obj-$(CONFIG_SND_AOA_TOONIE) += snd-aoa-codec-toonie.o
|
H A D | toonie.c | 2 * Apple Onboard Audio driver for Toonie codec 9 * This is a driver for the toonie codec chip. This chip is present 17 MODULE_DESCRIPTION("toonie codec driver for snd-aoa"); 23 #define PFX "snd-aoa-codec-toonie: " 26 struct aoa_codec codec; member in struct:toonie 28 #define codec_to_toonie(c) container_of(c, struct toonie, codec) 87 static int toonie_init_codec(struct aoa_codec *codec) argument 89 struct toonie *toonie = codec_to_toonie(codec); 92 if (toonie->codec.connected != 1) 100 if (toonie->codec 111 toonie_exit_codec(struct aoa_codec *codec) argument [all...] |
/sound/aoa/core/ |
H A D | core.c | 36 printk(KERN_ERR "snd-aoa: fabric didn't like codec %s\n", 46 printk(KERN_ERR "snd-aoa: codec %s didn't init\n", c->name); 58 int aoa_codec_register(struct aoa_codec *codec) argument 63 * will want to have this codec, so propagate error 66 err = attach_codec_to_fabric(codec); 68 list_add(&codec->list, &codec_list); 73 void aoa_codec_unregister(struct aoa_codec *codec) argument 75 list_del(&codec->list); 76 if (codec->fabric && codec 134 aoa_fabric_unlink_codec(struct aoa_codec *codec) argument [all...] |
/sound/pci/ali5451/ |
H A D | ali5451.c | 168 #define ALI_REG(codec, x) ((codec)->port + x) 207 struct snd_ali *codec; member in struct:snd_ali_voice 293 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, argument 296 return (unsigned int)inl(ALI_REG(codec, port)); 299 static inline void snd_ali_5451_poke(struct snd_ali *codec, argument 303 outl((unsigned int)val, ALI_REG(codec, port)); 306 static int snd_ali_codec_ready(struct snd_ali *codec, argument 315 res = snd_ali_5451_peek(codec,port); 323 snd_ali_5451_poke(codec, por 328 snd_ali_stimer_ready(struct snd_ali *codec) argument 349 snd_ali_codec_poke(struct snd_ali *codec,int secondary, unsigned short reg, unsigned short val) argument 380 snd_ali_codec_peek(struct snd_ali *codec, int secondary, unsigned short reg) argument 418 struct snd_ali *codec = ac97->private_data; local 434 struct snd_ali *codec = ac97->private_data; local 444 snd_ali_reset_5451(struct snd_ali *codec) argument 485 snd_ali_enable_special_channel(struct snd_ali *codec, unsigned int channel) argument 495 snd_ali_disable_special_channel(struct snd_ali *codec, unsigned int channel) argument 505 snd_ali_enable_address_interrupt(struct snd_ali *codec) argument 515 snd_ali_disable_address_interrupt(struct snd_ali *codec) argument 525 snd_ali_disable_voice_irq(struct snd_ali *codec, unsigned int channel) argument 539 snd_ali_alloc_pcm_channel(struct snd_ali *codec, int channel) argument 558 snd_ali_find_free_channel(struct snd_ali * codec, int rec) argument 606 snd_ali_free_channel_pcm(struct snd_ali *codec, int channel) argument 625 snd_ali_stop_voice(struct snd_ali *codec, unsigned int channel) argument 637 snd_ali_delay(struct snd_ali *codec,int interval) argument 652 snd_ali_detect_spdif_rate(struct snd_ali *codec) argument 708 snd_ali_get_spdif_in_rate(struct snd_ali *codec) argument 733 snd_ali_enable_spdif_in(struct snd_ali *codec) argument 748 snd_ali_disable_spdif_in(struct snd_ali *codec) argument 760 snd_ali_set_spdif_out_rate(struct snd_ali *codec, unsigned int rate) argument 783 snd_ali_enable_spdif_out(struct snd_ali *codec) argument 816 snd_ali_enable_spdif_chnout(struct snd_ali *codec) argument 834 snd_ali_disable_spdif_chnout(struct snd_ali *codec) argument 845 snd_ali_disable_spdif_out(struct snd_ali *codec) argument 855 snd_ali_update_ptr(struct snd_ali *codec, int channel) argument 913 struct snd_ali *codec = dev_id; local 939 snd_ali_alloc_voice(struct snd_ali * codec, int type, int rec, int channel) argument 969 snd_ali_free_voice(struct snd_ali * codec, struct snd_ali_voice *pvoice) argument 994 snd_ali_clear_voices(struct snd_ali *codec, unsigned int v_min, unsigned int v_max) argument 1006 snd_ali_write_voice_regs(struct snd_ali *codec, unsigned int Channel, unsigned int LBA, unsigned int CSO, unsigned int ESO, unsigned int DELTA, unsigned int ALPHA_FMS, unsigned int GVSEL, unsigned int PAN, unsigned int VOL, unsigned int CTRL, unsigned int EC) argument 1101 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1167 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1203 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1230 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1322 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1410 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1431 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1499 struct snd_ali *codec; local 1510 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1547 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1676 struct snd_ali *codec = pcm->private_data; local 1681 snd_ali_pcm(struct snd_ali * codec, int device, struct ali_pcm_description *desc) argument 1730 snd_ali_build_pcms(struct snd_ali *codec) argument 1752 struct snd_ali *codec = kcontrol->private_data; local 1780 struct snd_ali *codec = kcontrol->private_data; local 1845 snd_ali_mixer(struct snd_ali * codec) argument 1987 snd_ali_free(struct snd_ali * codec) argument 2005 snd_ali_chip_init(struct snd_ali *codec) argument 2069 struct snd_ali *codec = entry->private_data; local 2075 snd_ali_proc_init(struct snd_ali *codec) argument 2082 snd_ali_resources(struct snd_ali *codec) argument 2103 struct snd_ali *codec = device->device_data; local 2114 struct snd_ali *codec; local 2246 struct snd_ali *codec; local [all...] |