Lines Matching defs:codec
95 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints()
189 #define update_pin_ctl(codec, pin, val) \ argument
194 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl()
200 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target()
212 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets()
240 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path()
265 struct nid_path *snd_hda_get_nid_path(struct hda_codec *codec, in snd_hda_get_nid_path()
275 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx()
291 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx()
302 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used()
316 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path()
328 static bool is_ctl_used(struct hda_codec *codec, unsigned int val, int type) in is_ctl_used()
343 static bool is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, in is_ctl_associated()
350 static void print_nid_path(struct hda_codec *codec, in print_nid_path()
367 static bool __parse_nid_path(struct hda_codec *codec, in __parse_nid_path()
426 bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, in snd_hda_parse_nid_path()
444 snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, in snd_hda_add_new_path()
471 static void invalidate_nid_path(struct hda_codec *codec, int idx) in invalidate_nid_path()
480 static hda_nid_t get_preferred_dac(struct hda_codec *codec, hda_nid_t pin) in get_preferred_dac()
494 static hda_nid_t look_for_dac(struct hda_codec *codec, hda_nid_t pin, in look_for_dac()
522 static bool same_amp_caps(struct hda_codec *codec, hda_nid_t nid1, in same_amp_caps()
532 static hda_nid_t look_for_out_mute_nid(struct hda_codec *codec, in look_for_out_mute_nid()
548 static hda_nid_t look_for_out_vol_nid(struct hda_codec *codec, in look_for_out_vol_nid()
569 static bool has_amp_in(struct hda_codec *codec, struct nid_path *path, int idx) in has_amp_in()
583 static bool has_amp_out(struct hda_codec *codec, struct nid_path *path, int idx) in has_amp_out()
597 static bool is_active_nid(struct hda_codec *codec, hda_nid_t nid, in is_active_nid()
619 #define is_active_nid_for_any(codec, nid) \ argument
623 static int get_amp_val_to_activate(struct hda_codec *codec, hda_nid_t nid, in get_amp_val_to_activate()
641 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir) in is_stereo_amps()
658 static void init_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) in init_amp()
670 static int update_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, in update_amp()
684 static unsigned int get_amp_mask_to_modify(struct hda_codec *codec, in get_amp_mask_to_modify()
702 static void activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, in activate_amp()
718 static void check_and_activate_amp(struct hda_codec *codec, hda_nid_t nid, in check_and_activate_amp()
728 static void activate_amp_out(struct hda_codec *codec, struct nid_path *path, in activate_amp_out()
736 static void activate_amp_in(struct hda_codec *codec, struct nid_path *path, in activate_amp_in()
777 void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, in snd_hda_activate_path()
811 static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path) in path_power_down_sync()
839 static void set_pin_eapd(struct hda_codec *codec, hda_nid_t pin, bool enable) in set_pin_eapd()
855 static void resume_path_from_idx(struct hda_codec *codec, int path_idx) in resume_path_from_idx()
934 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl()
948 static int get_default_ch_nums(struct hda_codec *codec, struct nid_path *path, in get_default_ch_nums()
960 static int add_stereo_vol(struct hda_codec *codec, const char *pfx, int cidx, in add_stereo_vol()
970 static int add_sw_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_sw_ctl()
993 static int add_stereo_sw(struct hda_codec *codec, const char *pfx, in add_stereo_sw()
1004 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in sync_auto_mute_bits() local
1030 static bool path_has_mixer(struct hda_codec *codec, int path_idx, int ctl_type) in path_has_mixer()
1041 static const char *get_line_out_pfx(struct hda_codec *codec, int ch, in get_line_out_pfx()
1137 static int assign_out_path_ctls(struct hda_codec *codec, struct nid_path *path) in assign_out_path_ctls()
1200 static hda_nid_t get_primary_out(struct hda_codec *codec, int idx) in get_primary_out()
1214 static inline hda_nid_t try_dac(struct hda_codec *codec, in try_dac()
1221 static int try_assign_dacs(struct hda_codec *codec, int num_outs, in try_assign_dacs()
1309 static hda_nid_t get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) in get_dac_if_single()
1329 static bool can_be_multiio_pin(struct hda_codec *codec, in can_be_multiio_pin()
1346 static int count_multiio_pins(struct hda_codec *codec, hda_nid_t reference_pin) in count_multiio_pins()
1375 static int fill_multi_ios(struct hda_codec *codec, in fill_multi_ios()
1461 static bool map_singles(struct hda_codec *codec, int outs, in map_singles()
1497 static int check_aamix_out_path(struct hda_codec *codec, int path_idx) in check_aamix_out_path()
1532 static bool indep_hp_possible(struct hda_codec *codec) in indep_hp_possible()
1571 static void refill_shared_dacs(struct hda_codec *codec, int num_outs, in refill_shared_dacs()
1588 static int fill_and_eval_dacs(struct hda_codec *codec, in fill_and_eval_dacs()
1751 static inline void print_nid_path_idx(struct hda_codec *codec, in print_nid_path_idx()
1761 static void debug_show_configs(struct hda_codec *codec, in debug_show_configs()
1810 #define debug_show_configs(codec, cfg) /* NOP */ argument
1814 static void fill_all_dac_nids(struct hda_codec *codec) in fill_all_dac_nids()
1833 static int parse_output_paths(struct hda_codec *codec) in parse_output_paths()
1954 static int create_multi_out_ctls(struct hda_codec *codec, in create_multi_out_ctls()
2005 static int create_extra_out(struct hda_codec *codec, int path_idx, in create_extra_out()
2024 static int create_extra_outs(struct hda_codec *codec, int num_pins, in create_extra_outs()
2051 static int create_hp_out_ctls(struct hda_codec *codec) in create_hp_out_ctls()
2059 static int create_speaker_out_ctls(struct hda_codec *codec) in create_speaker_out_ctls()
2082 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_get() local
2095 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_put() local
2150 static int create_indep_hp_ctls(struct hda_codec *codec) in create_indep_hp_ctls()
2180 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_info() local
2197 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_get() local
2205 get_multiio_path(struct hda_codec *codec, int idx) in get_multiio_path()
2222 static int set_multi_io(struct hda_codec *codec, int idx, bool output) in set_multi_io()
2255 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_put() local
2282 static int create_multi_channel_mode(struct hda_codec *codec) in create_multi_channel_mode()
2302 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_get() local
2308 static void update_aamix_paths(struct hda_codec *codec, bool do_mix, in update_aamix_paths()
2339 static void update_output_paths(struct hda_codec *codec, int num_outs, in update_output_paths()
2357 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_put() local
2394 static int create_loopback_mixing_ctl(struct hda_codec *codec) in create_loopback_mixing_ctl()
2417 static void update_hp_mic(struct hda_codec *codec, int adc_mux, bool force) in update_hp_mic()
2461 static int create_hp_mic(struct hda_codec *codec) in create_hp_mic()
2529 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_get() local
2541 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_put() local
2559 static bool find_kctl_name(struct hda_codec *codec, const char *name, int idx) in find_kctl_name()
2572 static void get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin, in get_jack_mode_name()
2585 static int get_out_jack_num_items(struct hda_codec *codec, hda_nid_t pin) in get_out_jack_num_items()
2596 static int create_out_jack_modes(struct hda_codec *codec, int num_pins, in create_out_jack_modes()
2633 static unsigned int get_vref_caps(struct hda_codec *codec, hda_nid_t pin) in get_vref_caps()
2676 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_info() local
2691 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_get() local
2704 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_put() local
2727 static int get_in_jack_num_items(struct hda_codec *codec, hda_nid_t pin) in get_in_jack_num_items()
2736 static int create_in_jack_mode(struct hda_codec *codec, hda_nid_t pin) in create_in_jack_mode()
2769 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_info() local
2800 static int get_cur_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t nid) in get_cur_hp_mic_jack_mode()
2824 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_get() local
2834 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_put() local
2873 static int create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin) in create_hp_mic_jack_mode()
2909 static bool look_for_mix_leaf_ctls(struct hda_codec *codec, hda_nid_t mix_nid, in look_for_mix_leaf_ctls()
2945 static int new_analog_input(struct hda_codec *codec, int input_idx, in new_analog_input()
2998 static int is_input_pin(struct hda_codec *codec, hda_nid_t nid) in is_input_pin()
3005 static int fill_adc_nids(struct hda_codec *codec) in fill_adc_nids()
3036 static int check_dyn_adc_switch(struct hda_codec *codec) in check_dyn_adc_switch()
3104 static int parse_capture_source(struct hda_codec *codec, hda_nid_t pin, in parse_capture_source()
3146 static int fill_input_pin_labels(struct hda_codec *codec) in fill_input_pin_labels()
3179 static int create_input_ctls(struct hda_codec *codec) in create_input_ctls()
3250 static struct nid_path *get_input_path(struct hda_codec *codec, int adc_idx, int imux_idx) in get_input_path()
3272 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_info() local
3280 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_get() local
3292 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_put() local
3318 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_put_caller() local
3395 static int parse_capvol_in_path(struct hda_codec *codec, struct nid_path *path) in parse_capvol_in_path()
3434 static bool is_inv_dmic_pin(struct hda_codec *codec, hda_nid_t nid) in is_inv_dmic_pin()
3458 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_single_sw_put() local
3472 static int add_single_cap_ctl(struct hda_codec *codec, const char *label, in add_single_cap_ctl()
3518 static int create_single_cap_vol_ctl(struct hda_codec *codec, int idx, in create_single_cap_vol_ctl()
3533 static int create_bind_cap_vol_ctl(struct hda_codec *codec, int idx, in create_bind_cap_vol_ctl()
3559 static unsigned int get_first_cap_ctl(struct hda_codec *codec, int idx, int type) in get_first_cap_ctl()
3580 static int create_multi_cap_vol_ctl(struct hda_codec *codec) in create_multi_cap_vol_ctl()
3609 static int create_capture_mixers(struct hda_codec *codec) in create_capture_mixers()
3682 static bool check_boost_vol(struct hda_codec *codec, hda_nid_t nid, in check_boost_vol()
3700 static unsigned int look_for_boost_amp(struct hda_codec *codec, in look_for_boost_amp()
3725 static int parse_mic_boost(struct hda_codec *codec) in parse_mic_boost()
3772 static void parse_digital(struct hda_codec *codec) in parse_digital()
3835 static int mux_select(struct hda_codec *codec, unsigned int adc_idx, in mux_select()
3883 static bool detect_jacks(struct hda_codec *codec, int num_pins, hda_nid_t *pins) in detect_jacks()
3902 static void do_automute(struct hda_codec *codec, int num_pins, hda_nid_t *pins, in do_automute()
3955 void snd_hda_gen_update_outputs(struct hda_codec *codec) in snd_hda_gen_update_outputs()
4002 static void call_update_outputs(struct hda_codec *codec) in call_update_outputs()
4016 void snd_hda_gen_hp_automute(struct hda_codec *codec, in snd_hda_gen_hp_automute()
4037 void snd_hda_gen_line_automute(struct hda_codec *codec, in snd_hda_gen_line_automute()
4058 void snd_hda_gen_mic_autoswitch(struct hda_codec *codec, in snd_hda_gen_mic_autoswitch()
4082 static void call_hp_automute(struct hda_codec *codec, in call_hp_automute()
4092 static void call_line_automute(struct hda_codec *codec, in call_line_automute()
4102 static void call_mic_autoswitch(struct hda_codec *codec, in call_mic_autoswitch()
4113 static void update_automute_all(struct hda_codec *codec) in update_automute_all()
4126 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_info() local
4140 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_get() local
4155 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_put() local
4201 static int add_automute_mode_enum(struct hda_codec *codec) in add_automute_mode_enum()
4214 static int check_auto_mute_availability(struct hda_codec *codec) in check_auto_mute_availability()
4287 static bool auto_mic_check_imux(struct hda_codec *codec) in auto_mic_check_imux()
4321 static int check_auto_mic_availability(struct hda_codec *codec) in check_auto_mic_availability()
4390 unsigned int snd_hda_gen_path_power_filter(struct hda_codec *codec, in snd_hda_gen_path_power_filter()
4405 static void mute_all_mixer_nid(struct hda_codec *codec, hda_nid_t mix) in mute_all_mixer_nid()
4429 int snd_hda_gen_parse_auto_config(struct hda_codec *codec, in snd_hda_gen_parse_auto_config()
4610 int snd_hda_gen_build_controls(struct hda_codec *codec) in snd_hda_gen_build_controls()
4682 struct hda_codec *codec, in call_pcm_playback_hook()
4692 struct hda_codec *codec, in call_pcm_capture_hook()
4705 struct hda_codec *codec, in playback_pcm_open()
4725 struct hda_codec *codec, in playback_pcm_prepare()
4742 struct hda_codec *codec, in playback_pcm_cleanup()
4756 struct hda_codec *codec, in playback_pcm_close()
4769 struct hda_codec *codec, in capture_pcm_open()
4777 struct hda_codec *codec, in capture_pcm_prepare()
4789 struct hda_codec *codec, in capture_pcm_cleanup()
4799 struct hda_codec *codec, in capture_pcm_close()
4807 struct hda_codec *codec, in alt_playback_pcm_open()
4825 struct hda_codec *codec, in alt_playback_pcm_close()
4838 struct hda_codec *codec, in alt_playback_pcm_prepare()
4850 struct hda_codec *codec, in alt_playback_pcm_cleanup()
4863 struct hda_codec *codec, in dig_playback_pcm_open()
4871 struct hda_codec *codec, in dig_playback_pcm_prepare()
4882 struct hda_codec *codec, in dig_playback_pcm_cleanup()
4890 struct hda_codec *codec, in dig_playback_pcm_close()
4904 struct hda_codec *codec, in alt_capture_pcm_prepare()
4919 struct hda_codec *codec, in alt_capture_pcm_cleanup()
5015 static bool dyn_adc_pcm_resetup(struct hda_codec *codec, int cur) in dyn_adc_pcm_resetup()
5034 struct hda_codec *codec, in dyn_adc_capture_pcm_prepare()
5048 struct hda_codec *codec, in dyn_adc_capture_pcm_cleanup()
5088 int snd_hda_gen_build_pcms(struct hda_codec *codec) in snd_hda_gen_build_pcms()
5215 static void set_output_and_unmute(struct hda_codec *codec, int path_idx) in set_output_and_unmute()
5231 static void init_multi_out(struct hda_codec *codec) in init_multi_out()
5241 static void __init_extra_out(struct hda_codec *codec, int num_outs, int *paths) in __init_extra_out()
5250 static void init_extra_out(struct hda_codec *codec) in init_extra_out()
5262 static void init_multi_io(struct hda_codec *codec) in init_multi_io()
5281 static void init_aamix_paths(struct hda_codec *codec) in init_aamix_paths()
5301 static void init_analog_input(struct hda_codec *codec) in init_analog_input()
5321 static void init_input_src(struct hda_codec *codec) in init_input_src()
5352 static void init_digital(struct hda_codec *codec) in init_digital()
5370 static void clear_unsol_on_unused_pins(struct hda_codec *codec) in clear_unsol_on_unused_pins()
5388 int snd_hda_gen_init(struct hda_codec *codec) in snd_hda_gen_init()
5426 void snd_hda_gen_free(struct hda_codec *codec) in snd_hda_gen_free()
5440 int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) in snd_hda_gen_check_power_status()
5464 int snd_hda_parse_generic_codec(struct hda_codec *codec) in snd_hda_parse_generic_codec()