Lines Matching refs:hda_codec

99 static void parse_user_hints(struct hda_codec *codec)  in parse_user_hints()
204 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl()
210 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target()
222 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets()
250 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path()
281 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx()
302 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx()
313 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used()
327 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path()
339 static bool is_ctl_used(struct hda_codec *codec, unsigned int val, int type) in is_ctl_used()
354 static bool is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, in is_ctl_associated()
361 static void print_nid_path(struct hda_codec *codec, in print_nid_path()
378 static bool __parse_nid_path(struct hda_codec *codec, in __parse_nid_path()
448 static bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, in snd_hda_parse_nid_path()
471 snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, in snd_hda_add_new_path()
498 static void invalidate_nid_path(struct hda_codec *codec, int idx) in invalidate_nid_path()
507 static hda_nid_t get_preferred_dac(struct hda_codec *codec, hda_nid_t pin) in get_preferred_dac()
521 static hda_nid_t look_for_dac(struct hda_codec *codec, hda_nid_t pin, in look_for_dac()
549 static bool same_amp_caps(struct hda_codec *codec, hda_nid_t nid1, in same_amp_caps()
559 static hda_nid_t look_for_out_mute_nid(struct hda_codec *codec, in look_for_out_mute_nid()
575 static hda_nid_t look_for_out_vol_nid(struct hda_codec *codec, in look_for_out_vol_nid()
596 static bool has_amp_in(struct hda_codec *codec, struct nid_path *path, int idx) in has_amp_in()
610 static bool has_amp_out(struct hda_codec *codec, struct nid_path *path, int idx) in has_amp_out()
624 static bool is_active_nid(struct hda_codec *codec, hda_nid_t nid, in is_active_nid()
663 static int get_amp_val_to_activate(struct hda_codec *codec, hda_nid_t nid, in get_amp_val_to_activate()
681 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir) in is_stereo_amps()
698 static void init_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) in init_amp()
710 static int update_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, in update_amp()
724 static unsigned int get_amp_mask_to_modify(struct hda_codec *codec, in get_amp_mask_to_modify()
742 static void activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, in activate_amp()
758 static void check_and_activate_amp(struct hda_codec *codec, hda_nid_t nid, in check_and_activate_amp()
768 static void activate_amp_out(struct hda_codec *codec, struct nid_path *path, in activate_amp_out()
776 static void activate_amp_in(struct hda_codec *codec, struct nid_path *path, in activate_amp_in()
817 static hda_nid_t path_power_update(struct hda_codec *codec, in path_power_update()
856 static void sync_power_state_change(struct hda_codec *codec, hda_nid_t nid) in sync_power_state_change()
873 void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, in snd_hda_activate_path()
901 static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path) in path_power_down_sync()
911 static void set_pin_eapd(struct hda_codec *codec, hda_nid_t pin, bool enable) in set_pin_eapd()
927 static void resume_path_from_idx(struct hda_codec *codec, int path_idx) in resume_path_from_idx()
1008 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl()
1022 static int get_default_ch_nums(struct hda_codec *codec, struct nid_path *path, in get_default_ch_nums()
1034 static int add_stereo_vol(struct hda_codec *codec, const char *pfx, int cidx, in add_stereo_vol()
1044 static int add_sw_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_sw_ctl()
1067 static int add_stereo_sw(struct hda_codec *codec, const char *pfx, in add_stereo_sw()
1078 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in sync_auto_mute_bits()
1105 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hda_gen_bind_mute_get()
1121 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hda_gen_bind_mute_put()
1144 static bool path_has_mixer(struct hda_codec *codec, int path_idx, int ctl_type) in path_has_mixer()
1155 static const char *get_line_out_pfx(struct hda_codec *codec, int ch, in get_line_out_pfx()
1266 static int assign_out_path_ctls(struct hda_codec *codec, struct nid_path *path) in assign_out_path_ctls()
1329 static hda_nid_t get_primary_out(struct hda_codec *codec, int idx) in get_primary_out()
1343 static inline hda_nid_t try_dac(struct hda_codec *codec, in try_dac()
1350 static int try_assign_dacs(struct hda_codec *codec, int num_outs, in try_assign_dacs()
1438 static hda_nid_t get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) in get_dac_if_single()
1458 static bool can_be_multiio_pin(struct hda_codec *codec, in can_be_multiio_pin()
1475 static int count_multiio_pins(struct hda_codec *codec, hda_nid_t reference_pin) in count_multiio_pins()
1504 static int fill_multi_ios(struct hda_codec *codec, in fill_multi_ios()
1590 static bool map_singles(struct hda_codec *codec, int outs, in map_singles()
1626 static int check_aamix_out_path(struct hda_codec *codec, int path_idx) in check_aamix_out_path()
1662 static bool indep_hp_possible(struct hda_codec *codec) in indep_hp_possible()
1701 static void refill_shared_dacs(struct hda_codec *codec, int num_outs, in refill_shared_dacs()
1718 static int fill_and_eval_dacs(struct hda_codec *codec, in fill_and_eval_dacs()
1881 static inline void print_nid_path_idx(struct hda_codec *codec, in print_nid_path_idx()
1891 static void debug_show_configs(struct hda_codec *codec, in debug_show_configs()
1944 static void fill_all_dac_nids(struct hda_codec *codec) in fill_all_dac_nids()
1962 static int parse_output_paths(struct hda_codec *codec) in parse_output_paths()
2083 static int create_multi_out_ctls(struct hda_codec *codec, in create_multi_out_ctls()
2134 static int create_extra_out(struct hda_codec *codec, int path_idx, in create_extra_out()
2153 static int create_extra_outs(struct hda_codec *codec, int num_pins, in create_extra_outs()
2180 static int create_hp_out_ctls(struct hda_codec *codec) in create_hp_out_ctls()
2188 static int create_speaker_out_ctls(struct hda_codec *codec) in create_speaker_out_ctls()
2200 static void call_hp_automute(struct hda_codec *codec,
2211 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_get()
2217 static void update_aamix_paths(struct hda_codec *codec, bool do_mix,
2224 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_put()
2279 static int create_indep_hp_ctls(struct hda_codec *codec) in create_indep_hp_ctls()
2309 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_info()
2326 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_get()
2334 get_multiio_path(struct hda_codec *codec, int idx) in get_multiio_path()
2341 static void update_automute_all(struct hda_codec *codec);
2351 static int set_multi_io(struct hda_codec *codec, int idx, bool output) in set_multi_io()
2384 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_put()
2411 static int create_multi_channel_mode(struct hda_codec *codec) in create_multi_channel_mode()
2431 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_get()
2437 static void update_aamix_paths(struct hda_codec *codec, bool do_mix, in update_aamix_paths()
2468 static void update_output_paths(struct hda_codec *codec, int num_outs, in update_output_paths()
2486 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_put()
2523 static int create_loopback_mixing_ctl(struct hda_codec *codec) in create_loopback_mixing_ctl()
2539 static void call_update_outputs(struct hda_codec *codec);
2542 static void update_hp_mic(struct hda_codec *codec, int adc_mux, bool force) in update_hp_mic()
2586 static int create_hp_mic(struct hda_codec *codec) in create_hp_mic()
2639 static int create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin);
2654 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_get()
2666 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_put()
2684 static bool find_kctl_name(struct hda_codec *codec, const char *name, int idx) in find_kctl_name()
2697 static void get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin, in get_jack_mode_name()
2710 static int get_out_jack_num_items(struct hda_codec *codec, hda_nid_t pin) in get_out_jack_num_items()
2721 static int create_out_jack_modes(struct hda_codec *codec, int num_pins, in create_out_jack_modes()
2758 static unsigned int get_vref_caps(struct hda_codec *codec, hda_nid_t pin) in get_vref_caps()
2801 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_info()
2816 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_get()
2829 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_put()
2852 static int get_in_jack_num_items(struct hda_codec *codec, hda_nid_t pin) in get_in_jack_num_items()
2861 static int create_in_jack_mode(struct hda_codec *codec, hda_nid_t pin) in create_in_jack_mode()
2894 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_info()
2925 static int get_cur_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t nid) in get_cur_hp_mic_jack_mode()
2949 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_get()
2959 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_put()
2998 static int create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin) in create_hp_mic_jack_mode()
3034 static bool look_for_mix_leaf_ctls(struct hda_codec *codec, hda_nid_t mix_nid, in look_for_mix_leaf_ctls()
3070 static int new_analog_input(struct hda_codec *codec, int input_idx, in new_analog_input()
3126 static int is_input_pin(struct hda_codec *codec, hda_nid_t nid) in is_input_pin()
3133 static int fill_adc_nids(struct hda_codec *codec) in fill_adc_nids()
3163 static int check_dyn_adc_switch(struct hda_codec *codec) in check_dyn_adc_switch()
3231 static int parse_capture_source(struct hda_codec *codec, hda_nid_t pin, in parse_capture_source()
3273 static int fill_input_pin_labels(struct hda_codec *codec) in fill_input_pin_labels()
3306 static int create_input_ctls(struct hda_codec *codec) in create_input_ctls()
3379 static struct nid_path *get_input_path(struct hda_codec *codec, int adc_idx, int imux_idx) in get_input_path()
3395 static int mux_select(struct hda_codec *codec, unsigned int adc_idx,
3401 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_info()
3409 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_get()
3421 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_put()
3447 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_put_caller()
3516 static int parse_capvol_in_path(struct hda_codec *codec, struct nid_path *path) in parse_capvol_in_path()
3555 static bool is_inv_dmic_pin(struct hda_codec *codec, hda_nid_t nid) in is_inv_dmic_pin()
3579 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_single_sw_put()
3593 static int add_single_cap_ctl(struct hda_codec *codec, const char *label, in add_single_cap_ctl()
3639 static int create_single_cap_vol_ctl(struct hda_codec *codec, int idx, in create_single_cap_vol_ctl()
3654 static int create_bind_cap_vol_ctl(struct hda_codec *codec, int idx, in create_bind_cap_vol_ctl()
3680 static unsigned int get_first_cap_ctl(struct hda_codec *codec, int idx, int type) in get_first_cap_ctl()
3701 static int create_multi_cap_vol_ctl(struct hda_codec *codec) in create_multi_cap_vol_ctl()
3730 static int create_capture_mixers(struct hda_codec *codec) in create_capture_mixers()
3803 static bool check_boost_vol(struct hda_codec *codec, hda_nid_t nid, in check_boost_vol()
3821 static unsigned int look_for_boost_amp(struct hda_codec *codec, in look_for_boost_amp()
3846 static int parse_mic_boost(struct hda_codec *codec) in parse_mic_boost()
3900 static void call_micmute_led_update(struct hda_codec *codec) in call_micmute_led_update()
3928 static void update_micmute_led(struct hda_codec *codec, in update_micmute_led()
3965 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in micmute_led_mode_get()
3975 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in micmute_led_mode_put()
4009 int snd_hda_gen_add_micmute_led(struct hda_codec *codec, in snd_hda_gen_add_micmute_led()
4010 void (*hook)(struct hda_codec *)) in snd_hda_gen_add_micmute_led() argument
4027 static void call_ledtrig_micmute(struct hda_codec *codec) in call_ledtrig_micmute()
4046 void snd_hda_gen_fixup_micmute_led(struct hda_codec *codec, in snd_hda_gen_fixup_micmute_led()
4059 static void parse_digital(struct hda_codec *codec) in parse_digital()
4120 static bool dyn_adc_pcm_resetup(struct hda_codec *codec, int cur);
4123 static int mux_select(struct hda_codec *codec, unsigned int adc_idx, in mux_select()
4170 static hda_nid_t set_path_power(struct hda_codec *codec, hda_nid_t nid, in set_path_power()
4202 static bool detect_pin_state(struct hda_codec *codec, hda_nid_t pin) in detect_pin_state()
4215 static hda_nid_t set_pin_power_jack(struct hda_codec *codec, hda_nid_t pin, in set_pin_power_jack()
4230 static void pin_power_callback(struct hda_codec *codec, in pin_power_callback()
4240 static void pin_power_up_callback(struct hda_codec *codec, in pin_power_up_callback()
4247 static void pin_power_down_callback(struct hda_codec *codec, in pin_power_down_callback()
4254 static void add_pin_power_ctls(struct hda_codec *codec, int num_pins, in add_pin_power_ctls()
4272 static void add_all_pin_power_ctls(struct hda_codec *codec, bool on) in add_all_pin_power_ctls()
4290 static void sync_pin_power_ctls(struct hda_codec *codec, int num_pins, in sync_pin_power_ctls()
4301 static void sync_all_pin_power_ctls(struct hda_codec *codec) in sync_all_pin_power_ctls()
4319 static int add_fake_paths(struct hda_codec *codec, hda_nid_t nid, in add_fake_paths()
4344 static int add_fake_beep_paths(struct hda_codec *codec) in add_fake_beep_paths()
4381 int snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin) in snd_hda_gen_fix_pin_power()
4404 static bool detect_jacks(struct hda_codec *codec, int num_pins, hda_nid_t *pins) in detect_jacks()
4423 static void do_automute(struct hda_codec *codec, int num_pins, hda_nid_t *pins, in do_automute()
4488 void snd_hda_gen_update_outputs(struct hda_codec *codec) in snd_hda_gen_update_outputs()
4535 static void call_update_outputs(struct hda_codec *codec) in call_update_outputs()
4553 void snd_hda_gen_hp_automute(struct hda_codec *codec, in snd_hda_gen_hp_automute()
4578 void snd_hda_gen_line_automute(struct hda_codec *codec, in snd_hda_gen_line_automute()
4603 void snd_hda_gen_mic_autoswitch(struct hda_codec *codec, in snd_hda_gen_mic_autoswitch()
4627 static void call_hp_automute(struct hda_codec *codec, in call_hp_automute()
4637 static void call_line_automute(struct hda_codec *codec, in call_line_automute()
4647 static void call_mic_autoswitch(struct hda_codec *codec, in call_mic_autoswitch()
4658 static void update_automute_all(struct hda_codec *codec) in update_automute_all()
4671 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_info()
4685 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_get()
4700 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_put()
4746 static int add_automute_mode_enum(struct hda_codec *codec) in add_automute_mode_enum()
4759 static int check_auto_mute_availability(struct hda_codec *codec) in check_auto_mute_availability()
4832 static bool auto_mic_check_imux(struct hda_codec *codec) in auto_mic_check_imux()
4866 static int check_auto_mic_availability(struct hda_codec *codec) in check_auto_mic_availability()
4941 unsigned int snd_hda_gen_path_power_filter(struct hda_codec *codec, in snd_hda_gen_path_power_filter()
4960 static void mute_all_mixer_nid(struct hda_codec *codec, hda_nid_t mix) in mute_all_mixer_nid()
4986 void snd_hda_gen_stream_pm(struct hda_codec *codec, hda_nid_t nid, bool on) in snd_hda_gen_stream_pm()
5002 int snd_hda_gen_parse_auto_config(struct hda_codec *codec, in snd_hda_gen_parse_auto_config()
5204 int snd_hda_gen_build_controls(struct hda_codec *codec) in snd_hda_gen_build_controls()
5276 struct hda_codec *codec, in call_pcm_playback_hook()
5286 struct hda_codec *codec, in call_pcm_capture_hook()
5299 struct hda_codec *codec, in playback_pcm_open()
5319 struct hda_codec *codec, in playback_pcm_prepare()
5336 struct hda_codec *codec, in playback_pcm_cleanup()
5350 struct hda_codec *codec, in playback_pcm_close()
5363 struct hda_codec *codec, in capture_pcm_open()
5371 struct hda_codec *codec, in capture_pcm_prepare()
5383 struct hda_codec *codec, in capture_pcm_cleanup()
5393 struct hda_codec *codec, in capture_pcm_close()
5401 struct hda_codec *codec, in alt_playback_pcm_open()
5419 struct hda_codec *codec, in alt_playback_pcm_close()
5432 struct hda_codec *codec, in alt_playback_pcm_prepare()
5444 struct hda_codec *codec, in alt_playback_pcm_cleanup()
5457 struct hda_codec *codec, in dig_playback_pcm_open()
5465 struct hda_codec *codec, in dig_playback_pcm_prepare()
5476 struct hda_codec *codec, in dig_playback_pcm_cleanup()
5484 struct hda_codec *codec, in dig_playback_pcm_close()
5498 struct hda_codec *codec, in alt_capture_pcm_prepare()
5513 struct hda_codec *codec, in alt_capture_pcm_cleanup()
5609 static bool dyn_adc_pcm_resetup(struct hda_codec *codec, int cur) in dyn_adc_pcm_resetup()
5628 struct hda_codec *codec, in dyn_adc_capture_pcm_prepare()
5643 struct hda_codec *codec, in dyn_adc_capture_pcm_cleanup()
5716 int snd_hda_gen_build_pcms(struct hda_codec *codec) in snd_hda_gen_build_pcms()
5830 static void set_output_and_unmute(struct hda_codec *codec, int path_idx) in set_output_and_unmute()
5846 static void init_multi_out(struct hda_codec *codec) in init_multi_out()
5856 static void __init_extra_out(struct hda_codec *codec, int num_outs, int *paths) in __init_extra_out()
5865 static void init_extra_out(struct hda_codec *codec) in init_extra_out()
5877 static void init_multi_io(struct hda_codec *codec) in init_multi_io()
5896 static void init_aamix_paths(struct hda_codec *codec) in init_aamix_paths()
5916 static void init_analog_input(struct hda_codec *codec) in init_analog_input()
5936 static void init_input_src(struct hda_codec *codec) in init_input_src()
5967 static void init_digital(struct hda_codec *codec) in init_digital()
5985 static void clear_unsol_on_unused_pins(struct hda_codec *codec) in clear_unsol_on_unused_pins()
6005 int snd_hda_gen_init(struct hda_codec *codec) in snd_hda_gen_init()
6046 void snd_hda_gen_free(struct hda_codec *codec) in snd_hda_gen_free()
6061 void snd_hda_gen_reboot_notify(struct hda_codec *codec) in snd_hda_gen_reboot_notify()
6081 int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) in snd_hda_gen_check_power_status()
6110 static int snd_hda_parse_generic_codec(struct hda_codec *codec) in snd_hda_parse_generic_codec()