Lines Matching defs:codec

105 static void parse_user_hints(struct hda_codec *codec)  in parse_user_hints()
205 #define update_pin_ctl(codec, pin, val) \ argument
210 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl()
216 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target()
228 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets()
256 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path()
287 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx()
308 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx()
319 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used()
333 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path()
345 static bool is_ctl_used(struct hda_codec *codec, unsigned int val, int type) in is_ctl_used()
360 static bool is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, in is_ctl_associated()
367 static void print_nid_path(struct hda_codec *codec, in print_nid_path()
384 static bool __parse_nid_path(struct hda_codec *codec, in __parse_nid_path()
454 static bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, in snd_hda_parse_nid_path()
477 snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, in snd_hda_add_new_path()
504 static void invalidate_nid_path(struct hda_codec *codec, int idx) in invalidate_nid_path()
513 static hda_nid_t get_preferred_dac(struct hda_codec *codec, hda_nid_t pin) in get_preferred_dac()
527 static hda_nid_t look_for_dac(struct hda_codec *codec, hda_nid_t pin, in look_for_dac()
555 static bool same_amp_caps(struct hda_codec *codec, hda_nid_t nid1, in same_amp_caps()
565 static hda_nid_t look_for_out_mute_nid(struct hda_codec *codec, in look_for_out_mute_nid()
581 static hda_nid_t look_for_out_vol_nid(struct hda_codec *codec, in look_for_out_vol_nid()
602 static bool has_amp_in(struct hda_codec *codec, struct nid_path *path, int idx) in has_amp_in()
616 static bool has_amp_out(struct hda_codec *codec, struct nid_path *path, int idx) in has_amp_out()
630 static bool is_active_nid(struct hda_codec *codec, hda_nid_t nid, in is_active_nid()
665 #define is_active_nid_for_any(codec, nid) \ argument
669 static int get_amp_val_to_activate(struct hda_codec *codec, hda_nid_t nid, in get_amp_val_to_activate()
687 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir) in is_stereo_amps()
704 static void init_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) in init_amp()
716 static int update_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, in update_amp()
730 static unsigned int get_amp_mask_to_modify(struct hda_codec *codec, in get_amp_mask_to_modify()
748 static void activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, in activate_amp()
764 static void check_and_activate_amp(struct hda_codec *codec, hda_nid_t nid, in check_and_activate_amp()
774 static void activate_amp_out(struct hda_codec *codec, struct nid_path *path, in activate_amp_out()
782 static void activate_amp_in(struct hda_codec *codec, struct nid_path *path, in activate_amp_in()
823 static hda_nid_t path_power_update(struct hda_codec *codec, in path_power_update()
862 static void sync_power_state_change(struct hda_codec *codec, hda_nid_t nid) in sync_power_state_change()
879 void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, in snd_hda_activate_path()
907 static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path) in path_power_down_sync()
917 static void set_pin_eapd(struct hda_codec *codec, hda_nid_t pin, bool enable) in set_pin_eapd()
933 static void resume_path_from_idx(struct hda_codec *codec, int path_idx) in resume_path_from_idx()
1020 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl()
1034 static int get_default_ch_nums(struct hda_codec *codec, struct nid_path *path, in get_default_ch_nums()
1046 static int add_stereo_vol(struct hda_codec *codec, const char *pfx, int cidx, in add_stereo_vol()
1056 static int add_sw_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_sw_ctl()
1079 static int add_stereo_sw(struct hda_codec *codec, const char *pfx, in add_stereo_sw()
1090 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in sync_auto_mute_bits() local
1117 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hda_gen_bind_mute_get() local
1133 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hda_gen_bind_mute_put() local
1156 static bool path_has_mixer(struct hda_codec *codec, int path_idx, int ctl_type) in path_has_mixer()
1167 static const char *get_line_out_pfx(struct hda_codec *codec, int ch, in get_line_out_pfx()
1285 static int assign_out_path_ctls(struct hda_codec *codec, struct nid_path *path) in assign_out_path_ctls()
1348 static hda_nid_t get_primary_out(struct hda_codec *codec, int idx) in get_primary_out()
1362 static inline hda_nid_t try_dac(struct hda_codec *codec, in try_dac()
1369 static int try_assign_dacs(struct hda_codec *codec, int num_outs, in try_assign_dacs()
1461 static hda_nid_t get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) in get_dac_if_single()
1481 static bool can_be_multiio_pin(struct hda_codec *codec, in can_be_multiio_pin()
1498 static int count_multiio_pins(struct hda_codec *codec, hda_nid_t reference_pin) in count_multiio_pins()
1527 static int fill_multi_ios(struct hda_codec *codec, in fill_multi_ios()
1613 static bool map_singles(struct hda_codec *codec, int outs, in map_singles()
1649 static int check_aamix_out_path(struct hda_codec *codec, int path_idx) in check_aamix_out_path()
1685 static bool indep_hp_possible(struct hda_codec *codec) in indep_hp_possible()
1724 static void refill_shared_dacs(struct hda_codec *codec, int num_outs, in refill_shared_dacs()
1741 static int fill_and_eval_dacs(struct hda_codec *codec, in fill_and_eval_dacs()
1904 static inline void print_nid_path_idx(struct hda_codec *codec, in print_nid_path_idx()
1914 static void debug_show_configs(struct hda_codec *codec, in debug_show_configs()
1963 #define debug_show_configs(codec, cfg) /* NOP */ argument
1967 static void fill_all_dac_nids(struct hda_codec *codec) in fill_all_dac_nids()
1985 static int parse_output_paths(struct hda_codec *codec) in parse_output_paths()
2106 static int create_multi_out_ctls(struct hda_codec *codec, in create_multi_out_ctls()
2157 static int create_extra_out(struct hda_codec *codec, int path_idx, in create_extra_out()
2176 static int create_extra_outs(struct hda_codec *codec, int num_pins, in create_extra_outs()
2203 static int create_hp_out_ctls(struct hda_codec *codec) in create_hp_out_ctls()
2211 static int create_speaker_out_ctls(struct hda_codec *codec) in create_speaker_out_ctls()
2234 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_get() local
2247 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_put() local
2302 static int create_indep_hp_ctls(struct hda_codec *codec) in create_indep_hp_ctls()
2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_info() local
2349 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_get() local
2357 get_multiio_path(struct hda_codec *codec, int idx) in get_multiio_path()
2374 static int set_multi_io(struct hda_codec *codec, int idx, bool output) in set_multi_io()
2407 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_put() local
2434 static int create_multi_channel_mode(struct hda_codec *codec) in create_multi_channel_mode()
2454 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_get() local
2460 static void update_aamix_paths(struct hda_codec *codec, bool do_mix, in update_aamix_paths()
2491 static void update_output_paths(struct hda_codec *codec, int num_outs, in update_output_paths()
2509 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_put() local
2546 static int create_loopback_mixing_ctl(struct hda_codec *codec) in create_loopback_mixing_ctl()
2565 static void update_hp_mic(struct hda_codec *codec, int adc_mux, bool force) in update_hp_mic()
2609 static int create_hp_mic(struct hda_codec *codec) in create_hp_mic()
2677 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_get() local
2689 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_put() local
2707 static bool find_kctl_name(struct hda_codec *codec, const char *name, int idx) in find_kctl_name()
2720 static void get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin, in get_jack_mode_name()
2733 static int get_out_jack_num_items(struct hda_codec *codec, hda_nid_t pin) in get_out_jack_num_items()
2744 static int create_out_jack_modes(struct hda_codec *codec, int num_pins, in create_out_jack_modes()
2781 static unsigned int get_vref_caps(struct hda_codec *codec, hda_nid_t pin) in get_vref_caps()
2824 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_info() local
2839 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_get() local
2852 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_put() local
2875 static int get_in_jack_num_items(struct hda_codec *codec, hda_nid_t pin) in get_in_jack_num_items()
2884 static int create_in_jack_mode(struct hda_codec *codec, hda_nid_t pin) in create_in_jack_mode()
2917 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_info() local
2948 static int get_cur_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t nid) in get_cur_hp_mic_jack_mode()
2972 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_get() local
2982 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_put() local
3021 static int create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin) in create_hp_mic_jack_mode()
3057 static bool look_for_mix_leaf_ctls(struct hda_codec *codec, hda_nid_t mix_nid, in look_for_mix_leaf_ctls()
3093 static int new_analog_input(struct hda_codec *codec, int input_idx, in new_analog_input()
3149 static int is_input_pin(struct hda_codec *codec, hda_nid_t nid) in is_input_pin()
3156 static int fill_adc_nids(struct hda_codec *codec) in fill_adc_nids()
3186 static int check_dyn_adc_switch(struct hda_codec *codec) in check_dyn_adc_switch()
3254 static int parse_capture_source(struct hda_codec *codec, hda_nid_t pin, in parse_capture_source()
3296 static int fill_input_pin_labels(struct hda_codec *codec) in fill_input_pin_labels()
3329 static int create_input_ctls(struct hda_codec *codec) in create_input_ctls()
3402 static struct nid_path *get_input_path(struct hda_codec *codec, int adc_idx, int imux_idx) in get_input_path()
3424 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_info() local
3432 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_get() local
3444 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_put() local
3470 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_put_caller() local
3544 static int parse_capvol_in_path(struct hda_codec *codec, struct nid_path *path) in parse_capvol_in_path()
3583 static bool is_inv_dmic_pin(struct hda_codec *codec, hda_nid_t nid) in is_inv_dmic_pin()
3607 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_single_sw_put() local
3621 static int add_single_cap_ctl(struct hda_codec *codec, const char *label, in add_single_cap_ctl()
3673 static int create_single_cap_vol_ctl(struct hda_codec *codec, int idx, in create_single_cap_vol_ctl()
3688 static int create_bind_cap_vol_ctl(struct hda_codec *codec, int idx, in create_bind_cap_vol_ctl()
3716 static unsigned int get_first_cap_ctl(struct hda_codec *codec, int idx, int type) in get_first_cap_ctl()
3737 static int create_multi_cap_vol_ctl(struct hda_codec *codec) in create_multi_cap_vol_ctl()
3766 static int create_capture_mixers(struct hda_codec *codec) in create_capture_mixers()
3839 static bool check_boost_vol(struct hda_codec *codec, hda_nid_t nid, in check_boost_vol()
3857 static unsigned int look_for_boost_amp(struct hda_codec *codec, in look_for_boost_amp()
3882 static int parse_mic_boost(struct hda_codec *codec) in parse_mic_boost()
3931 static int create_mute_led_cdev(struct hda_codec *codec, in create_mute_led_cdev()
3963 int snd_hda_gen_add_mute_led_cdev(struct hda_codec *codec, in snd_hda_gen_add_mute_led_cdev()
4000 int snd_hda_gen_add_micmute_led_cdev(struct hda_codec *codec, in snd_hda_gen_add_micmute_led_cdev()
4024 static void parse_digital(struct hda_codec *codec) in parse_digital()
4088 static int mux_select(struct hda_codec *codec, unsigned int adc_idx, in mux_select()
4135 static hda_nid_t set_path_power(struct hda_codec *codec, hda_nid_t nid, in set_path_power()
4167 static bool detect_pin_state(struct hda_codec *codec, hda_nid_t pin) in detect_pin_state()
4180 static hda_nid_t set_pin_power_jack(struct hda_codec *codec, hda_nid_t pin, in set_pin_power_jack()
4195 static void pin_power_callback(struct hda_codec *codec, in pin_power_callback()
4205 static void pin_power_up_callback(struct hda_codec *codec, in pin_power_up_callback()
4212 static void pin_power_down_callback(struct hda_codec *codec, in pin_power_down_callback()
4219 static void add_pin_power_ctls(struct hda_codec *codec, int num_pins, in add_pin_power_ctls()
4237 static void add_all_pin_power_ctls(struct hda_codec *codec, bool on) in add_all_pin_power_ctls()
4255 static void sync_pin_power_ctls(struct hda_codec *codec, int num_pins, in sync_pin_power_ctls()
4266 static void sync_all_pin_power_ctls(struct hda_codec *codec) in sync_all_pin_power_ctls()
4284 static int add_fake_paths(struct hda_codec *codec, hda_nid_t nid, in add_fake_paths()
4309 static int add_fake_beep_paths(struct hda_codec *codec) in add_fake_beep_paths()
4346 int snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin) in snd_hda_gen_fix_pin_power()
4369 static bool detect_jacks(struct hda_codec *codec, int num_pins, const hda_nid_t *pins) in detect_jacks()
4388 static void do_automute(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, in do_automute()
4453 void snd_hda_gen_update_outputs(struct hda_codec *codec) in snd_hda_gen_update_outputs()
4500 static void call_update_outputs(struct hda_codec *codec) in call_update_outputs()
4518 void snd_hda_gen_hp_automute(struct hda_codec *codec, in snd_hda_gen_hp_automute()
4543 void snd_hda_gen_line_automute(struct hda_codec *codec, in snd_hda_gen_line_automute()
4568 void snd_hda_gen_mic_autoswitch(struct hda_codec *codec, in snd_hda_gen_mic_autoswitch()
4592 static void call_hp_automute(struct hda_codec *codec, in call_hp_automute()
4602 static void call_line_automute(struct hda_codec *codec, in call_line_automute()
4612 static void call_mic_autoswitch(struct hda_codec *codec, in call_mic_autoswitch()
4623 static void update_automute_all(struct hda_codec *codec) in update_automute_all()
4636 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_info() local
4650 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_get() local
4665 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_put() local
4711 static int add_automute_mode_enum(struct hda_codec *codec) in add_automute_mode_enum()
4724 static int check_auto_mute_availability(struct hda_codec *codec) in check_auto_mute_availability()
4797 static bool auto_mic_check_imux(struct hda_codec *codec) in auto_mic_check_imux()
4831 static int check_auto_mic_availability(struct hda_codec *codec) in check_auto_mic_availability()
4906 unsigned int snd_hda_gen_path_power_filter(struct hda_codec *codec, in snd_hda_gen_path_power_filter()
4925 static void mute_all_mixer_nid(struct hda_codec *codec, hda_nid_t mix) in mute_all_mixer_nid()
4951 void snd_hda_gen_stream_pm(struct hda_codec *codec, hda_nid_t nid, bool on) in snd_hda_gen_stream_pm()
4959 static bool force_mute_output_path(struct hda_codec *codec, hda_nid_t nid) in force_mute_output_path()
4988 bool snd_hda_gen_shutup_speakers(struct hda_codec *codec) in snd_hda_gen_shutup_speakers()
5030 int snd_hda_gen_parse_auto_config(struct hda_codec *codec, in snd_hda_gen_parse_auto_config()
5235 int snd_hda_gen_build_controls(struct hda_codec *codec) in snd_hda_gen_build_controls()
5308 struct hda_codec *codec, in call_pcm_playback_hook()
5318 struct hda_codec *codec, in call_pcm_capture_hook()
5331 struct hda_codec *codec, in playback_pcm_open()
5351 struct hda_codec *codec, in playback_pcm_prepare()
5368 struct hda_codec *codec, in playback_pcm_cleanup()
5382 struct hda_codec *codec, in playback_pcm_close()
5395 struct hda_codec *codec, in capture_pcm_open()
5403 struct hda_codec *codec, in capture_pcm_prepare()
5415 struct hda_codec *codec, in capture_pcm_cleanup()
5425 struct hda_codec *codec, in capture_pcm_close()
5433 struct hda_codec *codec, in alt_playback_pcm_open()
5451 struct hda_codec *codec, in alt_playback_pcm_close()
5464 struct hda_codec *codec, in alt_playback_pcm_prepare()
5476 struct hda_codec *codec, in alt_playback_pcm_cleanup()
5489 struct hda_codec *codec, in dig_playback_pcm_open()
5497 struct hda_codec *codec, in dig_playback_pcm_prepare()
5508 struct hda_codec *codec, in dig_playback_pcm_cleanup()
5516 struct hda_codec *codec, in dig_playback_pcm_close()
5530 struct hda_codec *codec, in alt_capture_pcm_prepare()
5545 struct hda_codec *codec, in alt_capture_pcm_cleanup()
5641 static bool dyn_adc_pcm_resetup(struct hda_codec *codec, int cur) in dyn_adc_pcm_resetup()
5660 struct hda_codec *codec, in dyn_adc_capture_pcm_prepare()
5675 struct hda_codec *codec, in dyn_adc_capture_pcm_cleanup()
5748 int snd_hda_gen_build_pcms(struct hda_codec *codec) in snd_hda_gen_build_pcms()
5862 static void set_output_and_unmute(struct hda_codec *codec, int path_idx) in set_output_and_unmute()
5878 static void init_multi_out(struct hda_codec *codec) in init_multi_out()
5888 static void __init_extra_out(struct hda_codec *codec, int num_outs, int *paths) in __init_extra_out()
5897 static void init_extra_out(struct hda_codec *codec) in init_extra_out()
5909 static void init_multi_io(struct hda_codec *codec) in init_multi_io()
5928 static void init_aamix_paths(struct hda_codec *codec) in init_aamix_paths()
5948 static void init_analog_input(struct hda_codec *codec) in init_analog_input()
5968 static void init_input_src(struct hda_codec *codec) in init_input_src()
5999 static void init_digital(struct hda_codec *codec) in init_digital()
6017 static void clear_unsol_on_unused_pins(struct hda_codec *codec) in clear_unsol_on_unused_pins()
6037 int snd_hda_gen_init(struct hda_codec *codec) in snd_hda_gen_init()
6078 void snd_hda_gen_free(struct hda_codec *codec) in snd_hda_gen_free()
6094 int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) in snd_hda_gen_check_power_status()
6119 static int snd_hda_parse_generic_codec(struct hda_codec *codec) in snd_hda_parse_generic_codec()