Home
last modified time | relevance | path

Searched refs:codec (Results 1 – 25 of 1293) sorted by relevance

12345678910>>...52

/linux/sound/hda/codecs/realtek/
H A Drealtek.c10 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, nid, 0, AC_VERB_SET_PROC_COEF, coef_val); in __alc_write_coefex_idx()
35 void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx() argument
[all …]
H A Drealtek.h108 void (*init_hook)(struct hda_codec *codec);
109 void (*power_hook)(struct hda_codec *codec);
110 void (*shutup)(struct hda_codec *codec);
135 int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
137 void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
139 void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
142 #define alc_read_coef_idx(codec, coef_idx) \ argument
143 alc_read_coefex_idx(codec, 0x20, coef_idx)
144 #define alc_write_coef_idx(codec, coef_idx, coef_val) \ argument
145 alc_write_coefex_idx(codec, 0x20, coef_idx, coef_val)
[all …]
H A Dalc269.c50 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
1023 alc233_starfighter_update_amp(struct hda_codec * codec,bool on) alc233_starfighter_update_amp() argument
1032 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
1046 alc233_fixup_starlabs_starfighter(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_starlabs_starfighter() argument
1064 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
1073 alc269_fixup_pincfg_U7x7_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_pincfg_U7x7_headset_mic() argument
1086 alc269_fixup_hweq(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hweq() argument
1093 alc271_fixup_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc271_fixup_dmic() argument
1112 alc269vb_fixup_aspire_e1_coef(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269vb_fixup_aspire_e1_coef() argument
1120 alc269_fixup_pcm_44k(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_pcm_44k() argument
1135 alc269_fixup_stereo_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_stereo_dmic() argument
1147 alc269_quanta_automute(struct hda_codec * codec) alc269_quanta_automute() argument
1155 alc269_fixup_quanta_mute(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_quanta_mute() argument
1164 alc269_x101_hp_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc269_x101_hp_automute_hook() argument
1189 alc298_huawei_mbx_stereo_seq(struct hda_codec * codec,const struct hda_alc298_mbxinit * initval,bool first) alc298_huawei_mbx_stereo_seq() argument
1210 alc298_fixup_huawei_mbx_stereo(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_huawei_mbx_stereo() argument
1247 alc269_fixup_x101_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_x101_headset_mic() argument
1257 alc_update_vref_led(struct hda_codec * codec,hda_nid_t pin,bool polarity,bool on) alc_update_vref_led() argument
1278 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); vref_mute_led_set() local
1287 led_power_filter(struct hda_codec * codec,hda_nid_t nid,unsigned int power_state) led_power_filter() argument
1304 alc269_fixup_hp_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_mute_led() argument
1330 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
1344 alc269_fixup_hp_mute_led_mic1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_mute_led_mic1() argument
1350 alc269_fixup_hp_mute_led_mic2(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_mute_led_mic2() argument
1356 alc269_fixup_hp_mute_led_mic3(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_mute_led_mic3() argument
1362 alc236_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_gpio_led() argument
1368 alc269_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_gpio_led() argument
1374 alc285_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_gpio_led() argument
1380 alc286_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc286_fixup_hp_gpio_led() argument
1386 alc287_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_hp_gpio_led() argument
1392 alc245_fixup_hp_gpio_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_gpio_led() argument
1406 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); vref_micmute_led_set() local
1414 alc269_fixup_hp_gpio_mic1_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_gpio_mic1_led() argument
1432 alc280_fixup_hp_gpio4(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc280_fixup_hp_gpio4() argument
1448 alc245_fixup_hp_x360_amp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_x360_amp() argument
1469 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
1483 alc274_fixup_hp_envy_gpio(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc274_fixup_hp_envy_gpio() argument
1496 alc_update_coef_led(struct hda_codec * codec,struct alc_coef_led * led,bool polarity,bool on) alc_update_coef_led() argument
1511 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); coef_mute_led_set() local
1519 alc285_fixup_hp_mute_led_coefbit(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_mute_led_coefbit() argument
1535 alc236_fixup_hp_mute_led_coefbit(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_mute_led_coefbit() argument
1551 alc236_fixup_hp_mute_led_coefbit2(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_mute_led_coefbit2() argument
1566 alc245_fixup_hp_mute_led_coefbit(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_mute_led_coefbit() argument
1582 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
1598 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
1618 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); coef_micmute_led_set() local
1626 alc285_fixup_hp_coef_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_coef_micmute_led() argument
1640 alc285_fixup_hp_gpio_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_gpio_micmute_led() argument
1650 alc236_fixup_hp_coef_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_coef_micmute_led() argument
1664 alc295_fixup_hp_mute_led_coefbit11(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_hp_mute_led_coefbit11() argument
1679 alc233_fixup_lenovo_coef_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_lenovo_coef_micmute_led() argument
1693 alc285_fixup_hp_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_mute_led() argument
1700 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
1707 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
1714 alc236_fixup_hp_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_mute_led() argument
1721 alc236_fixup_hp_micmute_led_vref(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc236_fixup_hp_micmute_led_vref() argument
1733 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
1740 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
1752 alc298_samsung_write_coef_pack(struct hda_codec * codec,const unsigned short coefs[2]) alc298_samsung_write_coef_pack() argument
1765 alc298_fixup_samsung_amp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_samsung_amp() argument
1834 alc298_samsung_v2_enable_amps(struct hda_codec * codec) alc298_samsung_v2_enable_amps() argument
1851 alc298_samsung_v2_disable_amps(struct hda_codec * codec) alc298_samsung_v2_disable_amps() argument
1869 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
1880 alc298_samsung_v2_init_amps(struct hda_codec * codec,int num_speaker_amps) alc298_samsung_v2_init_amps() argument
1915 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
1927 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
2004 alc298_lg_gram_style_enable_amps(struct hda_codec * codec) alc298_lg_gram_style_enable_amps() argument
2017 alc298_lg_gram_style_disable_amps(struct hda_codec * codec) alc298_lg_gram_style_disable_amps() argument
2031 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
2041 alc298_lg_gram_style_init_amps(struct hda_codec * codec) alc298_lg_gram_style_init_amps() argument
2065 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
2072 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
2079 alc298_fixup_lg_gram_style_14(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_lg_gram_style_14() argument
2086 gpio2_mic_hotkey_event(struct hda_codec * codec,struct hda_jack_callback * event) gpio2_mic_hotkey_event() argument
2099 alc_register_micmute_input_device(struct hda_codec * codec) alc_register_micmute_input_device() argument
2135 alc280_fixup_hp_gpio2_mic_hotkey(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc280_fixup_hp_gpio2_mic_hotkey() argument
2169 alc233_fixup_lenovo_gpio2_mic_hotkey(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_lenovo_gpio2_mic_hotkey() argument
2202 alc233_fixup_lenovo_line2_mic_hotkey(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_lenovo_line2_mic_hotkey() argument
2228 alc269_fixup_hp_line1_mic1_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_hp_line1_mic1_led() argument
2240 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
2250 alc255_set_default_jack_type(struct hda_codec * codec) alc255_set_default_jack_type() argument
2283 alc_fixup_headset_mode_alc255(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mode_alc255() argument
2292 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
2304 alc288_update_headset_jack_cb(struct hda_codec * codec,struct hda_jack_callback * jack) alc288_update_headset_jack_cb() argument
2314 alc_fixup_headset_mode_dell_alc288(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mode_dell_alc288() argument
2327 alc_fixup_no_shutup(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_no_shutup() argument
2337 alc_fixup_tpt440_dock(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_tpt440_dock() argument
2354 alc_fixup_tpt470_dock(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_tpt470_dock() argument
2377 alc_fixup_tpt470_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_tpt470_dacs() argument
2394 alc295_fixup_asus_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_asus_dacs() argument
2406 alc271_hp_gate_mic_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc271_hp_gate_mic_jack() argument
2422 alc269_fixup_limit_int_mic_boost(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc269_fixup_limit_int_mic_boost() argument
2454 alc283_hp_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc283_hp_automute_hook() argument
2470 alc283_fixup_chromebook(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc283_fixup_chromebook() argument
2491 alc283_fixup_sense_combo_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc283_fixup_sense_combo_jack() argument
2509 asus_tx300_automute(struct hda_codec * codec) asus_tx300_automute() argument
2517 alc282_fixup_asus_tx300(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc282_fixup_asus_tx300() argument
2552 alc290_fixup_mono_speakers(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc290_fixup_mono_speakers() argument
2565 alc298_fixup_speaker_volume(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_speaker_volume() argument
2582 alc295_fixup_disable_dac3(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_disable_dac3() argument
2592 alc285_fixup_speaker2_to_dac1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_speaker2_to_dac1() argument
2602 alc294_fixup_bass_speaker_15(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc294_fixup_bass_speaker_15() argument
2613 alc280_hp_gpio4_automute_hook(struct hda_codec * codec,struct hda_jack_callback * jack) alc280_hp_gpio4_automute_hook() argument
2630 alc280_fixup_hp_9480m(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc280_fixup_hp_9480m() argument
2645 alc275_fixup_gpio4_off(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc275_fixup_gpio4_off() argument
2664 alc285_fixup_thinkpad_x1_gen7(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_thinkpad_x1_gen7() argument
2691 alc225_fixup_s3_pop_noise(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc225_fixup_s3_pop_noise() argument
2701 alc274_fixup_bind_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc274_fixup_bind_dacs() argument
2719 alc274_fixup_hp_aio_bind_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc274_fixup_hp_aio_bind_dacs() argument
2738 alc289_fixup_asus_ga401(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc289_fixup_asus_ga401() argument
2751 alc285_fixup_invalidate_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_invalidate_dacs() argument
2760 alc_combo_jack_hp_jd_restart(struct hda_codec * codec) alc_combo_jack_hp_jd_restart() argument
2784 alc295_fixup_chromebook(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_chromebook() argument
2799 alc256_fixup_chromebook(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc256_fixup_chromebook() argument
2816 alc_fixup_disable_mic_vref(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_disable_mic_vref() argument
2824 alc294_gx502_toggle_output(struct hda_codec * codec,struct hda_jack_callback * cb) alc294_gx502_toggle_output() argument
2836 alc294_fixup_gx502_hp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc294_fixup_gx502_hp() argument
2857 alc294_gu502_toggle_output(struct hda_codec * codec,struct hda_jack_callback * cb) alc294_gu502_toggle_output() argument
2869 alc294_fixup_gu502_hp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc294_fixup_gu502_hp() argument
2886 alc285_fixup_hp_gpio_amp_init(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_gpio_amp_init() argument
2896 alc274_fixup_hp_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc274_fixup_hp_headset_mic() argument
2906 alc_fixup_no_int_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_no_int_mic() argument
2926 alc285_fixup_hp_spectre_x360_eb1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_spectre_x360_eb1() argument
2962 alc285_fixup_hp_spectre_x360_df1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_spectre_x360_df1() argument
2996 alc285_fixup_hp_spectre_x360(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_spectre_x360() argument
3014 alc285_fixup_hp_envy_x360(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_envy_x360() argument
3068 alc285_fixup_hp_beep(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc285_fixup_hp_beep() argument
3095 alc_fixup_thinkpad_acpi(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_thinkpad_acpi() argument
3105 alc_fixup_ideapad_acpi(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_ideapad_acpi() argument
3112 alc287_fixup_legion_15imhg05_speakers(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_legion_15imhg05_speakers() argument
3267 cs35l41_fixup_spi_two(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs35l41_fixup_spi_two() argument
3272 cs35l41_fixup_spi_one(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs35l41_fixup_spi_one() argument
3277 cs35l41_fixup_spi_four(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs35l41_fixup_spi_four() argument
3327 alc256_fixup_acer_sfg16_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc256_fixup_acer_sfg16_micmute_led() argument
3347 alc256_fixup_set_coef_defaults(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc256_fixup_set_coef_defaults() argument
3369 alc233_fixup_no_audio_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_fixup_no_audio_jack() argument
3383 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
3400 alc256_decrease_headphone_amp_val(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc256_decrease_headphone_amp_val() argument
3419 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
3454 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
3494 alc295_fixup_dell_inspiron_top_speakers(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc295_fixup_dell_inspiron_top_speakers() argument
3523 alc287_fixup_bind_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_bind_dacs() argument
3545 alc2xx_fixup_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc2xx_fixup_headset_mic() argument
3563 alc245_fixup_hp_spectre_x360_eu0xxx(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_spectre_x360_eu0xxx() argument
3596 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
3638 alc245_fixup_hp_zbook_firefly_g12a(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_fixup_hp_zbook_firefly_g12a() argument
3660 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
3685 alc287_s4_power_gpio3_default(struct hda_codec * codec) alc287_s4_power_gpio3_default() argument
3692 alc287_fixup_lenovo_thinkpad_with_alc1318(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_lenovo_thinkpad_with_alc1318() argument
3711 alc245_tas2781_spi_hp_fixup_muteled(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_tas2781_spi_hp_fixup_muteled() argument
3731 struct hda_codec *codec = private_data; alc245_hp_spk_mute_led_update() local
3739 alc245_tas2781_i2c_hp_fixup_muteled(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc245_tas2781_i2c_hp_fixup_muteled() argument
3770 alc283_fixup_dell_hp_resume(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc283_fixup_dell_hp_resume() argument
3778 alc288_fixup_surface_swap_dacs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc288_fixup_surface_swap_dacs() argument
4131 alc298_fixup_lenovo_c940_duet7(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc298_fixup_lenovo_c940_duet7() argument
4148 alc287_fixup_lenovo_yoga_book_9i(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc287_fixup_lenovo_yoga_book_9i() argument
8410 alc269_fill_coef(struct hda_codec * codec) alc269_fill_coef() argument
8450 alc269_remove(struct hda_codec * codec) alc269_remove() argument
8462 alc269_probe(struct hda_codec * codec,const struct hda_device_id * id) alc269_probe() argument
[all...]
/linux/sound/hda/codecs/
H A Dca0132.c1135 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 Dvia.c95 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 Dconexant.c74 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()
99 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in cx_auto_parse_eapd()
101 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD)) in cx_auto_parse_eapd()
[all …]
H A Dgeneric.c105 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->inv_eapd = !!val; in parse_user_hints()
[all …]
H A Danalog.c59 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() argument
61 struct ad198x_spec *spec = codec->spec; in create_beep_ctls()
70 kctl = snd_ctl_new1(knew, codec); in create_beep_ctls()
74 err = snd_hda_ctl_add(codec, 0, kctl); in create_beep_ctls()
81 #define create_beep_ctls(codec) 0 argument
84 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write() argument
87 if (snd_hda_query_pin_caps(codec, front) & AC_PINCAP_EAPD) in ad198x_power_eapd_write()
88 snd_hda_codec_write(codec, front, 0, AC_VERB_SET_EAPD_BTLENABLE, in ad198x_power_eapd_write()
89 !codec->inv_eapd ? 0x00 : 0x02); in ad198x_power_eapd_write()
90 if (snd_hda_query_pin_caps(codec, hp) & AC_PINCAP_EAPD) in ad198x_power_eapd_write()
[all …]
H A Dsenarytech.c64 static int senary_auto_parse_beep(struct hda_codec *codec) in senary_auto_parse_beep() argument
66 struct senary_spec *spec = codec->spec; in senary_auto_parse_beep()
69 for_each_hda_codec_node(nid, codec) in senary_auto_parse_beep()
70 if ((get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) && in senary_auto_parse_beep()
71 (get_wcaps(codec, nid) & (AC_WCAP_OUT_AMP | AC_WCAP_AMP_OVRD))) in senary_auto_parse_beep()
76 #define senary_auto_parse_beep(codec) 0 argument
80 static void senary_auto_parse_eapd(struct hda_codec *codec) in senary_auto_parse_eapd() argument
82 struct senary_spec *spec = codec->spec; in senary_auto_parse_eapd()
85 for_each_hda_codec_node(nid, codec) { in senary_auto_parse_eapd()
86 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in senary_auto_parse_eapd()
[all …]
H A Dsigmatel.c242 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, "%s msk %x dir %x gpio %x\n", __func__, mask, dir_mask, data); in stac_gpio_set()
297 gpiostate = snd_hda_codec_read(codec, fg, 0, in stac_gpio_set()
[all …]
H A Dcm9825.c50 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 …]
/linux/sound/hda/common/
H A Dbind.c23 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 Dcodec.c28 #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()
45 err = snd_hdac_bus_exec_verb_unlocked(&bus->core, codec->core.addr, in call_exec_verb()
57 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() local
[all …]
H A Djack.c29 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 Dhda_local.h119 #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...]
/linux/sound/hda/codecs/hdmi/
H A Dintelhdmi.c36 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->core, INTEL_SET_VENDOR_VERB); in intel_haswell_fixup_enable_dp12()
70 snd_hda_codec_write_cache(codec, spec->vendor_nid, 0, in intel_haswell_fixup_enable_dp12()
[all …]
H A Dhdmi.c50 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 …]
/linux/sound/pci/ali5451/
H A Dali5451.c141 #define ALI_REG(codec, x) ((codec)->port + x) argument
180 struct snd_ali *codec; member
264 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() argument
267 return (unsigned int)inl(ALI_REG(codec, port)); in snd_ali_5451_peek()
270 static inline void snd_ali_5451_poke(struct snd_ali *codec, in snd_ali_5451_poke() argument
274 outl((unsigned int)val, ALI_REG(codec, port)); in snd_ali_5451_poke()
277 static int snd_ali_codec_ready(struct snd_ali *codec, in snd_ali_codec_ready() argument
286 res = snd_ali_5451_peek(codec,port); in snd_ali_codec_ready()
294 snd_ali_5451_poke(codec, port, res & ~0x8000); in snd_ali_codec_ready()
295 dev_dbg(codec->card->dev, "ali_codec_ready: codec is not ready.\n"); in snd_ali_codec_ready()
[all …]
/linux/sound/hda/core/
H A Ddevice.c19 static void setup_fg_nodes(struct hdac_device *codec);
20 static int get_codec_vendor_name(struct hdac_device *codec);
41 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init() argument
48 dev = &codec->dev; in snd_hdac_device_init()
57 codec->bus = bus; in snd_hdac_device_init()
58 codec->addr = addr; in snd_hdac_device_init()
59 codec->type = HDA_DEV_CORE; in snd_hdac_device_init()
60 mutex_init(&codec->widget_lock); in snd_hdac_device_init()
61 mutex_init(&codec->regmap_lock); in snd_hdac_device_init()
62 pm_runtime_set_active(&codec->dev); in snd_hdac_device_init()
[all …]
H A Dregmap.c25 static int codec_pm_lock(struct hdac_device *codec) in codec_pm_lock() argument
27 return snd_hdac_keep_power_up(codec); in codec_pm_lock()
30 static void codec_pm_unlock(struct hdac_device *codec, int lock) in codec_pm_unlock() argument
33 snd_hdac_power_down_pm(codec); in codec_pm_unlock()
40 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_volatile_reg() local
45 return !codec->cache_coef; in hda_volatile_reg()
67 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_writeable_reg() local
72 snd_array_for_each(&codec->vendor_verbs, i, v) { in hda_writeable_reg()
77 if (codec->caps_overwriting) in hda_writeable_reg()
85 return codec->cache_coef; in hda_writeable_reg()
[all …]
/linux/include/sound/
H A Dhda_codec.h95 #define hda_codec_to_driver(codec) \ argument
96 container_of((codec)->core.dev.driver, struct hda_codec_driver, core.driver)
109 int (*probe)(struct hda_codec *codec, const struct hda_device_id *id);
110 void (*remove)(struct hda_codec *codec);
111 int (*build_controls)(struct hda_codec *codec);
112 int (*build_pcms)(struct hda_codec *codec);
113 int (*init)(struct hda_codec *codec);
114 void (*unsol_event)(struct hda_codec *codec, unsigned int res);
115 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg,
117 int (*suspend)(struct hda_codec *codec);
[all …]
/linux/drivers/media/pci/zoran/
H A Dvideocodec.c20 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 Dcs8409.c27 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()
69 codec->power_save_node = 1; in cs8409_alloc_spec()
77 static inline int cs8409_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs8409_vendor_coef_get() argument
[all …]
H A Dcs420x.c94 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
123 struct cs_spec *spec = codec->spec; in cs_automute()
[all …]
H A Dcs421x.c105 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
134 struct cs_spec *spec = codec->spec; in cs_automute()
[all …]

12345678910>>...52