| /linux/sound/hda/codecs/realtek/ |
| H A D | realtek.c | 3 // Realtek HD-audio codec support code 10 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_read_coefex_idx() argument 15 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); in __alc_read_coefex_idx() 16 val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, 0); in __alc_read_coefex_idx() 20 int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx() argument 23 guard(coef_mutex)(codec); in alc_read_coefex_idx() 24 return __alc_read_coefex_idx(codec, nid, coef_idx); in alc_read_coefex_idx() 28 static void __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_write_coefex_idx() argument 31 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); in __alc_write_coefex_idx() 32 snd_hda_codec_write(codec, ni in __alc_write_coefex_idx() 35 alc_write_coefex_idx(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx,unsigned int coef_val) alc_write_coefex_idx() argument 43 __alc_update_coefex_idx(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx,unsigned int mask,unsigned int bits_set) __alc_update_coefex_idx() argument 54 alc_update_coefex_idx(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx,unsigned int mask,unsigned int bits_set) alc_update_coefex_idx() argument 64 alc_get_coef0(struct hda_codec * codec) alc_get_coef0() argument 74 alc_process_coef_fw(struct hda_codec * codec,const struct coef_fw * fw) alc_process_coef_fw() argument 92 alc_setup_gpio(struct hda_codec * codec,unsigned int mask) alc_setup_gpio() argument 102 alc_write_gpio_data(struct hda_codec * codec) alc_write_gpio_data() argument 111 alc_update_gpio_data(struct hda_codec * codec,unsigned int mask,bool on) alc_update_gpio_data() argument 126 alc_write_gpio(struct hda_codec * codec) alc_write_gpio() argument 143 alc_fixup_gpio(struct hda_codec * codec,int action,unsigned int mask) alc_fixup_gpio() argument 150 alc_fixup_gpio1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_gpio1() argument 157 alc_fixup_gpio2(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_gpio2() argument 164 alc_fixup_gpio3(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_gpio3() argument 171 alc_fixup_gpio4(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_gpio4() argument 178 alc_fixup_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_micmute_led() argument 191 alc_fix_pll(struct hda_codec * codec) alc_fix_pll() argument 201 alc_fix_pll_init(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx,unsigned int coef_bit) alc_fix_pll_init() argument 213 alc_update_knob_master(struct hda_codec * codec,struct hda_jack_callback * jack) alc_update_knob_master() argument 237 alc_fill_eapd_coef(struct hda_codec * codec) alc_fill_eapd_coef() argument 356 set_eapd(struct hda_codec * codec,hda_nid_t nid,int on) set_eapd() argument 366 alc_auto_setup_eapd(struct hda_codec * codec,bool on) alc_auto_setup_eapd() argument 379 alc_find_ext_mic_pin(struct hda_codec * codec) alc_find_ext_mic_pin() argument 401 alc_headset_mic_no_shutup(struct hda_codec * codec) alc_headset_mic_no_shutup() argument 424 alc_shutup_pins(struct hda_codec * codec) alc_shutup_pins() argument 455 alc_eapd_shutup(struct hda_codec * codec) alc_eapd_shutup() argument 467 alc888_coef_init(struct hda_codec * codec) alc888_coef_init() argument 480 alc_auto_init_amp(struct hda_codec * codec,int type) alc_auto_init_amp() argument 525 alc_fixup_sku_ignore(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_sku_ignore() argument 536 alc_fixup_no_depop_delay(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_no_depop_delay() argument 548 alc_auto_parse_customize_define(struct hda_codec * codec) alc_auto_parse_customize_define() argument 640 alc_subsystem_id(struct hda_codec * codec,const hda_nid_t * ports) alc_subsystem_id() argument 743 alc_ssid_check(struct hda_codec * codec,const hda_nid_t * ports) alc_ssid_check() argument 757 alc_fixup_inv_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_inv_dmic() argument 766 alc_build_controls(struct hda_codec * codec) alc_build_controls() argument 779 alc_init(struct hda_codec * codec) alc_init() argument 802 alc_shutup(struct hda_codec * codec) alc_shutup() argument 816 alc_power_eapd(struct hda_codec * codec) alc_power_eapd() argument 822 alc_suspend(struct hda_codec * codec) alc_suspend() argument 832 alc_resume(struct hda_codec * codec) alc_resume() argument 915 alc_codec_rename_from_preset(struct hda_codec * codec) alc_codec_rename_from_preset() argument 987 alc_has_cdefine_beep(struct hda_codec * codec) alc_has_cdefine_beep() argument 1004 alc_parse_auto_config(struct hda_codec * codec,const hda_nid_t * ignore_nids,const hda_nid_t * ssid_nids) alc_parse_auto_config() argument 1029 alc_alloc_spec(struct hda_codec * codec,hda_nid_t mixer_nid) alc_alloc_spec() argument 1058 alc_fixup_dual_codecs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_dual_codecs() argument 1087 alc_fixup_bass_chmap(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_bass_chmap() argument 1098 alc1220_fixup_gb_dual_codecs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc1220_fixup_gb_dual_codecs() argument 1123 alc233_alc662_fixup_lenovo_dual_codecs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_alc662_fixup_lenovo_dual_codecs() argument 1148 alc_shutup_dell_xps13(struct hda_codec * codec) alc_shutup_dell_xps13() argument 1159 alc_fixup_dell_xps13(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_dell_xps13() argument 1191 alc_hp_mute_disable(struct hda_codec * codec,unsigned int delay) alc_hp_mute_disable() argument 1203 alc_hp_enable_unmute(struct hda_codec * codec,unsigned int delay) alc_hp_enable_unmute() argument 1226 alc_headset_mode_unplugged(struct hda_codec * codec) alc_headset_mode_unplugged() argument 1363 alc_headset_mode_mic_in(struct hda_codec * codec,hda_nid_t hp_pin,hda_nid_t mic_pin) alc_headset_mode_mic_in() argument 1502 alc_headset_mode_default(struct hda_codec * codec) alc_headset_mode_default() argument 1623 alc_headset_mode_ctia(struct hda_codec * codec) alc_headset_mode_ctia() argument 1747 alc_headset_mode_omtp(struct hda_codec * codec) alc_headset_mode_omtp() argument 1849 alc_determine_headset_type(struct hda_codec * codec) alc_determine_headset_type() argument 2043 alc_update_headset_mode(struct hda_codec * codec) alc_update_headset_mode() argument 2103 alc_update_headset_mode_hook(struct hda_codec * codec,struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) alc_update_headset_mode_hook() argument 2110 alc_update_headset_jack_cb(struct hda_codec * codec,struct hda_jack_callback * jack) alc_update_headset_jack_cb() argument 2118 alc_probe_headset_mode(struct hda_codec * codec) alc_probe_headset_mode() argument 2138 alc_fixup_headset_mode(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mode() argument 2161 alc_fixup_headset_mode_no_hp_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mode_no_hp_mic() argument 2173 alc_fixup_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mic() argument 2184 alc_update_gpio_led(struct hda_codec * codec,unsigned int mask,int polarity,bool enabled) alc_update_gpio_led() argument 2197 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); micmute_led_set() local 2209 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); gpio_mute_led_set() local 2218 alc_fixup_hp_gpio_led(struct hda_codec * codec,int action,unsigned int mute_mask,unsigned int micmute_mask) alc_fixup_hp_gpio_led() argument 2241 alc_fixup_no_jack_detect(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_no_jack_detect() argument 2249 alc_fixup_disable_aamix(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_disable_aamix() argument 2260 alc_fixup_auto_mute_via_amp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_auto_mute_via_amp() argument [all...] |
| H A D | alc269.c | 50 static int alc269_parse_auto_config(struct hda_codec *codec) in alc269_parse_auto_config() argument 55 struct alc_spec *spec = codec->spec; in alc269_parse_auto_config() 90 return alc_parse_auto_config(codec, alc269_ignore, ssids); in alc269_parse_auto_config() 101 static void alc_headset_btn_callback(struct hda_codec *codec, in alc_headset_btn_callback() argument 120 snd_hda_jack_set_button_state(codec, jack->nid, report); in alc_headset_btn_callback() 123 static void alc_disable_headset_jack_key(struct hda_codec *codec) in alc_disable_headset_jack_key() argument 125 struct alc_spec *spec = codec->spec; in alc_disable_headset_jack_key() 130 switch (codec->core.vendor_id) { in alc_disable_headset_jack_key() 138 alc_write_coef_idx(codec, 0x48, 0x0); in alc_disable_headset_jack_key() 139 alc_update_coef_idx(codec, in alc_disable_headset_jack_key() 153 alc_enable_headset_jack_key(struct hda_codec * codec) alc_enable_headset_jack_key() argument 183 alc_fixup_headset_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_jack() argument 209 alc269vb_toggle_power_output(struct hda_codec * codec,int power_up) alc269vb_toggle_power_output() argument 214 alc269_shutup(struct hda_codec * codec) alc269_shutup() argument 260 alc282_restore_default_value(struct hda_codec * codec) alc282_restore_default_value() argument 265 alc282_init(struct hda_codec * codec) alc282_init() argument 302 alc282_shutup(struct hda_codec * codec) alc282_shutup() argument 376 alc283_restore_default_value(struct hda_codec * codec) alc283_restore_default_value() argument 381 alc283_init(struct hda_codec * codec) alc283_init() argument 417 alc283_shutup(struct hda_codec * codec) alc283_shutup() argument 454 alc256_init(struct hda_codec * codec) alc256_init() argument 503 alc256_shutup(struct hda_codec * codec) alc256_shutup() argument 552 alc285_hp_init(struct hda_codec * codec) alc285_hp_init() argument 602 alc225_init(struct hda_codec * codec) alc225_init() argument 657 alc225_shutup(struct hda_codec * codec) alc225_shutup() argument 707 alc222_init(struct hda_codec * codec) alc222_init() argument 743 alc222_shutup(struct hda_codec * codec) alc222_shutup() argument 780 alc_default_init(struct hda_codec * codec) alc_default_init() argument 807 alc_default_shutup(struct hda_codec * codec) alc_default_shutup() argument 838 alc294_hp_init(struct hda_codec * codec) alc294_hp_init() argument 870 alc294_init(struct hda_codec * codec) alc294_init() argument 882 alc5505_coef_set(struct hda_codec * codec,unsigned int index_reg,unsigned int val) alc5505_coef_set() argument 890 alc5505_coef_get(struct hda_codec * codec,unsigned int index_reg) alc5505_coef_get() argument 902 alc5505_dsp_halt(struct hda_codec * codec) alc5505_dsp_halt() argument 917 alc5505_dsp_back_from_halt(struct hda_codec * codec) alc5505_dsp_back_from_halt() argument 927 alc5505_dsp_init(struct hda_codec * codec) alc5505_dsp_init() argument 967 alc5505_dsp_suspend(codec) global() argument 968 alc5505_dsp_resume(codec) global() argument 970 alc5505_dsp_suspend(codec) global() argument 971 alc5505_dsp_resume(codec) global() argument 974 alc269_suspend(struct hda_codec * codec) alc269_suspend() argument 984 alc269_resume(struct hda_codec * codec) alc269_resume() argument 1016 alc233_starfighter_update_amp(struct hda_codec * codec,bool on) alc233_starfighter_update_amp() argument 1025 alc233_starfighter_pcm_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) alc233_starfighter_pcm_hook() argument 1039 alc233_fixup_starlabs_starfighter(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_starlabs_starfighter() argument 1057 alc269_fixup_pincfg_no_hp_to_lineout(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_pincfg_no_hp_to_lineout() argument 1066 alc269_fixup_pincfg_U7x7_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_pincfg_U7x7_headset_mic() argument 1079 alc269_fixup_hweq(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hweq() argument 1086 alc271_fixup_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc271_fixup_dmic() argument 1105 alc269vb_fixup_aspire_e1_coef(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269vb_fixup_aspire_e1_coef() argument 1113 alc269_fixup_pcm_44k(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_pcm_44k() argument 1128 alc269_fixup_stereo_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_stereo_dmic() argument 1140 alc269_quanta_automute(struct hda_codec * codec) alc269_quanta_automute() argument 1148 alc269_fixup_quanta_mute(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_quanta_mute() argument 1157 alc269_x101_hp_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc269_x101_hp_automute_hook() argument 1182 alc298_huawei_mbx_stereo_seq(struct hda_codec * codec,const struct hda_alc298_mbxinit * initval,bool first) alc298_huawei_mbx_stereo_seq() argument 1203 alc298_fixup_huawei_mbx_stereo(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_huawei_mbx_stereo() argument 1240 alc269_fixup_x101_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_x101_headset_mic() argument 1250 alc_update_vref_led(struct hda_codec * codec,hda_nid_t pin,bool polarity,bool on) alc_update_vref_led() argument 1271 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); vref_mute_led_set() local 1280 led_power_filter(struct hda_codec * codec,hda_nid_t nid,unsigned int power_state) led_power_filter() argument 1297 alc269_fixup_hp_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_mute_led() argument 1323 alc269_fixup_hp_mute_led_micx(struct hda_codec * codec,const struct hda_fixup * fix,int action,hda_nid_t pin) alc269_fixup_hp_mute_led_micx() argument 1337 alc269_fixup_hp_mute_led_mic1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_mute_led_mic1() argument 1343 alc269_fixup_hp_mute_led_mic2(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_mute_led_mic2() argument 1349 alc269_fixup_hp_mute_led_mic3(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_mute_led_mic3() argument 1355 alc236_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_gpio_led() argument 1361 alc269_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_gpio_led() argument 1367 alc285_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_gpio_led() argument 1373 alc286_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc286_fixup_hp_gpio_led() argument 1379 alc287_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_hp_gpio_led() argument 1385 alc245_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_gpio_led() argument 1399 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); vref_micmute_led_set() local 1407 alc269_fixup_hp_gpio_mic1_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_gpio_mic1_led() argument 1425 alc280_fixup_hp_gpio4(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc280_fixup_hp_gpio4() argument 1441 alc245_fixup_hp_x360_amp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_x360_amp() argument 1462 alc274_hp_envy_pcm_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) alc274_hp_envy_pcm_hook() argument 1476 alc274_fixup_hp_envy_gpio(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc274_fixup_hp_envy_gpio() argument 1489 alc_update_coef_led(struct hda_codec * codec,struct alc_coef_led * led,bool polarity,bool on) alc_update_coef_led() argument 1504 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); coef_mute_led_set() local 1512 alc285_fixup_hp_mute_led_coefbit(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_mute_led_coefbit() argument 1528 alc236_fixup_hp_mute_led_coefbit(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_mute_led_coefbit() argument 1544 alc236_fixup_hp_mute_led_coefbit2(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_mute_led_coefbit2() argument 1559 alc245_fixup_hp_mute_led_coefbit(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_mute_led_coefbit() argument 1575 alc245_fixup_hp_mute_led_v1_coefbit(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_mute_led_v1_coefbit() argument 1591 alc245_fixup_hp_mute_led_v2_coefbit(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_mute_led_v2_coefbit() argument 1611 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); coef_micmute_led_set() local 1619 alc285_fixup_hp_coef_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_coef_micmute_led() argument 1633 alc285_fixup_hp_gpio_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_gpio_micmute_led() argument 1643 alc236_fixup_hp_coef_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_coef_micmute_led() argument 1657 alc295_fixup_hp_mute_led_coefbit11(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_hp_mute_led_coefbit11() argument 1672 alc233_fixup_lenovo_coef_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_lenovo_coef_micmute_led() argument 1686 alc285_fixup_hp_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_mute_led() argument 1693 alc285_fixup_hp_spectre_x360_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_spectre_x360_mute_led() argument 1700 alc245_fixup_hp_envy_x360_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_envy_x360_mute_led() argument 1707 alc236_fixup_hp_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_mute_led() argument 1714 alc236_fixup_hp_micmute_led_vref(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_micmute_led_vref() argument 1726 alc236_fixup_hp_mute_led_micmute_vref(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_mute_led_micmute_vref() argument 1733 alc236_fixup_hp_mute_led_micmute_gpio(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_mute_led_micmute_gpio() argument 1745 alc298_samsung_write_coef_pack(struct hda_codec * codec,const unsigned short coefs[2]) alc298_samsung_write_coef_pack() argument 1758 alc298_fixup_samsung_amp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_samsung_amp() argument 1827 alc298_samsung_v2_enable_amps(struct hda_codec * codec) alc298_samsung_v2_enable_amps() argument 1844 alc298_samsung_v2_disable_amps(struct hda_codec * codec) alc298_samsung_v2_disable_amps() argument 1862 alc298_samsung_v2_playback_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) alc298_samsung_v2_playback_hook() argument 1873 alc298_samsung_v2_init_amps(struct hda_codec * codec,int num_speaker_amps) alc298_samsung_v2_init_amps() argument 1908 alc298_lg_gram_style_coef_write(struct hda_codec * codec,unsigned int verb,unsigned int idx,unsigned int val) alc298_lg_gram_style_coef_write() argument 1920 alc298_lg_gram_style_run_seq(struct hda_codec * codec,const struct alc298_lg_gram_style_seq * seq,int seq_size) alc298_lg_gram_style_run_seq() argument 1997 alc298_lg_gram_style_enable_amps(struct hda_codec * codec) alc298_lg_gram_style_enable_amps() argument 2010 alc298_lg_gram_style_disable_amps(struct hda_codec * codec) alc298_lg_gram_style_disable_amps() argument 2024 alc298_lg_gram_style_playback_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) alc298_lg_gram_style_playback_hook() argument 2034 alc298_lg_gram_style_init_amps(struct hda_codec * codec) alc298_lg_gram_style_init_amps() argument 2058 alc298_fixup_samsung_amp_v2_2_amps(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_samsung_amp_v2_2_amps() argument 2065 alc298_fixup_samsung_amp_v2_4_amps(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_samsung_amp_v2_4_amps() argument 2072 alc298_fixup_lg_gram_style_14(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_lg_gram_style_14() argument 2079 gpio2_mic_hotkey_event(struct hda_codec * codec,struct hda_jack_callback * event) gpio2_mic_hotkey_event() argument 2092 alc_register_micmute_input_device(struct hda_codec * codec) alc_register_micmute_input_device() argument 2128 alc280_fixup_hp_gpio2_mic_hotkey(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc280_fixup_hp_gpio2_mic_hotkey() argument 2162 alc233_fixup_lenovo_gpio2_mic_hotkey(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_lenovo_gpio2_mic_hotkey() argument 2195 alc233_fixup_lenovo_line2_mic_hotkey(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_lenovo_line2_mic_hotkey() argument 2221 alc269_fixup_hp_line1_mic1_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_line1_mic1_led() argument 2233 alc233_fixup_lenovo_low_en_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_lenovo_low_en_micmute_led() argument 2243 alc255_set_default_jack_type(struct hda_codec * codec) alc255_set_default_jack_type() argument 2276 alc_fixup_headset_mode_alc255(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mode_alc255() argument 2285 alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mode_alc255_no_hp_mic() argument 2297 alc288_update_headset_jack_cb(struct hda_codec * codec,struct hda_jack_callback * jack) alc288_update_headset_jack_cb() argument 2307 alc_fixup_headset_mode_dell_alc288(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mode_dell_alc288() argument 2320 alc_fixup_no_shutup(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_no_shutup() argument 2330 alc_fixup_tpt440_dock(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_tpt440_dock() argument 2347 alc_fixup_tpt470_dock(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_tpt470_dock() argument 2370 alc_fixup_tpt470_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_tpt470_dacs() argument 2387 alc295_fixup_asus_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_asus_dacs() argument 2399 alc271_hp_gate_mic_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc271_hp_gate_mic_jack() argument 2415 alc269_fixup_limit_int_mic_boost(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_limit_int_mic_boost() argument 2447 alc283_hp_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc283_hp_automute_hook() argument 2463 alc283_fixup_chromebook(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc283_fixup_chromebook() argument 2484 alc283_fixup_sense_combo_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc283_fixup_sense_combo_jack() argument 2502 asus_tx300_automute(struct hda_codec * codec) asus_tx300_automute() argument 2510 alc282_fixup_asus_tx300(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc282_fixup_asus_tx300() argument 2545 alc290_fixup_mono_speakers(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc290_fixup_mono_speakers() argument 2558 alc298_fixup_speaker_volume(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_speaker_volume() argument 2575 alc295_fixup_disable_dac3(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_disable_dac3() argument 2585 alc285_fixup_speaker2_to_dac1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_speaker2_to_dac1() argument 2595 alc294_fixup_bass_speaker_15(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc294_fixup_bass_speaker_15() argument 2606 alc280_hp_gpio4_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc280_hp_gpio4_automute_hook() argument 2623 alc280_fixup_hp_9480m(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc280_fixup_hp_9480m() argument 2638 alc275_fixup_gpio4_off(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc275_fixup_gpio4_off() argument 2657 alc285_fixup_thinkpad_x1_gen7(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_thinkpad_x1_gen7() argument 2684 alc225_fixup_s3_pop_noise(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc225_fixup_s3_pop_noise() argument 2694 alc274_fixup_bind_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc274_fixup_bind_dacs() argument 2712 alc274_fixup_hp_aio_bind_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc274_fixup_hp_aio_bind_dacs() argument 2731 alc289_fixup_asus_ga401(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc289_fixup_asus_ga401() argument 2744 alc285_fixup_invalidate_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_invalidate_dacs() argument 2753 alc_combo_jack_hp_jd_restart(struct hda_codec * codec) alc_combo_jack_hp_jd_restart() argument 2777 alc295_fixup_chromebook(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_chromebook() argument 2792 alc256_fixup_chromebook(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc256_fixup_chromebook() argument 2809 alc_fixup_disable_mic_vref(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_disable_mic_vref() argument 2817 alc294_gx502_toggle_output(struct hda_codec * codec,struct hda_jack_callback * cb) alc294_gx502_toggle_output() argument 2829 alc294_fixup_gx502_hp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc294_fixup_gx502_hp() argument 2850 alc294_gu502_toggle_output(struct hda_codec * codec,struct hda_jack_callback * cb) alc294_gu502_toggle_output() argument 2862 alc294_fixup_gu502_hp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc294_fixup_gu502_hp() argument 2879 alc285_fixup_hp_gpio_amp_init(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_gpio_amp_init() argument 2889 alc274_fixup_hp_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc274_fixup_hp_headset_mic() argument 2899 alc_fixup_no_int_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_no_int_mic() argument 2919 alc285_fixup_hp_spectre_x360_eb1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_spectre_x360_eb1() argument 2955 alc285_fixup_hp_spectre_x360_df1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_spectre_x360_df1() argument 2989 alc285_fixup_hp_spectre_x360(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_spectre_x360() argument 3007 alc285_fixup_hp_envy_x360(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_envy_x360() argument 3061 alc285_fixup_hp_beep(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_beep() argument 3088 alc_fixup_thinkpad_acpi(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_thinkpad_acpi() argument 3098 alc_fixup_ideapad_acpi(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_ideapad_acpi() argument 3105 alc287_fixup_legion_15imhg05_speakers(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_legion_15imhg05_speakers() argument 3260 cs35l41_fixup_spi_two(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs35l41_fixup_spi_two() argument 3265 cs35l41_fixup_spi_one(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs35l41_fixup_spi_one() argument 3270 cs35l41_fixup_spi_four(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs35l41_fixup_spi_four() argument 3320 alc256_fixup_acer_sfg16_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc256_fixup_acer_sfg16_micmute_led() argument 3340 alc256_fixup_set_coef_defaults(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc256_fixup_set_coef_defaults() argument 3362 alc233_fixup_no_audio_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_no_audio_jack() argument 3376 alc256_fixup_mic_no_presence_and_resume(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc256_fixup_mic_no_presence_and_resume() argument 3393 alc256_decrease_headphone_amp_val(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc256_decrease_headphone_amp_val() argument 3412 alc_fixup_dell4_mic_no_presence_quiet(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_dell4_mic_no_presence_quiet() argument 3447 alc287_fixup_yoga9_14iap7_bass_spk_pin(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_yoga9_14iap7_bass_spk_pin() argument 3487 alc295_fixup_dell_inspiron_top_speakers(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_dell_inspiron_top_speakers() argument 3516 alc287_fixup_bind_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_bind_dacs() argument 3538 alc2xx_fixup_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc2xx_fixup_headset_mic() argument 3556 alc245_fixup_hp_spectre_x360_eu0xxx(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_spectre_x360_eu0xxx() argument 3589 alc245_fixup_hp_spectre_x360_16_aa0xxx(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_spectre_x360_16_aa0xxx() argument 3631 alc245_fixup_hp_zbook_firefly_g12a(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_zbook_firefly_g12a() argument 3653 alc287_alc1318_playback_pcm_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) alc287_alc1318_playback_pcm_hook() argument 3667 alc287_s4_power_gpio3_default(struct hda_codec * codec) alc287_s4_power_gpio3_default() argument 3674 alc287_fixup_lenovo_thinkpad_with_alc1318(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_lenovo_thinkpad_with_alc1318() argument 3698 alc245_tas2781_spi_hp_fixup_muteled(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_tas2781_spi_hp_fixup_muteled() argument 3718 struct hda_codec *codec = private_data; alc245_hp_spk_mute_led_update() local 3726 alc245_tas2781_i2c_hp_fixup_muteled(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_tas2781_i2c_hp_fixup_muteled() argument 3757 alc283_fixup_dell_hp_resume(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc283_fixup_dell_hp_resume() argument 3765 alc288_fixup_surface_swap_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc288_fixup_surface_swap_dacs() argument 4121 alc298_fixup_lenovo_c940_duet7(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_lenovo_c940_duet7() argument 4138 alc287_fixup_lenovo_yoga_book_9i(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_lenovo_yoga_book_9i() argument 8452 alc269_fill_coef(struct hda_codec * codec) alc269_fill_coef() argument 8492 alc269_remove(struct hda_codec * codec) alc269_remove() argument 8504 alc269_probe(struct hda_codec * codec,const struct hda_device_id * id) alc269_probe() argument [all...] |
| /linux/sound/hda/common/ |
| H A D | bind.c | 23 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() local 28 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match() 29 u32 rev_id = codec->core.revision_id; in hda_codec_match() 34 codec->preset = list; in hda_codec_match() 44 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event() local 45 struct hda_codec_driver *driver = hda_codec_to_driver(codec); in hda_codec_unsol_event() 48 if (codec->card->shutdown || codec->bus->shutdown) in hda_codec_unsol_event() 52 if (codec->core.dev.power.power_state.event != PM_EVENT_ON) in hda_codec_unsol_event() 56 driver->ops->unsol_event(codec, ev); in hda_codec_unsol_event() 64 int snd_hda_codec_set_name(struct hda_codec *codec, const char *name) in snd_hda_codec_set_name() argument [all …]
|
| H A D | codec.c | 28 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument 29 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument 30 #define codec_has_epss(codec) \ argument 31 ((codec)->core.power_caps & AC_PWRST_EPSS) 32 #define codec_has_clkstop(codec) \ argument 33 ((codec)->core.power_caps & AC_PWRST_CLKSTOP) 35 static int call_exec_verb(struct hda_bus *bus, struct hda_codec *codec, in call_exec_verb() argument 41 CLASS(snd_hda_power_pm, pm)(codec); in call_exec_verb() 57 struct hda_codec *codec = container_of(dev, struct hda_codec, core); codec_exec_verb() local 88 snd_hda_sequence_write(struct hda_codec * codec,const struct hda_verb * seq) snd_hda_sequence_write() argument 105 lookup_conn_list(struct hda_codec * codec,hda_nid_t nid) lookup_conn_list() argument 115 add_conn_list(struct hda_codec * codec,hda_nid_t nid,int len,const hda_nid_t * list) add_conn_list() argument 130 remove_conn_list(struct hda_codec * codec) remove_conn_list() argument 141 read_and_add_raw_conns(struct hda_codec * codec,hda_nid_t nid) read_and_add_raw_conns() argument 177 snd_hda_get_conn_list(struct hda_codec * codec,hda_nid_t nid,const hda_nid_t ** listp) snd_hda_get_conn_list() argument 216 snd_hda_get_connections(struct hda_codec * codec,hda_nid_t nid,hda_nid_t * conn_list,int max_conns) snd_hda_get_connections() argument 247 snd_hda_override_conn_list(struct hda_codec * codec,hda_nid_t nid,int len,const hda_nid_t * list) snd_hda_override_conn_list() argument 273 snd_hda_get_conn_index(struct hda_codec * codec,hda_nid_t mux,hda_nid_t nid,int recursive) snd_hda_get_conn_index() argument 309 snd_hda_get_num_devices(struct hda_codec * codec,hda_nid_t nid) snd_hda_get_num_devices() argument 335 snd_hda_get_devices(struct hda_codec * codec,hda_nid_t nid,u8 * dev_list,unsigned int max_devices) snd_hda_get_devices() argument 372 snd_hda_get_dev_select(struct hda_codec * codec,hda_nid_t nid) snd_hda_get_dev_select() argument 390 snd_hda_set_dev_select(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_set_dev_select() argument 423 read_widget_caps(struct hda_codec * codec,hda_nid_t fg_node) read_widget_caps() argument 439 read_pin_defaults(struct hda_codec * codec) read_pin_defaults() argument 467 look_up_pincfg(struct hda_codec * codec,struct snd_array * array,hda_nid_t nid) look_up_pincfg() argument 484 snd_hda_add_pincfg(struct hda_codec * codec,struct snd_array * list,hda_nid_t nid,unsigned int cfg) snd_hda_add_pincfg() argument 510 snd_hda_codec_set_pincfg(struct hda_codec * codec,hda_nid_t nid,unsigned int cfg) snd_hda_codec_set_pincfg() argument 526 snd_hda_codec_get_pincfg(struct hda_codec * codec,hda_nid_t nid) snd_hda_codec_get_pincfg() argument 562 snd_hda_codec_set_pin_target(struct hda_codec * codec,hda_nid_t nid,unsigned int val) snd_hda_codec_set_pin_target() argument 580 snd_hda_codec_get_pin_target(struct hda_codec * codec,hda_nid_t nid) snd_hda_codec_get_pin_target() argument 598 snd_hda_shutup_pins(struct hda_codec * codec) snd_hda_shutup_pins() argument 618 restore_shutup_pins(struct hda_codec * codec) restore_shutup_pins() argument 637 struct hda_codec *codec = hda_jackpoll_work() local 652 free_init_pincfgs(struct hda_codec * codec) free_init_pincfgs() argument 675 get_hda_cvt_setup(struct hda_codec * codec,hda_nid_t nid) get_hda_cvt_setup() argument 700 snd_hda_codec_pcm_new(struct hda_codec * codec,const char * fmt,...) snd_hda_codec_pcm_new() argument 728 snd_hda_codec_disconnect_pcms(struct hda_codec * codec) snd_hda_codec_disconnect_pcms() argument 742 codec_release_pcms(struct hda_codec * codec) codec_release_pcms() argument 760 snd_hda_codec_cleanup_for_unbind(struct hda_codec * codec) snd_hda_codec_cleanup_for_unbind() argument 799 snd_hda_codec_display_power(struct hda_codec * codec,bool enable) snd_hda_codec_display_power() argument 811 snd_hda_codec_register(struct hda_codec * codec) snd_hda_codec_register() argument 835 snd_hda_codec_unregister(struct hda_codec * codec) snd_hda_codec_unregister() argument 864 struct hda_codec *codec = dev_to_hda_codec(dev); snd_hda_codec_dev_release() local 890 struct hda_codec *codec; snd_hda_codec_device_init() local 950 struct hda_codec *codec; snd_hda_codec_new() local 968 snd_hda_codec_device_new(struct hda_bus * bus,struct snd_card * card,unsigned int codec_addr,struct hda_codec * codec,bool snddev_managed) snd_hda_codec_device_new() argument 1047 snd_hda_codec_update_widgets(struct hda_codec * codec) snd_hda_codec_update_widgets() argument 1073 update_pcm_stream_id(struct hda_codec * codec,struct hda_cvt_setup * p,hda_nid_t nid,u32 stream_tag,int channel_id) update_pcm_stream_id() argument 1092 update_pcm_format(struct hda_codec * codec,struct hda_cvt_setup * p,hda_nid_t nid,int format) update_pcm_format() argument 1118 snd_hda_codec_setup_stream(struct hda_codec * codec,hda_nid_t nid,u32 stream_tag,int channel_id,int format) snd_hda_codec_setup_stream() argument 1170 __snd_hda_codec_cleanup_stream(struct hda_codec * codec,hda_nid_t nid,int do_now) __snd_hda_codec_cleanup_stream() argument 1196 really_cleanup_stream(struct hda_codec * codec,struct hda_cvt_setup * q) really_cleanup_stream() argument 1214 purify_inactive_streams(struct hda_codec * codec) purify_inactive_streams() argument 1229 hda_cleanup_all_streams(struct hda_codec * codec) hda_cleanup_all_streams() argument 1256 query_amp_caps(struct hda_codec * codec,hda_nid_t nid,int direction) query_amp_caps() argument 1275 snd_hda_check_amp_caps(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int bits) snd_hda_check_amp_caps() argument 1300 snd_hda_override_amp_caps(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int caps) snd_hda_override_amp_caps() argument 1312 encode_amp(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx) encode_amp() argument 1336 snd_hda_codec_amp_update(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,int mask,int val) snd_hda_codec_amp_update() argument 1357 snd_hda_codec_amp_stereo(struct hda_codec * codec,hda_nid_t nid,int direction,int idx,int mask,int val) snd_hda_codec_amp_stereo() argument 1385 snd_hda_codec_amp_init(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,int mask,int val) snd_hda_codec_amp_init() argument 1407 snd_hda_codec_amp_init_stereo(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,int mask,int val) snd_hda_codec_amp_init_stereo() argument 1421 get_amp_max_value(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int ofs) get_amp_max_value() argument 1443 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_volume_info() local 1465 read_amp_value(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,unsigned int ofs) read_amp_value() argument 1479 update_amp_value(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,unsigned int ofs,unsigned int val) update_amp_value() argument 1506 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_volume_get() local 1533 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_volume_put() local 1563 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); get_ctl_amp_tlv() local 1619 snd_hda_set_vmaster_tlv(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int * tlv) snd_hda_set_vmaster_tlv() argument 1638 find_mixer_ctl(struct hda_codec * codec,const char * name,int dev,int idx) find_mixer_ctl() argument 1658 snd_hda_find_mixer_ctl(struct hda_codec * codec,const char * name) snd_hda_find_mixer_ctl() argument 1665 find_empty_mixer_ctl_idx(struct hda_codec * codec,const char * name,int start_idx) find_empty_mixer_ctl_idx() argument 1696 snd_hda_ctl_add(struct hda_codec * codec,hda_nid_t nid,struct snd_kcontrol * kctl) snd_hda_ctl_add() argument 1729 snd_hda_ctls_clear(struct hda_codec * codec) snd_hda_ctls_clear() argument 1749 struct hda_codec *codec; snd_hda_lock_devices() local 1799 snd_hda_codec_reset(struct hda_codec * codec) snd_hda_codec_reset() argument 1817 map_followers(struct hda_codec * codec,const char * const * followers,const char * suffix,map_follower_func_t func,void * data) map_followers() argument 1848 check_follower_present(struct hda_codec * codec,void * data,struct snd_kcontrol * sctl) check_follower_present() argument 1869 struct hda_codec *codec; global() member 1928 add_follower(struct hda_codec * codec,void * data,struct snd_kcontrol * follower) add_follower() argument 1954 __snd_hda_add_vmaster(struct hda_codec * codec,char * name,unsigned int * tlv,const char * const * followers,const char * suffix,bool init_follower_vol,unsigned int access,struct snd_kcontrol ** ctl_ret) __snd_hda_add_vmaster() argument 2015 snd_hda_add_vmaster_hook(struct hda_codec * codec,struct hda_vmaster_mute_hook * hook) snd_hda_add_vmaster_hook() argument 2079 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_switch_get() local 2107 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_switch_put() local 2171 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_default_get() local 2241 set_dig_out(struct hda_codec * codec,hda_nid_t nid,int mask,int val) set_dig_out() argument 2256 set_dig_out_convert(struct hda_codec * codec,hda_nid_t nid,int dig1,int dig2) set_dig_out_convert() argument 2276 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_default_put() local 2306 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_out_switch_get() local 2318 set_spdif_ctls(struct hda_codec * codec,hda_nid_t nid,int dig1,int dig2) set_spdif_ctls() argument 2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_out_switch_put() local 2397 snd_hda_create_dig_out_ctls(struct hda_codec * codec,hda_nid_t associated_nid,hda_nid_t cvt_nid,int type) snd_hda_create_dig_out_ctls() argument 2468 snd_hda_spdif_out_of_nid(struct hda_codec * codec,hda_nid_t nid) snd_hda_spdif_out_of_nid() argument 2489 snd_hda_spdif_ctls_unassign(struct hda_codec * codec,int idx) snd_hda_spdif_ctls_unassign() argument 2509 snd_hda_spdif_ctls_assign(struct hda_codec * codec,int idx,hda_nid_t nid) snd_hda_spdif_ctls_assign() argument 2558 snd_hda_create_spdif_share_sw(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_create_spdif_share_sw() argument 2583 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_in_switch_get() local 2592 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_in_switch_put() local 2610 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_in_status_get() local 2653 snd_hda_create_spdif_in_ctls(struct hda_codec * codec,hda_nid_t nid) snd_hda_create_spdif_in_ctls() argument 2692 snd_hda_codec_set_power_to_all(struct hda_codec * codec,hda_nid_t fg,unsigned int power_state) snd_hda_codec_set_power_to_all() argument 2722 snd_hda_codec_eapd_power_filter(struct hda_codec * codec,hda_nid_t nid,unsigned int power_state) snd_hda_codec_eapd_power_filter() argument 2743 hda_set_power_state(struct hda_codec * codec,unsigned int power_state) hda_set_power_state() argument 2787 sync_power_up_states(struct hda_codec * codec) sync_power_up_states() argument 2811 hda_exec_init_verbs(struct hda_codec * codec) hda_exec_init_verbs() argument 2817 hda_exec_init_verbs(struct hda_codec * codec) hda_exec_init_verbs() argument 2821 update_power_acct(struct hda_codec * codec,bool on) update_power_acct() argument 2832 snd_hda_update_power_acct(struct hda_codec * codec) snd_hda_update_power_acct() argument 2841 hda_call_codec_suspend(struct hda_codec * codec) hda_call_codec_suspend() argument 2860 hda_call_codec_resume(struct hda_codec * codec) hda_call_codec_resume() argument 2891 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_runtime_suspend() local 2910 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_runtime_resume() local 2925 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_runtime_idle() local 2934 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_pm_prepare() local 2943 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_pm_complete() local 2968 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_pm_freeze() local 3002 snd_hda_codec_shutdown(struct hda_codec * codec) snd_hda_codec_shutdown() argument 3022 add_std_chmaps(struct hda_codec * codec) add_std_chmaps() argument 3060 snd_hda_codec_build_controls(struct hda_codec * codec) snd_hda_codec_build_controls() argument 3096 hda_pcm_default_open_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) hda_pcm_default_open_close() argument 3103 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) hda_pcm_default_prepare() argument 3113 hda_pcm_default_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) hda_pcm_default_cleanup() argument 3120 set_pcm_default_values(struct hda_codec * codec,struct hda_pcm_stream * info) set_pcm_default_values() argument 3166 snd_hda_codec_prepare(struct hda_codec * codec,struct hda_pcm_stream * hinfo,unsigned int stream,unsigned int format,struct snd_pcm_substream * substream) snd_hda_codec_prepare() argument 3194 snd_hda_codec_cleanup(struct hda_codec * codec,struct hda_pcm_stream * hinfo,struct snd_pcm_substream * substream) snd_hda_codec_cleanup() argument 3258 snd_hda_codec_parse_pcms(struct hda_codec * codec) snd_hda_codec_parse_pcms() argument 3300 snd_hda_codec_build_pcms(struct hda_codec * codec) snd_hda_codec_build_pcms() argument 3345 snd_hda_add_new_ctls(struct hda_codec * codec,const struct snd_kcontrol_new * knew) snd_hda_add_new_ctls() argument 3397 snd_hda_codec_set_power_save(struct hda_codec * codec,int delay) snd_hda_codec_set_power_save() argument 3446 snd_hda_check_amp_list_power(struct hda_codec * codec,struct hda_loopback_check * check,hda_nid_t nid) snd_hda_check_amp_list_power() argument 3518 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) snd_hda_input_mux_put() argument 3573 setup_dig_out_stream(struct hda_codec * codec,hda_nid_t nid,unsigned int stream_tag,unsigned int format) setup_dig_out_stream() argument 3612 cleanup_dig_out_stream(struct hda_codec * codec,hda_nid_t nid) cleanup_dig_out_stream() argument 3627 snd_hda_multi_out_dig_open(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_dig_open() argument 3647 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) snd_hda_multi_out_dig_prepare() argument 3664 snd_hda_multi_out_dig_cleanup(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_dig_cleanup() argument 3678 snd_hda_multi_out_dig_close(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_dig_close() argument 3698 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) snd_hda_multi_out_analog_open() argument 3752 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) snd_hda_multi_out_analog_prepare() argument 3828 snd_hda_multi_out_analog_cleanup(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_analog_cleanup() argument 3863 snd_hda_get_default_vref(struct hda_codec * codec,hda_nid_t pin) snd_hda_get_default_vref() argument 3890 snd_hda_correct_pin_ctl(struct hda_codec * codec,hda_nid_t pin,unsigned int val) snd_hda_correct_pin_ctl() argument 3953 _snd_hda_set_pin_ctl(struct hda_codec * codec,hda_nid_t pin,unsigned int val,bool cached) _snd_hda_set_pin_ctl() argument 3979 snd_hda_add_imux_item(struct hda_codec * codec,struct hda_input_mux * imux,const char * label,int index,int * type_idx) snd_hda_add_imux_item() argument 4013 struct hda_codec *codec; snd_hda_bus_reset_codecs() local [all...] |
| H A D | jack.c | 29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() argument 31 if (codec->no_jack_detect) in is_jack_detectable() 33 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) in is_jack_detectable() 35 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & in is_jack_detectable() 38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable() 39 !codec->jackpoll_interval) in is_jack_detectable() 46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in read_pin_sense() argument 51 if (!codec->no_trigger_sense) { in read_pin_sense() 52 pincap = snd_hda_query_pin_caps(codec, nid); in read_pin_sense() 54 snd_hda_codec_read(codec, nid, 0, in read_pin_sense() [all …]
|
| H A D | hda_local.h | 119 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ argument 120 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) 121 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, 123 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, 125 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, 127 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, 129 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, 131 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, 133 int __snd_hda_add_vmaster(struct hda_codec *codec, char *name, 137 #define snd_hda_add_vmaster(codec, nam argument 142 snd_hda_regmap_sync(codec) global() argument 151 struct hda_codec *codec; global() member 169 snd_hda_create_spdif_out_ctls(codec,anid,cnid) global() argument 257 snd_hda_codec_proc_new(struct hda_codec * codec) snd_hda_codec_proc_new() argument 324 unsigned int codec; /* Codec vendor/device ID */ global() member 442 snd_hda_set_pin_ctl(struct hda_codec * codec,hda_nid_t pin,unsigned int val) snd_hda_set_pin_ctl() argument 456 snd_hda_set_pin_ctl_cache(struct hda_codec * codec,hda_nid_t pin,unsigned int val) snd_hda_set_pin_ctl_cache() argument 466 for_each_hda_codec_node(nid,codec) global() argument 473 snd_hda_codec_allow_unsol_events(struct hda_codec * codec) snd_hda_codec_allow_unsol_events() argument 481 get_wcaps(struct hda_codec * codec,hda_nid_t nid) get_wcaps() argument 507 snd_hda_override_wcaps(struct hda_codec * codec,hda_nid_t nid,u32 val) snd_hda_override_wcaps() argument 530 snd_hda_query_pin_caps(struct hda_codec * codec,hda_nid_t nid) snd_hda_query_pin_caps() argument 547 snd_hda_override_pin_caps(struct hda_codec * codec,hda_nid_t nid,unsigned int caps) snd_hda_override_pin_caps() argument 556 nid_has_mute(codec,nid,dir) global() argument 558 nid_has_volume(codec,nid,dir) global() argument 582 snd_hda_create_hwdep(struct hda_codec * codec) snd_hda_create_hwdep() argument 596 snd_hda_get_hint(struct hda_codec * codec,const char * key) snd_hda_get_hint() argument 602 snd_hda_get_bool_hint(struct hda_codec * codec,const char * key) snd_hda_get_bool_hint() argument 608 snd_hda_get_int_hint(struct hda_codec * codec,const char * key,int * valp) snd_hda_get_int_hint() argument 637 snd_hda_check_power_state(struct hda_codec * codec,hda_nid_t nid,unsigned int target_state) snd_hda_check_power_state() argument 643 snd_hda_sync_power_state(struct hda_codec * codec,hda_nid_t nid,unsigned int target_state) snd_hda_sync_power_state() argument 655 snd_hda_codec_init(struct hda_codec * codec) snd_hda_codec_init() argument 716 codec_err(codec,fmt,args...) global() argument 718 codec_warn(codec,fmt,args...) global() argument 720 codec_info(codec,fmt,args...) global() argument 722 codec_dbg(codec,fmt,args...) global() argument [all...] |
| H A D | proc.c | 19 MODULE_PARM_DESC(dump_coef, "Dump processing coefficients in codec proc file (-1=auto, 0=disable, 1=enable)"); 22 #define param_read(codec, nid, parm) \ argument 23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) 48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() argument 75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() argument 80 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in print_nid_pcms() 94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() argument 97 caps = param_read(codec, nid, dir == HDA_OUTPUT ? in print_amp_caps() 112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() argument 126 if (snd_hda_get_raw_connections(codec, ni in is_stereo_amps() 134 print_amp_vals(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int wcaps,int indices) print_amp_vals() argument 200 print_pcm_caps(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_pcm_caps() argument 305 print_pin_caps(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int * supports_vref) print_pin_caps() argument 401 print_pin_ctls(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int supports_vref) print_pin_ctls() argument 439 print_vol_knob(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_vol_knob() argument 451 print_audio_io(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,unsigned int wid_type) print_audio_io() argument 469 print_digital_conv(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_digital_conv() argument 513 print_power_state(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_power_state() argument 554 print_unsol_cap(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_unsol_cap() argument 564 can_dump_coef(struct hda_codec * codec) can_dump_coef() argument 574 print_proc_caps(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_proc_caps() argument 599 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) print_conn_list() argument 639 print_gpio(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_gpio() argument 682 print_dpmst_connections(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int dev_num) print_dpmst_connections() argument 715 print_device_list(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_device_list() argument 747 print_codec_core_info(struct hdac_device * codec,struct snd_info_buffer * buffer) print_codec_core_info() argument 776 struct hda_codec *codec = entry->private_data; print_codec_info() local 936 snd_hda_codec_proc_new(struct hda_codec * codec) snd_hda_codec_proc_new() argument [all...] |
| H A D | auto_parser.c | 56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument 63 nid_has_volume(codec, nid, HDA_INPUT); in add_auto_cfg_input_pin() 108 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity() argument 111 unsigned int pincap = snd_hda_query_pin_caps(codec, pin); in check_pincap_validity() 129 static bool can_be_headset_mic(struct hda_codec *codec, in can_be_headset_mic() argument 141 def_conf = snd_hda_codec_get_pincfg(codec, item->pin); in can_be_headset_mic() 172 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, in snd_hda_parse_pin_defcfg() argument 184 if (!snd_hda_get_int_hint(codec, "parser_flags", &i)) in snd_hda_parse_pin_defcfg() 194 for_each_hda_codec_node(nid, codec) { in snd_hda_parse_pin_defcfg() 195 unsigned int wid_caps = get_wcaps(codec, nid); in snd_hda_parse_pin_defcfg() [all …]
|
| /linux/sound/hda/codecs/ |
| H A D | ca0132.c | 1135 struct hda_codec *codec; member 1181 #define ca0132_quirk(spec) ((spec)->codec->fixup_id) 1527 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command() argument 1531 response = snd_hda_codec_read(codec, nid, 0, verb, parm); in codec_send_command() 1537 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format() argument 1540 return codec_send_command(codec, nid, VENDOR_CHIPIO_STREAM_FORMAT, in codec_set_converter_format() 1544 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel() argument 1551 return codec_send_command(codec, nid, AC_VERB_SET_CHANNEL_STREAMID, in codec_set_converter_stream_channel() 1556 static int chipio_send(struct hda_codec *codec, in chipio_send() argument 1565 res = snd_hda_codec_read(codec, WIDGET_CHIP_CTRL, 0, in chipio_send() [all …]
|
| H A D | via.c | 95 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec); 97 struct hda_codec *codec, 101 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec() argument 109 codec->spec = spec; in via_new_spec() 111 spec->codec_type = get_codec_type(codec); in via_new_spec() 120 codec->power_save_node = 1; in via_new_spec() 125 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec) in get_codec_type() argument 127 u32 vendor_id = codec->core.vendor_id; in get_codec_type() 143 if (snd_hda_param_read(codec, 0x16, AC_PAR_CONNLIST_LEN) == 0x7) in get_codec_type() 177 static void analog_low_current_mode(struct hda_codec *codec); [all …]
|
| H A D | conexant.c | 3 * HD audio codec driver for Conexant HDA audio codec 74 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep() argument 76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() 79 for_each_hda_codec_node(nid, codec) in cx_auto_parse_beep() 80 if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) in cx_auto_parse_beep() 85 #define cx_auto_parse_beep(codec) 0 argument 93 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd() argument 95 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() 98 for_each_hda_codec_node(nid, codec) { in cx_auto_parse_eapd() 118 cx_auto_turn_eapd(struct hda_codec * codec,int num_pins,const hda_nid_t * pins,bool on) cx_auto_turn_eapd() argument 133 struct hda_codec *codec = private_data; cx_auto_vmaster_hook() local 143 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); cx_auto_vmaster_mute_led() local 152 cxt_init_gpio_led(struct hda_codec * codec) cxt_init_gpio_led() argument 167 cx_fixup_headset_recog(struct hda_codec * codec) cx_fixup_headset_recog() argument 188 cx_init(struct hda_codec * codec) cx_init() argument 204 cx_auto_shutdown(struct hda_codec * codec) cx_auto_shutdown() argument 213 cx_remove(struct hda_codec * codec) cx_remove() argument 219 cx_process_headset_plugin(struct hda_codec * codec) cx_process_headset_plugin() argument 246 cx_update_headset_mic_vref(struct hda_codec * codec,struct hda_jack_callback * event) cx_update_headset_mic_vref() argument 261 cx_suspend(struct hda_codec * codec) cx_suspend() argument 311 cxt_fixup_stereo_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_stereo_dmic() argument 319 cxt_fixup_update_pinctl(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_update_pinctl() argument 331 cxt5066_increase_mic_boost(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt5066_increase_mic_boost() argument 344 cxt_update_headset_mode(struct hda_codec * codec) cxt_update_headset_mode() argument 371 cxt_update_headset_mode_hook(struct hda_codec * codec,struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) cxt_update_headset_mode_hook() argument 378 cxt_fixup_headphone_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_headphone_mic() argument 399 cxt_fixup_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_headset_mic() argument 420 update_mic_pin(codec,nid,val) global() argument 433 olpc_xo_update_mic_boost(struct hda_codec * codec) olpc_xo_update_mic_boost() argument 448 olpc_xo_update_mic_pins(struct hda_codec * codec) olpc_xo_update_mic_pins() argument 503 olpc_xo_automic(struct hda_codec * codec,struct hda_jack_callback * jack) olpc_xo_automic() argument 518 olpc_xo_capture_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) olpc_xo_capture_hook() argument 542 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_mode_get() local 551 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_mode_put() local 567 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_bias_enum_get() local 582 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_bias_enum_put() local 623 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_mic_boost_put() local 631 cxt_fixup_olpc_xo(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_olpc_xo() argument 662 cxt_fixup_mute_led_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_mute_led_eapd() argument 678 cxt_fixup_cap_mix_amp(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_cap_mix_amp() argument 692 cxt_fixup_cap_mix_amp_5047(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_cap_mix_amp_5047() argument 702 cxt_fixup_hp_gate_mic_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_hp_gate_mic_jack() argument 714 cxt_update_gpio_led(struct hda_codec * codec,unsigned int mask,bool led_on) cxt_update_gpio_led() argument 738 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); cxt_gpio_mute_update() local 749 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); cxt_gpio_micmute_update() local 756 cxt_setup_mute_led(struct hda_codec * codec,unsigned int mute,unsigned int mic_mute) cxt_setup_mute_led() argument 773 cxt_setup_gpio_unmute(struct hda_codec * codec,unsigned int gpio_mute_mask) cxt_setup_gpio_unmute() argument 785 cxt_fixup_mute_led_gpio(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_mute_led_gpio() argument 792 cxt_fixup_hp_zbook_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_hp_zbook_mute_led() argument 799 cxt_fixup_hp_a_u(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_hp_a_u() argument 1168 add_cx5051_fake_mutes(struct hda_codec * codec) add_cx5051_fake_mutes() argument 1183 cx_probe(struct hda_codec * codec,const struct hda_device_id * id) cx_probe() argument [all...] |
| H A D | senarytech.c | 91 static int senary_auto_parse_beep(struct hda_codec *codec) in senary_auto_parse_beep() argument 93 struct senary_spec *spec = codec->spec; in senary_auto_parse_beep() 96 for_each_hda_codec_node(nid, codec) in senary_auto_parse_beep() 97 if ((get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) && in senary_auto_parse_beep() 98 (get_wcaps(codec, nid) & (AC_WCAP_OUT_AMP | AC_WCAP_AMP_OVRD))) in senary_auto_parse_beep() 103 #define senary_auto_parse_beep(codec) 0 argument 107 static void senary_auto_parse_eapd(struct hda_codec *codec) in senary_auto_parse_eapd() argument 109 struct senary_spec *spec = codec->spec; in senary_auto_parse_eapd() 112 for_each_hda_codec_node(nid, codec) { in senary_auto_parse_eapd() 113 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in senary_auto_parse_eapd() [all …]
|
| H A D | generic.c | 105 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() argument 107 struct hda_gen_spec *spec = codec->spec; in parse_user_hints() 110 val = snd_hda_get_bool_hint(codec, "jack_detect"); in parse_user_hints() 112 codec->no_jack_detect = !val; in parse_user_hints() 113 val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); in parse_user_hints() 115 codec->inv_jack_detect = !!val; in parse_user_hints() 116 val = snd_hda_get_bool_hint(codec, "trigger_sense"); in parse_user_hints() 118 codec->no_trigger_sense = !val; in parse_user_hints() 119 val = snd_hda_get_bool_hint(codec, "inv_eapd"); in parse_user_hints() 121 codec in parse_user_hints() 205 update_pin_ctl(codec,pin,val) global() argument 210 restore_pin_ctl(struct hda_codec * codec,hda_nid_t pin) restore_pin_ctl() argument 216 set_pin_target(struct hda_codec * codec,hda_nid_t pin,unsigned int val,bool do_write) set_pin_target() argument 228 set_pin_targets(struct hda_codec * codec,int num_pins,hda_nid_t * pins,unsigned int val) set_pin_targets() argument 256 get_nid_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid,int anchor_nid) get_nid_path() argument 287 snd_hda_get_path_idx(struct hda_codec * codec,struct nid_path * path) snd_hda_get_path_idx() argument 308 snd_hda_get_path_from_idx(struct hda_codec * codec,int idx) snd_hda_get_path_from_idx() argument 319 is_dac_already_used(struct hda_codec * codec,hda_nid_t nid) is_dac_already_used() argument 333 is_reachable_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid) is_reachable_path() argument 345 is_ctl_used(struct hda_codec * codec,unsigned int val,int type) is_ctl_used() argument 360 is_ctl_associated(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,int type) is_ctl_associated() argument 367 print_nid_path(struct hda_codec * codec,const char * pfx,struct nid_path * path) print_nid_path() argument 384 __parse_nid_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid,int anchor_nid,struct nid_path * path,int depth) __parse_nid_path() argument 454 snd_hda_parse_nid_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid,int anchor_nid,struct nid_path * path) snd_hda_parse_nid_path() argument 477 snd_hda_add_new_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid,int anchor_nid) snd_hda_add_new_path() argument 504 invalidate_nid_path(struct hda_codec * codec,int idx) invalidate_nid_path() argument 513 get_preferred_dac(struct hda_codec * codec,hda_nid_t pin) get_preferred_dac() argument 527 look_for_dac(struct hda_codec * codec,hda_nid_t pin,bool is_digital) look_for_dac() argument 555 same_amp_caps(struct hda_codec * codec,hda_nid_t nid1,hda_nid_t nid2,int dir) same_amp_caps() argument 565 look_for_out_mute_nid(struct hda_codec * codec,struct nid_path * path) look_for_out_mute_nid() argument 581 look_for_out_vol_nid(struct hda_codec * codec,struct nid_path * path) look_for_out_vol_nid() argument 602 has_amp_in(struct hda_codec * codec,struct nid_path * path,int idx) has_amp_in() argument 616 has_amp_out(struct hda_codec * codec,struct nid_path * path,int idx) has_amp_out() argument 630 is_active_nid(struct hda_codec * codec,hda_nid_t nid,unsigned int dir,unsigned int idx) is_active_nid() argument 665 is_active_nid_for_any(codec,nid) global() argument 669 get_amp_val_to_activate(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int caps,bool enable) get_amp_val_to_activate() argument 687 is_stereo_amps(struct hda_codec * codec,hda_nid_t nid,int dir) is_stereo_amps() argument 704 init_amp(struct hda_codec * codec,hda_nid_t nid,int dir,int idx) init_amp() argument 716 update_amp(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,unsigned int mask,unsigned int val) update_amp() argument 730 get_amp_mask_to_modify(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,unsigned int caps) get_amp_mask_to_modify() argument 748 activate_amp(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,int idx_to_check,bool enable) activate_amp() argument 764 check_and_activate_amp(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,int idx_to_check,bool enable) check_and_activate_amp() argument 774 activate_amp_out(struct hda_codec * codec,struct nid_path * path,int i,bool enable) activate_amp_out() argument 782 activate_amp_in(struct hda_codec * codec,struct nid_path * path,int i,bool enable,bool add_aamix) activate_amp_in() argument 823 path_power_update(struct hda_codec * codec,struct nid_path * path,bool allow_powerdown) path_power_update() argument 862 sync_power_state_change(struct hda_codec * codec,hda_nid_t nid) sync_power_state_change() argument 879 snd_hda_activate_path(struct hda_codec * codec,struct nid_path * path,bool enable,bool add_aamix) snd_hda_activate_path() argument 907 path_power_down_sync(struct hda_codec * codec,struct nid_path * path) path_power_down_sync() argument 917 set_pin_eapd(struct hda_codec * codec,hda_nid_t pin,bool enable) set_pin_eapd() argument 933 resume_path_from_idx(struct hda_codec * codec,int path_idx) resume_path_from_idx() argument 1020 add_vol_ctl(struct hda_codec * codec,const char * pfx,int cidx,unsigned int chs,struct nid_path * path) add_vol_ctl() argument 1034 get_default_ch_nums(struct hda_codec * codec,struct nid_path * path,int type) get_default_ch_nums() argument 1046 add_stereo_vol(struct hda_codec * codec,const char * pfx,int cidx,struct nid_path * path) add_stereo_vol() argument 1056 add_sw_ctl(struct hda_codec * codec,const char * pfx,int cidx,unsigned int chs,struct nid_path * path) add_sw_ctl() argument 1079 add_stereo_sw(struct hda_codec * codec,const char * pfx,int cidx,struct nid_path * path) add_stereo_sw() argument 1090 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); sync_auto_mute_bits() local 1117 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hda_gen_bind_mute_get() local 1132 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hda_gen_bind_mute_put() local 1154 path_has_mixer(struct hda_codec * codec,int path_idx,int ctl_type) path_has_mixer() argument 1165 get_line_out_pfx(struct hda_codec * codec,int ch,int * index,int ctl_type) get_line_out_pfx() argument 1283 assign_out_path_ctls(struct hda_codec * codec,struct nid_path * path) assign_out_path_ctls() argument 1346 get_primary_out(struct hda_codec * codec,int idx) get_primary_out() argument 1360 try_dac(struct hda_codec * codec,hda_nid_t dac,hda_nid_t pin) try_dac() argument 1367 try_assign_dacs(struct hda_codec * codec,int num_outs,const hda_nid_t * pins,hda_nid_t * dacs,int * path_idx,const struct badness_table * bad) try_assign_dacs() argument 1459 get_dac_if_single(struct hda_codec * codec,hda_nid_t pin) get_dac_if_single() argument 1479 can_be_multiio_pin(struct hda_codec * codec,unsigned int location,hda_nid_t nid) can_be_multiio_pin() argument 1496 count_multiio_pins(struct hda_codec * codec,hda_nid_t reference_pin) count_multiio_pins() argument 1525 fill_multi_ios(struct hda_codec * codec,hda_nid_t reference_pin,bool hardwired) fill_multi_ios() argument 1611 map_singles(struct hda_codec * codec,int outs,const hda_nid_t * pins,hda_nid_t * dacs,int * path_idx) map_singles() argument 1647 check_aamix_out_path(struct hda_codec * codec,int path_idx) check_aamix_out_path() argument 1683 indep_hp_possible(struct hda_codec * codec) indep_hp_possible() argument 1722 refill_shared_dacs(struct hda_codec * codec,int num_outs,hda_nid_t * dacs,int * path_idx) refill_shared_dacs() argument 1739 fill_and_eval_dacs(struct hda_codec * codec,bool fill_hardwired,bool fill_mio_first) fill_and_eval_dacs() argument 1902 print_nid_path_idx(struct hda_codec * codec,const char * pfx,int idx) print_nid_path_idx() argument 1912 debug_show_configs(struct hda_codec * codec,struct auto_pin_cfg * cfg) debug_show_configs() argument 1961 debug_show_configs(codec,cfg) global() argument 1965 fill_all_dac_nids(struct hda_codec * codec) fill_all_dac_nids() argument 1983 parse_output_paths(struct hda_codec * codec) parse_output_paths() argument 2101 create_multi_out_ctls(struct hda_codec * codec,const struct auto_pin_cfg * cfg) create_multi_out_ctls() argument 2152 create_extra_out(struct hda_codec * codec,int path_idx,const char * pfx,int cidx) create_extra_out() argument 2171 create_extra_outs(struct hda_codec * codec,int num_pins,const int * paths,const char * pfx) create_extra_outs() argument 2198 create_hp_out_ctls(struct hda_codec * codec) create_hp_out_ctls() argument 2206 create_speaker_out_ctls(struct hda_codec * codec) create_speaker_out_ctls() argument 2229 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); indep_hp_get() local 2242 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); indep_hp_put() local 2293 create_indep_hp_ctls(struct hda_codec * codec) create_indep_hp_ctls() argument 2323 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_info() local 2340 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_get() local 2348 get_multiio_path(struct hda_codec * codec,int idx) get_multiio_path() argument 2365 set_multi_io(struct hda_codec * codec,int idx,bool output) set_multi_io() argument 2398 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_put() local 2425 create_multi_channel_mode(struct hda_codec * codec) create_multi_channel_mode() argument 2445 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); loopback_mixing_get() local 2451 update_aamix_paths(struct hda_codec * codec,bool do_mix,int nomix_path_idx,int mix_path_idx,int out_type) update_aamix_paths() argument 2482 update_output_paths(struct hda_codec * codec,int num_outs,const int * paths) update_output_paths() argument 2500 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); loopback_mixing_put() local 2537 create_loopback_mixing_ctl(struct hda_codec * codec) create_loopback_mixing_ctl() argument 2556 update_hp_mic(struct hda_codec * codec,int adc_mux,bool force) update_hp_mic() argument 2600 create_hp_mic(struct hda_codec * codec) create_hp_mic() argument 2668 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); out_jack_mode_get() local 2680 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); out_jack_mode_put() local 2698 find_kctl_name(struct hda_codec * codec,const char * name,int idx) find_kctl_name() argument 2711 get_jack_mode_name(struct hda_codec * codec,hda_nid_t pin,char * name,size_t name_len) get_jack_mode_name() argument 2724 get_out_jack_num_items(struct hda_codec * codec,hda_nid_t pin) get_out_jack_num_items() argument 2735 create_out_jack_modes(struct hda_codec * codec,int num_pins,hda_nid_t * pins) create_out_jack_modes() argument 2772 get_vref_caps(struct hda_codec * codec,hda_nid_t pin) get_vref_caps() argument 2815 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_info() local 2830 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_get() local 2843 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_put() local 2866 get_in_jack_num_items(struct hda_codec * codec,hda_nid_t pin) get_in_jack_num_items() argument 2875 create_in_jack_mode(struct hda_codec * codec,hda_nid_t pin) create_in_jack_mode() argument 2908 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_info() local 2939 get_cur_hp_mic_jack_mode(struct hda_codec * codec,hda_nid_t nid) get_cur_hp_mic_jack_mode() argument 2963 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_get() local 2973 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_put() local 3012 create_hp_mic_jack_mode(struct hda_codec * codec,hda_nid_t pin) create_hp_mic_jack_mode() argument 3048 look_for_mix_leaf_ctls(struct hda_codec * codec,hda_nid_t mix_nid,hda_nid_t pin,unsigned int * mix_val,unsigned int * mute_val) look_for_mix_leaf_ctls() argument 3084 new_analog_input(struct hda_codec * codec,int input_idx,hda_nid_t pin,const char * ctlname,int ctlidx,hda_nid_t mix_nid) new_analog_input() argument 3140 is_input_pin(struct hda_codec * codec,hda_nid_t nid) is_input_pin() argument 3147 fill_adc_nids(struct hda_codec * codec) fill_adc_nids() argument 3177 check_dyn_adc_switch(struct hda_codec * codec) check_dyn_adc_switch() argument 3245 parse_capture_source(struct hda_codec * codec,hda_nid_t pin,int cfg_idx,int num_adcs,const char * label,int anchor) parse_capture_source() argument 3287 fill_input_pin_labels(struct hda_codec * codec) fill_input_pin_labels() argument 3320 create_input_ctls(struct hda_codec * codec) create_input_ctls() argument 3393 get_input_path(struct hda_codec * codec,int adc_idx,int imux_idx) get_input_path() argument 3415 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_info() local 3423 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_get() local 3435 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_put() local 3461 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cap_put_caller() local 3533 parse_capvol_in_path(struct hda_codec * codec,struct nid_path * path) parse_capvol_in_path() argument 3572 is_inv_dmic_pin(struct hda_codec * codec,hda_nid_t nid) is_inv_dmic_pin() argument 3596 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cap_single_sw_put() local 3610 add_single_cap_ctl(struct hda_codec * codec,const char * label,int idx,bool is_switch,unsigned int ctl,bool inv_dmic) add_single_cap_ctl() argument 3662 create_single_cap_vol_ctl(struct hda_codec * codec,int idx,unsigned int vol_ctl,unsigned int sw_ctl,bool inv_dmic) create_single_cap_vol_ctl() argument 3677 create_bind_cap_vol_ctl(struct hda_codec * codec,int idx,unsigned int vol_ctl,unsigned int sw_ctl) create_bind_cap_vol_ctl() argument 3705 get_first_cap_ctl(struct hda_codec * codec,int idx,int type) get_first_cap_ctl() argument 3726 create_multi_cap_vol_ctl(struct hda_codec * codec) create_multi_cap_vol_ctl() argument 3755 create_capture_mixers(struct hda_codec * codec) create_capture_mixers() argument 3828 check_boost_vol(struct hda_codec * codec,hda_nid_t nid,int dir,int idx) check_boost_vol() argument 3846 look_for_boost_amp(struct hda_codec * codec,struct nid_path * path) look_for_boost_amp() argument 3871 parse_mic_boost(struct hda_codec * codec) parse_mic_boost() argument 3920 create_mute_led_cdev(struct hda_codec * codec,int (* callback)(struct led_classdev *,enum led_brightness),bool micmute) create_mute_led_cdev() argument 3952 snd_hda_gen_add_mute_led_cdev(struct hda_codec * codec,int (* callback)(struct led_classdev *,enum led_brightness)) snd_hda_gen_add_mute_led_cdev() argument 3989 snd_hda_gen_add_micmute_led_cdev(struct hda_codec * codec,int (* callback)(struct led_classdev *,enum led_brightness)) snd_hda_gen_add_micmute_led_cdev() argument 4013 parse_digital(struct hda_codec * codec) parse_digital() argument 4077 mux_select(struct hda_codec * codec,unsigned int adc_idx,unsigned int idx) mux_select() argument 4124 set_path_power(struct hda_codec * codec,hda_nid_t nid,int pin_state,int stream_state) set_path_power() argument 4156 detect_pin_state(struct hda_codec * codec,hda_nid_t pin) detect_pin_state() argument 4169 set_pin_power_jack(struct hda_codec * codec,hda_nid_t pin,int power) set_pin_power_jack() argument 4184 pin_power_callback(struct hda_codec * codec,struct hda_jack_callback * jack,bool on) pin_power_callback() argument 4194 pin_power_up_callback(struct hda_codec * codec,struct hda_jack_callback * jack) pin_power_up_callback() argument 4201 pin_power_down_callback(struct hda_codec * codec,struct hda_jack_callback * jack) pin_power_down_callback() argument 4208 add_pin_power_ctls(struct hda_codec * codec,int num_pins,const hda_nid_t * pins,bool on) add_pin_power_ctls() argument 4226 add_all_pin_power_ctls(struct hda_codec * codec,bool on) add_all_pin_power_ctls() argument 4244 sync_pin_power_ctls(struct hda_codec * codec,int num_pins,const hda_nid_t * pins) sync_pin_power_ctls() argument 4255 sync_all_pin_power_ctls(struct hda_codec * codec) sync_all_pin_power_ctls() argument 4273 add_fake_paths(struct hda_codec * codec,hda_nid_t nid,int num_pins,const hda_nid_t * pins) add_fake_paths() argument 4298 add_fake_beep_paths(struct hda_codec * codec) add_fake_beep_paths() argument 4335 snd_hda_gen_fix_pin_power(struct hda_codec * codec,hda_nid_t pin) snd_hda_gen_fix_pin_power() argument 4358 detect_jacks(struct hda_codec * codec,int num_pins,const hda_nid_t * pins) detect_jacks() argument 4377 do_automute(struct hda_codec * codec,int num_pins,const hda_nid_t * pins,int * paths,bool mute) do_automute() argument 4442 snd_hda_gen_update_outputs(struct hda_codec * codec) snd_hda_gen_update_outputs() argument 4489 call_update_outputs(struct hda_codec * codec) call_update_outputs() argument 4507 snd_hda_gen_hp_automute(struct hda_codec * codec,struct hda_jack_callback * jack) snd_hda_gen_hp_automute() argument 4532 snd_hda_gen_line_automute(struct hda_codec * codec,struct hda_jack_callback * jack) snd_hda_gen_line_automute() argument 4557 snd_hda_gen_mic_autoswitch(struct hda_codec * codec,struct hda_jack_callback * jack) snd_hda_gen_mic_autoswitch() argument 4581 call_hp_automute(struct hda_codec * codec,struct hda_jack_callback * jack) call_hp_automute() argument 4591 call_line_automute(struct hda_codec * codec,struct hda_jack_callback * jack) call_line_automute() argument 4601 call_mic_autoswitch(struct hda_codec * codec,struct hda_jack_callback * jack) call_mic_autoswitch() argument 4612 update_automute_all(struct hda_codec * codec) update_automute_all() argument 4625 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_info() local 4639 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_get() local 4654 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_put() local 4700 add_automute_mode_enum(struct hda_codec * codec) add_automute_mode_enum() argument 4713 check_auto_mute_availability(struct hda_codec * codec) check_auto_mute_availability() argument 4786 auto_mic_check_imux(struct hda_codec * codec) auto_mic_check_imux() argument 4820 check_auto_mic_availability(struct hda_codec * codec) check_auto_mic_availability() argument 4895 snd_hda_gen_path_power_filter(struct hda_codec * codec,hda_nid_t nid,unsigned int power_state) snd_hda_gen_path_power_filter() argument 4914 mute_all_mixer_nid(struct hda_codec * codec,hda_nid_t mix) mute_all_mixer_nid() argument 4940 snd_hda_gen_stream_pm(struct hda_codec * codec,hda_nid_t nid,bool on) snd_hda_gen_stream_pm() argument 4948 force_mute_output_path(struct hda_codec * codec,hda_nid_t nid) force_mute_output_path() argument 4977 snd_hda_gen_shutup_speakers(struct hda_codec * codec) snd_hda_gen_shutup_speakers() argument 5019 snd_hda_gen_parse_auto_config(struct hda_codec * codec,struct auto_pin_cfg * cfg) snd_hda_gen_parse_auto_config() argument 5222 snd_hda_gen_build_controls(struct hda_codec * codec) snd_hda_gen_build_controls() argument 5295 call_pcm_playback_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) call_pcm_playback_hook() argument 5305 call_pcm_capture_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) call_pcm_capture_hook() argument 5318 playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) playback_pcm_open() argument 5338 playback_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) playback_pcm_prepare() argument 5355 playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) playback_pcm_cleanup() argument 5369 playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) playback_pcm_close() argument 5382 capture_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) capture_pcm_open() argument 5390 capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) capture_pcm_prepare() argument 5402 capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) capture_pcm_cleanup() argument 5412 capture_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) capture_pcm_close() argument 5420 alt_playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_playback_pcm_open() argument 5437 alt_playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_playback_pcm_close() argument 5450 alt_playback_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) alt_playback_pcm_prepare() argument 5462 alt_playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_playback_pcm_cleanup() argument 5475 dig_playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dig_playback_pcm_open() argument 5483 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) dig_playback_pcm_prepare() argument 5494 dig_playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dig_playback_pcm_cleanup() argument 5502 dig_playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dig_playback_pcm_close() argument 5516 alt_capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) alt_capture_pcm_prepare() argument 5531 alt_capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_capture_pcm_cleanup() argument 5627 dyn_adc_pcm_resetup(struct hda_codec * codec,int cur) dyn_adc_pcm_resetup() argument 5646 dyn_adc_capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) dyn_adc_capture_pcm_prepare() argument 5661 dyn_adc_capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dyn_adc_capture_pcm_cleanup() argument 5734 snd_hda_gen_build_pcms(struct hda_codec * codec) snd_hda_gen_build_pcms() argument 5848 set_output_and_unmute(struct hda_codec * codec,int path_idx) set_output_and_unmute() argument 5864 init_multi_out(struct hda_codec * codec) init_multi_out() argument 5874 __init_extra_out(struct hda_codec * codec,int num_outs,int * paths) __init_extra_out() argument 5883 init_extra_out(struct hda_codec * codec) init_extra_out() argument 5895 init_multi_io(struct hda_codec * codec) init_multi_io() argument 5914 init_aamix_paths(struct hda_codec * codec) init_aamix_paths() argument 5934 init_analog_input(struct hda_codec * codec) init_analog_input() argument 5954 init_input_src(struct hda_codec * codec) init_input_src() argument 5985 init_digital(struct hda_codec * codec) init_digital() argument 6003 clear_unsol_on_unused_pins(struct hda_codec * codec) clear_unsol_on_unused_pins() argument 6023 snd_hda_gen_init(struct hda_codec * codec) snd_hda_gen_init() argument 6064 snd_hda_gen_remove(struct hda_codec * codec) snd_hda_gen_remove() argument 6080 snd_hda_gen_check_power_status(struct hda_codec * codec,hda_nid_t nid) snd_hda_gen_check_power_status() argument 6092 snd_hda_gen_probe(struct hda_codec * codec,const struct hda_device_id * id) snd_hda_gen_probe() argument [all...] |
| H A D | analog.c | 3 * HD audio codec driver for AD1882, AD1884, AD1981HD, AD1983, AD1984, 61 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() 63 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() 72 kctl = snd_ctl_new1(knew, codec); in create_beep_ctls() 76 err = snd_hda_ctl_add(codec, 0, kctl); in create_beep_ctls() 83 #define create_beep_ctls(codec) 0 86 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write() 89 if (snd_hda_query_pin_caps(codec, front) & AC_PINCAP_EAPD) in ad198x_power_eapd_write() 90 snd_hda_codec_write(codec, front, 0, AC_VERB_SET_EAPD_BTLENABLE, in ad198x_power_eapd_write() 91 !codec in ad198x_power_eapd_write() 59 create_beep_ctls(struct hda_codec * codec) create_beep_ctls() argument 81 create_beep_ctls(codec) global() argument 84 ad198x_power_eapd_write(struct hda_codec * codec,hda_nid_t front,hda_nid_t hp) ad198x_power_eapd_write() argument 95 ad198x_power_eapd(struct hda_codec * codec) ad198x_power_eapd() argument 123 ad_codec_suspend(struct hda_codec * codec) ad_codec_suspend() argument 133 struct hda_codec *codec = private_data; ad_vmaster_eapd_hook() local 149 ad_codec_build_controls(struct hda_codec * codec) ad_codec_build_controls() argument 162 ad198x_parse_auto_config(struct hda_codec * codec,bool indep_hp) ad198x_parse_auto_config() argument 190 alloc_ad_spec(struct hda_codec * codec) alloc_ad_spec() argument 207 ad_fixup_inv_jack_detect(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad_fixup_inv_jack_detect() argument 221 ad1986a_fixup_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1986a_fixup_eapd() argument 234 ad1986a_fixup_eapd_mix_in(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1986a_fixup_eapd_mix_in() argument 375 ad1986a_probe(struct hda_codec * codec) ad1986a_probe() argument 432 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_info() local 449 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_get() local 459 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_put() local 483 ad1983_add_spdif_mux_ctl(struct hda_codec * codec) ad1983_add_spdif_mux_ctl() argument 500 ad1983_probe(struct hda_codec * codec) ad1983_probe() argument 529 ad1981_fixup_hp_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1981_fixup_hp_eapd() argument 543 ad1981_fixup_amp_override(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1981_fixup_amp_override() argument 581 ad1981_probe(struct hda_codec * codec) ad1981_probe() argument 694 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_info() local 709 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_get() local 719 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_put() local 750 ad_codec_init(struct hda_codec * codec) ad_codec_init() argument 773 ad1988_add_spdif_mux_ctl(struct hda_codec * codec) ad1988_add_spdif_mux_ctl() argument 863 ad1988_probe(struct hda_codec * codec) ad1988_probe() argument 918 ad1884_fixup_amp_override(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1884_fixup_amp_override() argument 932 struct hda_codec *codec = private_data; ad1884_vmaster_hp_gpio_hook() local 942 ad1884_fixup_hp_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1884_fixup_hp_eapd() argument 967 ad1884_fixup_thinkpad(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1884_fixup_thinkpad() argument 1034 ad1884_probe(struct hda_codec * codec) ad1884_probe() argument 1071 ad1882_probe(struct hda_codec * codec) ad1882_probe() argument 1092 ad_codec_probe(struct hda_codec * codec,const struct hda_device_id * id) ad_codec_probe() argument [all...] |
| H A D | cm9825.c | 50 struct hda_codec *codec; member 196 static void cm9825_update_jk_plug_status(struct hda_codec *codec, hda_nid_t nid) in cm9825_update_jk_plug_status() argument 198 struct cmi_spec *spec = codec->spec; in cm9825_update_jk_plug_status() 202 jack_plugin = snd_hda_jack_detect(spec->codec, nid); in cm9825_update_jk_plug_status() 203 jack = snd_hda_jack_tbl_get(spec->codec, nid); in cm9825_update_jk_plug_status() 206 snd_hda_jack_report_sync(spec->codec); in cm9825_update_jk_plug_status() 209 codec_dbg(spec->codec, in cm9825_update_jk_plug_status() 225 cm9825_update_jk_plug_status(spec->codec, in cm9825_unsol_inputs_delayed() 236 cm9825_update_jk_plug_status(spec->codec, in cm9825_unsol_lineout_delayed() 249 hp_jack_plugin = snd_hda_jack_detect(spec->codec, hp_pin); in cm9825_unsol_hp_delayed() [all …]
|
| H A D | sigmatel.c | 5 * HD audio codec driver for SigmaTel STAC92xx 242 struct hda_codec *codec, in stac_playback_pcm_hook() argument 246 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() 252 struct hda_codec *codec, in stac_capture_pcm_hook() argument 256 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() 272 snd_hda_codec_write(codec, hinfo->nid, 0, in stac_capture_pcm_hook() 277 snd_hda_codec_write(codec, hinfo->nid, 0, in stac_capture_pcm_hook() 289 static void stac_gpio_set(struct hda_codec *codec, unsigned int mask, in stac_gpio_set() argument 293 hda_nid_t fg = codec->core.afg; in stac_gpio_set() 295 codec_dbg(codec, " in stac_gpio_set() 327 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); stac_capture_led_update() local 338 stac_vrefout_set(struct hda_codec * codec,hda_nid_t nid,unsigned int new_vref) stac_vrefout_set() argument 363 stac_vref_led_power_filter(struct hda_codec * codec,hda_nid_t nid,unsigned int power_state) stac_vref_led_power_filter() argument 373 stac_update_led_status(struct hda_codec * codec,bool muted) stac_update_led_status() argument 402 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); stac_vmaster_hook() local 409 stac_update_outputs(struct hda_codec * codec) stac_update_outputs() argument 434 stac_toggle_power_map(struct hda_codec * codec,hda_nid_t nid,bool enable,bool do_write) stac_toggle_power_map() argument 465 jack_update_power(struct hda_codec * codec,struct hda_jack_callback * jack) jack_update_power() argument 496 stac_vref_event(struct hda_codec * codec,struct hda_jack_callback * event) stac_vref_event() argument 511 stac_init_power_map(struct hda_codec * codec) stac_init_power_map() argument 537 get_int_hint(struct hda_codec * codec,const char * key,int * valp) get_int_hint() argument 544 stac_store_hints(struct hda_codec * codec) stac_store_hints() argument 575 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); stac_aloopback_get() local 587 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); stac_aloopback_put() local 640 hp_bnb2011_with_dock(struct hda_codec * codec) hp_bnb2011_with_dock() argument 710 set_hp_led_gpio(struct hda_codec * codec) set_hp_led_gpio() argument 746 find_mute_led_cfg(struct hda_codec * codec,int default_polarity) find_mute_led_cfg() argument 802 has_builtin_speaker(struct hda_codec * codec) has_builtin_speaker() argument 829 stac_auto_create_beep_ctls(struct hda_codec * codec,hda_nid_t nid) stac_auto_create_beep_ctls() argument 876 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); stac_dig_beep_switch_get() local 884 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); stac_dig_beep_switch_put() local 896 stac_beep_switch_ctl(struct hda_codec * codec) stac_beep_switch_ctl() argument 913 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); stac_smux_enum_info() local 921 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); stac_smux_enum_get() local 932 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); stac_smux_enum_put() local 954 stac_create_spdif_mux_ctls(struct hda_codec * codec) stac_create_spdif_mux_ctls() argument 1354 stac9200_fixup_panasonic(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac9200_fixup_panasonic() argument 1790 stac92hd73xx_fixup_ref(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd73xx_fixup_ref() argument 1802 stac92hd73xx_fixup_dell(struct hda_codec * codec) stac92hd73xx_fixup_dell() argument 1810 stac92hd73xx_fixup_dell_eq(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd73xx_fixup_dell_eq() argument 1824 stac92hd73xx_fixup_dell_m6_amic(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd73xx_fixup_dell_m6_amic() argument 1835 stac92hd73xx_fixup_dell_m6_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd73xx_fixup_dell_m6_dmic() argument 1846 stac92hd73xx_fixup_dell_m6_both(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd73xx_fixup_dell_m6_both() argument 1857 stac92hd73xx_fixup_alienware_m17x(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd73xx_fixup_alienware_m17x() argument 1869 stac92hd73xx_fixup_no_jd(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd73xx_fixup_no_jd() argument 1877 stac92hd73xx_disable_automute(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd73xx_disable_automute() argument 2100 stac92hd83xxx_fixup_hp(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd83xxx_fixup_hp() argument 2122 stac92hd83xxx_fixup_hp_zephyr(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd83xxx_fixup_hp_zephyr() argument 2132 stac92hd83xxx_fixup_hp_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd83xxx_fixup_hp_led() argument 2141 stac92hd83xxx_fixup_hp_inv_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd83xxx_fixup_hp_inv_led() argument 2150 stac92hd83xxx_fixup_hp_mic_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd83xxx_fixup_hp_mic_led() argument 2162 stac92hd83xxx_fixup_hp_led_gpio10(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd83xxx_fixup_hp_led_gpio10() argument 2173 stac92hd83xxx_fixup_headset_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd83xxx_fixup_headset_jack() argument 2182 stac92hd83xxx_fixup_gpio10_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd83xxx_fixup_gpio10_eapd() argument 2195 hp_envy_ts_fixup_dac_bind(struct hda_codec * codec,const struct hda_fixup * fix,int action) hp_envy_ts_fixup_dac_bind() argument 2954 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); stac_hp_bass_gpio_get() local 2963 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); stac_hp_bass_gpio_put() local 2983 stac_add_hp_bass_switch(struct hda_codec * codec) stac_add_hp_bass_switch() argument 3057 stac92hd71bxx_fixup_ref(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd71bxx_fixup_ref() argument 3069 stac92hd71bxx_fixup_hp_m4(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd71bxx_fixup_hp_m4() argument 3092 stac92hd71bxx_fixup_hp_dv4(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd71bxx_fixup_hp_dv4() argument 3102 stac92hd71bxx_fixup_hp_dv5(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd71bxx_fixup_hp_dv5() argument 3122 stac92hd71bxx_fixup_hp_hdx(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd71bxx_fixup_hp_hdx() argument 3132 is_hp_output(struct hda_codec * codec,hda_nid_t pin) is_hp_output() argument 3142 fixup_hp_headphone(struct hda_codec * codec,hda_nid_t pin) fixup_hp_headphone() argument 3156 stac92hd71bxx_fixup_hp(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd71bxx_fixup_hp() argument 3519 stac922x_fixup_intel_mac_auto(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac922x_fixup_intel_mac_auto() argument 3533 stac922x_fixup_intel_mac_gpio(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac922x_fixup_intel_mac_gpio() argument 3825 stac927x_fixup_ref_no_jd(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac927x_fixup_ref_no_jd() argument 3833 stac927x_fixup_ref(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac927x_fixup_ref() argument 3845 stac927x_fixup_dell_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac927x_fixup_dell_dmic() argument 3863 stac927x_fixup_volknob(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac927x_fixup_volknob() argument 4099 stac9205_fixup_ref(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac9205_fixup_ref() argument 4111 stac9205_fixup_dell_m43(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac9205_fixup_dell_m43() argument 4139 stac9205_fixup_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac9205_fixup_eapd() argument 4228 stac92hd95_fixup_hp_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) stac92hd95_fixup_hp_led() argument 4270 stac_parse_auto_config(struct hda_codec * codec) stac_parse_auto_config() argument 4356 stac_init(struct hda_codec * codec) stac_init() argument 4396 stac92hd_proc_hook(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) stac92hd_proc_hook() argument 4405 analog_loop_proc_hook(struct snd_info_buffer * buffer,struct hda_codec * codec,unsigned int verb) analog_loop_proc_hook() argument 4414 stac92hd7x_proc_hook(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) stac92hd7x_proc_hook() argument 4422 stac9205_proc_hook(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) stac9205_proc_hook() argument 4429 stac927x_proc_hook(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) stac927x_proc_hook() argument 4441 stac_suspend(struct hda_codec * codec) stac_suspend() argument 4455 alloc_stac_spec(struct hda_codec * codec) alloc_stac_spec() argument 4469 probe_stac9200(struct hda_codec * codec) probe_stac9200() argument 4495 probe_stac925x(struct hda_codec * codec) probe_stac925x() argument 4519 probe_stac92hd73xx(struct hda_codec * codec) probe_stac92hd73xx() argument 4595 stac_setup_gpio(struct hda_codec * codec) stac_setup_gpio() argument 4619 probe_stac92hd83xxx(struct hda_codec * codec) probe_stac92hd83xxx() argument 4662 probe_stac92hd95(struct hda_codec * codec) probe_stac92hd95() argument 4698 probe_stac92hd71bxx(struct hda_codec * codec) probe_stac92hd71bxx() argument 4776 probe_stac922x(struct hda_codec * codec) probe_stac922x() argument 4812 probe_stac927x(struct hda_codec * codec) probe_stac927x() argument 4864 probe_stac9205(struct hda_codec * codec) probe_stac9205() argument 4945 probe_stac9872(struct hda_codec * codec) probe_stac9872() argument 4986 stac_probe(struct hda_codec * codec,const struct hda_device_id * id) stac_probe() argument [all...] |
| H A D | si3054.c | 64 #define GET_REG(codec,reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) argument 65 #define SET_REG(codec,reg,val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) argument 66 #define SET_REG_CACHE(codec,reg,val) \ argument 67 snd_hda_codec_write_cache(codec,reg,0,SI3054_VERB_WRITE_NODE,val) 88 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_get() local 91 uvalue->value.integer.value[0] = (GET_REG(codec, reg)) & mask ? 1 : 0 ; in si3054_switch_get() 98 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_put() local 102 SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) | mask); in si3054_switch_put() 104 SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) & ~mask); in si3054_switch_put() 125 static int si3054_build_controls(struct hda_codec *codec) in si3054_build_controls() argument [all …]
|
| /linux/sound/hda/codecs/hdmi/ |
| H A D | intelhdmi.c | 3 * Intel HDMI codec support 36 static void intel_haswell_enable_all_pins(struct hda_codec *codec, in intel_haswell_enable_all_pins() argument 40 struct hdmi_spec *spec = codec->spec; in intel_haswell_enable_all_pins() 42 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 48 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 54 snd_hda_codec_update_widgets(codec); in intel_haswell_enable_all_pins() 57 static void intel_haswell_fixup_enable_dp12(struct hda_codec *codec) in intel_haswell_fixup_enable_dp12() argument 60 struct hdmi_spec *spec = codec->spec; in intel_haswell_fixup_enable_dp12() 62 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_fixup_enable_dp12() 69 snd_hdac_regmap_add_vendor_verb(&codec in intel_haswell_fixup_enable_dp12() 77 haswell_set_power_state(struct hda_codec * codec,hda_nid_t fg,unsigned int power_state) haswell_set_power_state() argument 103 intel_base_nid(struct hda_codec * codec) intel_base_nid() argument 117 struct hda_codec *codec = audio_ptr; intel_pin2port() local 141 intel_port2pin(struct hda_codec * codec,int port) intel_port2pin() argument 159 struct hda_codec *codec = audio_ptr; intel_pin_eld_notify() local 182 register_i915_notifier(struct hda_codec * codec) register_i915_notifier() argument 200 silent_stream_enable_i915(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin) silent_stream_enable_i915() argument 220 silent_stream_set_kae(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin,bool enable) silent_stream_set_kae() argument 239 i915_set_silent_stream(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin,bool enable) i915_set_silent_stream() argument 268 haswell_verify_D0(struct hda_codec * codec,hda_nid_t cvt_nid,hda_nid_t nid) haswell_verify_D0() argument 291 intel_verify_pin_cvt_connect(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin) intel_verify_pin_cvt_connect() argument 329 intel_not_share_assigned_cvt(struct hda_codec * codec,hda_nid_t pin_nid,int dev_id,int mux_idx) intel_not_share_assigned_cvt() argument 405 intel_not_share_assigned_cvt_nid(struct hda_codec * codec,hda_nid_t pin_nid,int dev_id,hda_nid_t cvt_nid) intel_not_share_assigned_cvt_nid() argument 422 i915_hsw_setup_stream(struct hda_codec * codec,hda_nid_t cvt_nid,hda_nid_t pin_nid,int dev_id,u32 stream_tag,int format) i915_hsw_setup_stream() argument 456 i915_pin_cvt_fixup(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin,hda_nid_t cvt_nid) i915_pin_cvt_fixup() argument 472 i915_hdmi_suspend(struct hda_codec * codec) i915_hdmi_suspend() argument 513 i915_hdmi_resume(struct hda_codec * codec) i915_hdmi_resume() argument 557 alloc_intel_hdmi(struct hda_codec * codec) alloc_intel_hdmi() argument 571 parse_intel_hdmi(struct hda_codec * codec) parse_intel_hdmi() argument 588 intel_hsw_common_init(struct hda_codec * codec,hda_nid_t vendor_nid,const int * port_map,int port_num,int dev_num,bool send_silent_stream) intel_hsw_common_init() argument 624 probe_i915_hsw_hdmi(struct hda_codec * codec) probe_i915_hsw_hdmi() argument 630 probe_i915_glk_hdmi(struct hda_codec * codec) probe_i915_glk_hdmi() argument 640 probe_i915_icl_hdmi(struct hda_codec * codec) probe_i915_icl_hdmi() argument 652 probe_i915_tgl_hdmi(struct hda_codec * codec) probe_i915_tgl_hdmi() argument 664 probe_i915_adlp_hdmi(struct hda_codec * codec) probe_i915_adlp_hdmi() argument 681 probe_i915_byt_hdmi(struct hda_codec * codec) probe_i915_byt_hdmi() argument 701 probe_i915_cpt_hdmi(struct hda_codec * codec) probe_i915_cpt_hdmi() argument 709 intelhdmi_probe(struct hda_codec * codec,const struct hda_device_id * id) intelhdmi_probe() argument [all...] |
| H A D | hdmi.c | 50 int snd_hda_hdmi_pin_id_to_pin_index(struct hda_codec *codec, in snd_hda_hdmi_pin_id_to_pin_index() argument 53 struct hdmi_spec *spec = codec->spec; in snd_hda_hdmi_pin_id_to_pin_index() 71 codec_warn(codec, "HDMI: pin NID 0x%x not registered\n", pin_nid); in snd_hda_hdmi_pin_id_to_pin_index() 76 static int hinfo_to_pcm_index(struct hda_codec *codec, in hinfo_to_pcm_index() argument 79 struct hdmi_spec *spec = codec->spec; in hinfo_to_pcm_index() 86 codec_warn(codec, "HDMI: hinfo %p not tied to a PCM\n", hinfo); in hinfo_to_pcm_index() 90 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index() argument 93 struct hdmi_spec *spec = codec->spec; in hinfo_to_pin_index() 104 codec_dbg(codec, "HDMI: hinfo %p (pcm %d) not registered\n", hinfo, in hinfo_to_pin_index() 105 hinfo_to_pcm_index(codec, hinfo)); in hinfo_to_pin_index() [all …]
|
| H A D | nvhdmi-mcp.c | 50 static int nvhdmi_mcp_init(struct hda_codec *codec) in nvhdmi_mcp_init() argument 52 struct hdmi_spec *spec = codec->spec; in nvhdmi_mcp_init() 55 snd_hda_sequence_write(codec, nvhdmi_basic_init_7x_2ch); in nvhdmi_mcp_init() 57 snd_hda_sequence_write(codec, nvhdmi_basic_init_7x_8ch); in nvhdmi_mcp_init() 61 static void nvhdmi_8ch_7x_set_info_frame_parameters(struct hda_codec *codec, in nvhdmi_8ch_7x_set_info_frame_parameters() argument 87 snd_hda_codec_write(codec, 0x1, 0, in nvhdmi_8ch_7x_set_info_frame_parameters() 90 snd_hda_codec_write(codec, 0x1, 0, in nvhdmi_8ch_7x_set_info_frame_parameters() 96 struct hda_codec *codec, in nvhdmi_8ch_7x_pcm_close() argument 99 struct hdmi_spec *spec = codec->spec; in nvhdmi_8ch_7x_pcm_close() 102 snd_hda_codec_write(codec, nvhdmi_master_con_nid_7x, in nvhdmi_8ch_7x_pcm_close() [all …]
|
| /linux/drivers/media/pci/zoran/ |
| H A D | videocodec.c | 20 struct videocodec *codec; member 25 const struct videocodec *codec; member 42 struct videocodec *codec; in videocodec_attach() local 63 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach() 64 zrdev_dbg(zr, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach() 66 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); in videocodec_attach() 67 if (!codec) in videocodec_attach() 70 res = strlen(codec->name); in videocodec_attach() 71 snprintf(codec->name + res, sizeof(codec->name) - res, "[%d]", h->attached); in videocodec_attach() 72 codec->master_data = master; in videocodec_attach() [all …]
|
| /linux/sound/hda/codecs/cirrus/ |
| H A D | cs8409.c | 3 * HD audio codec driver for Cirrus Logic CS8409 HDA bridge chip 27 static int cs8409_parse_auto_config(struct hda_codec *codec) in cs8409_parse_auto_config() argument 29 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() 33 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config() 37 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config() 50 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config() 60 static struct cs8409_spec *cs8409_alloc_spec(struct hda_codec *codec) in cs8409_alloc_spec() argument 67 codec->spec = spec; in cs8409_alloc_spec() 68 spec->codec = codec; in cs8409_alloc_spec() 77 cs8409_vendor_coef_get(struct hda_codec * codec,unsigned int idx) cs8409_vendor_coef_get() argument 83 cs8409_vendor_coef_set(struct hda_codec * codec,unsigned int idx,unsigned int coef) cs8409_vendor_coef_set() argument 96 cs8409_disable_i2c_clock(struct hda_codec * codec) cs8409_disable_i2c_clock() argument 124 cs8409_enable_i2c_clock(struct hda_codec * codec) cs8409_enable_i2c_clock() argument 150 cs8409_i2c_wait_complete(struct hda_codec * codec) cs8409_i2c_wait_complete() argument 163 cs8409_set_i2c_dev_addr(struct hda_codec * codec,unsigned int addr) cs8409_set_i2c_dev_addr() argument 182 struct hda_codec *codec = scodec->codec; cs8409_i2c_set_page() local 203 struct hda_codec *codec = scodec->codec; cs8409_i2c_read() local 243 struct hda_codec *codec = scodec->codec; cs8409_i2c_bulk_read() local 285 struct hda_codec *codec = scodec->codec; cs8409_i2c_write() local 324 struct hda_codec *codec = scodec->codec; cs8409_i2c_bulk_write() local 359 cs8409_init(struct hda_codec * codec) cs8409_init() argument 369 cs8409_build_controls(struct hda_codec * codec) cs8409_build_controls() argument 382 cs8409_enable_ur(struct hda_codec * codec,int flag) cs8409_enable_ur() argument 398 cs8409_fix_caps(struct hda_codec * codec,unsigned int nid) cs8409_fix_caps() argument 423 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs8409_spk_sw_gpio_get() local 433 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs8409_spk_sw_gpio_put() local 484 struct hda_codec *codec = snd_kcontrol_chip(kctrl); cs42l42_volume_get() local 543 struct hda_codec *codec = snd_kcontrol_chip(kctrl); cs42l42_volume_put() local 575 cs42l42_playback_pcm_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) cs42l42_playback_pcm_hook() argument 604 cs42l42_capture_pcm_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) cs42l42_capture_pcm_hook() argument 869 struct hda_codec *codec = cs42l42->codec; cs42l42_resume() local 913 struct hda_codec *codec = cs42l42->codec; cs42l42_suspend() local 950 cs8409_remove(struct hda_codec * codec) cs8409_remove() argument 973 cs8409_cs42l42_jack_unsol_event(struct hda_codec * codec,unsigned int res) cs8409_cs42l42_jack_unsol_event() argument 1003 cs8409_unsol_event(struct hda_codec * codec,unsigned int res) cs8409_unsol_event() argument 1014 cs8409_cs42l42_suspend(struct hda_codec * codec) cs8409_cs42l42_suspend() argument 1038 cs8409_cs42l42_hw_init(struct hda_codec * codec) cs8409_cs42l42_hw_init() argument 1085 struct hda_codec *codec = container_of(dev, struct hda_codec, core); cs8409_cs42l42_exec_verb() local 1117 cs8409_cs42l42_fixups(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs8409_cs42l42_fixups() argument 1226 struct hda_codec *codec = dev_to_hda_codec(dev); cs8409_comp_bind() local 1234 struct hda_codec *codec = dev_to_hda_codec(dev); cs8409_comp_unbind() local 1245 cs8409_comp_playback_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * sub,int action) cs8409_comp_playback_hook() argument 1253 cs8409_cdb35l56_four_hw_init(struct hda_codec * codec) cs8409_cdb35l56_four_hw_init() argument 1264 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs8409_spk_sw_get() local 1275 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs8409_spk_sw_put() local 1294 cs8409_cdb35l56_four_autodet_fixup(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs8409_cdb35l56_four_autodet_fixup() argument 1402 dolphin_jack_unsol_event(struct hda_codec * codec,unsigned int res) dolphin_jack_unsol_event() argument 1438 dolphin_hw_init(struct hda_codec * codec) dolphin_hw_init() argument 1469 struct hda_codec *codec = container_of(dev, struct hda_codec, core); dolphin_exec_verb() local 1504 dolphin_fixups(struct hda_codec * codec,const struct hda_fixup * fix,int action) dolphin_fixups() argument 1597 cs8409_probe(struct hda_codec * codec,const struct hda_device_id * id) cs8409_probe() argument [all...] |
| H A D | cs420x.c | 3 * Cirrus Logic CS420x HD-audio codec 94 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get() argument 96 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() 98 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 100 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 104 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set() argument 107 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() 109 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 111 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 121 static void cs_automute(struct hda_codec *codec) in cs_automute() argument 139 is_active_pin(struct hda_codec * codec,hda_nid_t nid) is_active_pin() argument 147 init_input_coef(struct hda_codec * codec) init_input_coef() argument 239 init_digital_coef(struct hda_codec * codec) init_digital_coef() argument 253 cs_init(struct hda_codec * codec) cs_init() argument 284 cs_build_controls(struct hda_codec * codec) cs_build_controls() argument 295 cs_parse_auto_config(struct hda_codec * codec) cs_parse_auto_config() argument 445 cs420x_fixup_gpio_13(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs420x_fixup_gpio_13() argument 458 cs420x_fixup_gpio_23(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs420x_fixup_gpio_23() argument 523 cs_alloc_spec(struct hda_codec * codec,int vendor_nid) cs_alloc_spec() argument 538 cs420x_probe(struct hda_codec * codec) cs420x_probe() argument 593 cs4208_fixup_gpio0(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs4208_fixup_gpio0() argument 609 cs4208_fixup_mac(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs4208_fixup_mac() argument 623 cs4208_fixup_macmini(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs4208_fixup_macmini() argument 643 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs4208_spdif_sw_put() local 653 cs4208_fixup_spdif_switch(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs4208_fixup_spdif_switch() argument 700 cs4208_fix_amp_caps(struct hda_codec * codec,hda_nid_t adc) cs4208_fix_amp_caps() argument 710 cs4208_probe(struct hda_codec * codec) cs4208_probe() argument 737 cs_codec_probe(struct hda_codec * codec,const struct hda_device_id * id) cs_codec_probe() argument [all...] |
| H A D | cs421x.c | 3 * Cirrus Logic CS421x HD-audio codec 105 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get() argument 107 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() 109 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 111 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 115 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set() argument 118 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() 120 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 122 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 132 static void cs_automute(struct hda_codec *codec) in cs_automute() argument 153 is_active_pin(struct hda_codec * codec,hda_nid_t nid) is_active_pin() argument 161 cs_alloc_spec(struct hda_codec * codec,int vendor_nid) cs_alloc_spec() argument 221 cs421x_fixup_sense_b(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs421x_fixup_sense_b() argument 321 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs421x_boost_vol_get() local 331 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs421x_boost_vol_put() local 360 cs4210_pinmux_init(struct hda_codec * codec) cs4210_pinmux_init() argument 393 cs4210_spdif_automute(struct hda_codec * codec,struct hda_jack_callback * tbl) cs4210_spdif_automute() argument 416 parse_cs421x_digital(struct hda_codec * codec) parse_cs421x_digital() argument 433 cs421x_init(struct hda_codec * codec) cs421x_init() argument 459 fix_volume_caps(struct hda_codec * codec,hda_nid_t dac) fix_volume_caps() argument 471 cs421x_parse_auto_config(struct hda_codec * codec) cs421x_parse_auto_config() argument 503 cs421x_suspend(struct hda_codec * codec) cs421x_suspend() argument 524 cs421x_probe(struct hda_codec * codec,const struct hda_device_id * id) cs421x_probe() argument [all...] |
| /linux/sound/hda/core/ |
| H A D | sysfs.c | 24 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 25 return sysfs_emit(buf, "0x%x\n", codec->type); \ 34 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 36 codec->type ? codec->type : ""); \ 89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid, 91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid, 114 struct hdac_device *codec; in widget_attr_show() local 119 nid = get_codec_nid(kobj, &codec); in widget_attr_show() 122 return wid_attr->show(codec, nid, wid_attr, buf); in widget_attr_show() 130 struct hdac_device *codec; in widget_attr_store() local [all …]
|