Lines Matching defs:codec
50 #define is_haswell(codec) ((codec)->core.vendor_id == 0x80862807) argument
51 #define is_broadwell(codec) ((codec)->core.vendor_id == 0x80862808) argument
52 #define is_skylake(codec) ((codec)->core.vendor_id == 0x80862809) argument
53 #define is_broxton(codec) ((codec)->core.vendor_id == 0x8086280a) argument
54 #define is_haswell_plus(codec) (is_haswell(codec) || is_broadwell(codec) \ argument
57 #define is_valleyview(codec) ((codec)->core.vendor_id == 0x80862882) argument
58 #define is_cherryview(codec) ((codec)->core.vendor_id == 0x80862883) argument
59 #define is_valleyview_plus(codec) (is_valleyview(codec) || is_cherryview(codec)) argument
81 struct hda_codec *codec; member
365 static int pin_nid_to_pin_index(struct hda_codec *codec, hda_nid_t pin_nid) in pin_nid_to_pin_index()
378 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index()
392 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index()
408 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_info() local
430 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_get() local
466 static int hdmi_create_eld_ctl(struct hda_codec *codec, int pin_idx, in hdmi_create_eld_ctl()
488 static void hdmi_get_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_get_dip_index()
501 static void hdmi_set_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_set_dip_index()
511 static void hdmi_write_dip_byte(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_write_dip_byte()
517 static void hdmi_init_pin(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_init_pin()
540 static int hdmi_get_channel_count(struct hda_codec *codec, hda_nid_t cvt_nid) in hdmi_get_channel_count()
546 static void hdmi_set_channel_count(struct hda_codec *codec, in hdmi_set_channel_count()
582 struct hda_codec *codec = per_pin->codec; in eld_proc_new() local
660 static int hdmi_channel_allocation(struct hda_codec *codec, in hdmi_channel_allocation()
713 static void hdmi_debug_channel_mapping(struct hda_codec *codec, in hdmi_debug_channel_mapping()
729 static void hdmi_std_setup_channel_mapping(struct hda_codec *codec, in hdmi_std_setup_channel_mapping()
874 static int hdmi_manual_setup_channel_mapping(struct hda_codec *codec, in hdmi_manual_setup_channel_mapping()
918 static void hdmi_setup_channel_mapping(struct hda_codec *codec, in hdmi_setup_channel_mapping()
934 static int hdmi_pin_set_slot_channel(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_pin_set_slot_channel()
942 static int hdmi_pin_get_slot_channel(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_pin_get_slot_channel()
957 static void hdmi_start_infoframe_trans(struct hda_codec *codec, in hdmi_start_infoframe_trans()
968 static void hdmi_stop_infoframe_trans(struct hda_codec *codec, in hdmi_stop_infoframe_trans()
976 static void hdmi_debug_dip_size(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_debug_dip_size()
993 static void hdmi_clear_dip_buffers(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_clear_dip_buffers()
1036 static void hdmi_fill_audio_infoframe(struct hda_codec *codec, in hdmi_fill_audio_infoframe()
1050 static bool hdmi_infoframe_uptodate(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_infoframe_uptodate()
1071 static void hdmi_pin_setup_infoframe(struct hda_codec *codec, in hdmi_pin_setup_infoframe()
1120 static void hdmi_setup_audio_infoframe(struct hda_codec *codec, in hdmi_setup_audio_infoframe()
1173 static void check_presence_and_report(struct hda_codec *codec, hda_nid_t nid) in check_presence_and_report()
1184 static void jack_callback(struct hda_codec *codec, in jack_callback()
1190 static void hdmi_intrinsic_event(struct hda_codec *codec, unsigned int res) in hdmi_intrinsic_event()
1209 static void hdmi_non_intrinsic_event(struct hda_codec *codec, unsigned int res) in hdmi_non_intrinsic_event()
1232 static void hdmi_unsol_event(struct hda_codec *codec, unsigned int res) in hdmi_unsol_event()
1248 static void haswell_verify_D0(struct hda_codec *codec, in haswell_verify_D0()
1277 static int hdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_pin_hbr_setup()
1311 static int hdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in hdmi_setup_stream()
1331 static int hdmi_choose_cvt(struct hda_codec *codec, in hdmi_choose_cvt()
1373 static void intel_verify_pin_cvt_connect(struct hda_codec *codec, in intel_verify_pin_cvt_connect()
1397 static void intel_not_share_assigned_cvt(struct hda_codec *codec, in intel_not_share_assigned_cvt()
1443 struct hda_codec *codec, in hdmi_pcm_open()
1514 static int hdmi_read_pin_conn(struct hda_codec *codec, int pin_idx) in hdmi_read_pin_conn()
1537 struct hda_codec *codec = per_pin->codec; in hdmi_present_sense() local
1660 static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_add_pin()
1696 static int hdmi_add_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in hdmi_add_cvt()
1732 static int hdmi_parse_codec(struct hda_codec *codec) in hdmi_parse_codec()
1768 static bool check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in check_non_pcm_per_cvt()
1796 struct hda_codec *codec, in generic_hdmi_playback_pcm_prepare()
1851 struct hda_codec *codec, in generic_hdmi_playback_pcm_cleanup()
1859 struct hda_codec *codec, in hdmi_pcm_close()
1919 struct hda_codec *codec = info->private_data; in hdmi_chmap_ctl_info() local
1960 struct hda_codec *codec = info->private_data; in hdmi_chmap_ctl_tlv() local
2009 struct hda_codec *codec = info->private_data; in hdmi_chmap_ctl_get() local
2024 struct hda_codec *codec = info->private_data; in hdmi_chmap_ctl_put() local
2070 static int generic_hdmi_build_pcms(struct hda_codec *codec) in generic_hdmi_build_pcms()
2095 static int generic_hdmi_build_jack(struct hda_codec *codec, int pin_idx) in generic_hdmi_build_jack()
2114 static int generic_hdmi_build_controls(struct hda_codec *codec) in generic_hdmi_build_controls()
2174 static int generic_hdmi_init_per_pins(struct hda_codec *codec) in generic_hdmi_init_per_pins()
2190 static int generic_hdmi_init(struct hda_codec *codec) in generic_hdmi_init()
2218 static void generic_hdmi_free(struct hda_codec *codec) in generic_hdmi_free()
2238 static int generic_hdmi_resume(struct hda_codec *codec) in generic_hdmi_resume()
2277 static void intel_haswell_fixup_connect_list(struct hda_codec *codec, in intel_haswell_fixup_connect_list()
2300 static void intel_haswell_enable_all_pins(struct hda_codec *codec, in intel_haswell_enable_all_pins()
2320 static void intel_haswell_fixup_enable_dp12(struct hda_codec *codec) in intel_haswell_fixup_enable_dp12()
2339 static void haswell_set_power_state(struct hda_codec *codec, hda_nid_t fg, in haswell_set_power_state()
2353 struct hda_codec *codec = audio_ptr; in intel_pin_eld_notify() local
2369 static int patch_generic_hdmi(struct hda_codec *codec) in patch_generic_hdmi()
2429 static int simple_playback_build_pcms(struct hda_codec *codec) in simple_playback_build_pcms()
2456 static void simple_hdmi_unsol_event(struct hda_codec *codec, in simple_hdmi_unsol_event()
2468 static int simple_playback_build_controls(struct hda_codec *codec) in simple_playback_build_controls()
2483 static int simple_playback_init(struct hda_codec *codec) in simple_playback_init()
2499 static void simple_playback_free(struct hda_codec *codec) in simple_playback_free()
2560 static int nvhdmi_7x_init_2ch(struct hda_codec *codec) in nvhdmi_7x_init_2ch()
2566 static int nvhdmi_7x_init_8ch(struct hda_codec *codec) in nvhdmi_7x_init_8ch()
2593 struct hda_codec *codec, in simple_playback_pcm_open()
2626 struct hda_codec *codec, in simple_playback_pcm_close()
2634 struct hda_codec *codec, in simple_playback_pcm_prepare()
2663 static int patch_simple_hdmi(struct hda_codec *codec, in patch_simple_hdmi()
2697 static void nvhdmi_8ch_7x_set_info_frame_parameters(struct hda_codec *codec, in nvhdmi_8ch_7x_set_info_frame_parameters()
2731 struct hda_codec *codec, in nvhdmi_8ch_7x_pcm_close()
2756 struct hda_codec *codec, in nvhdmi_8ch_7x_pcm_prepare()
2871 static int patch_nvhdmi_2ch(struct hda_codec *codec) in patch_nvhdmi_2ch()
2888 static int nvhdmi_7x_8ch_build_pcms(struct hda_codec *codec) in nvhdmi_7x_8ch_build_pcms()
2899 static int nvhdmi_7x_8ch_build_controls(struct hda_codec *codec) in nvhdmi_7x_8ch_build_controls()
2930 static int patch_nvhdmi_8ch_7x(struct hda_codec *codec) in patch_nvhdmi_8ch_7x()
2972 static int patch_nvhdmi(struct hda_codec *codec) in patch_nvhdmi()
3033 static void tegra_hdmi_set_format(struct hda_codec *codec, unsigned int format) in tegra_hdmi_set_format()
3075 struct hda_codec *codec, in tegra_hdmi_pcm_prepare()
3094 struct hda_codec *codec, in tegra_hdmi_pcm_cleanup()
3103 static struct hda_pcm *hda_find_pcm_by_type(struct hda_codec *codec, int type) in hda_find_pcm_by_type()
3118 static int tegra_hdmi_build_pcms(struct hda_codec *codec) in tegra_hdmi_build_pcms()
3143 static int patch_tegra_hdmi(struct hda_codec *codec) in patch_tegra_hdmi()
3160 #define is_amdhdmi_rev3_or_later(codec) \ argument
3163 #define has_amd_full_remap_support(codec) is_amdhdmi_rev3_or_later(codec) argument
3203 static int atihdmi_pin_get_eld(struct hda_codec *codec, hda_nid_t nid, in atihdmi_pin_get_eld()
3211 static void atihdmi_pin_setup_infoframe(struct hda_codec *codec, hda_nid_t pin_nid, int ca, in atihdmi_pin_setup_infoframe()
3281 static int atihdmi_pin_set_slot_channel(struct hda_codec *codec, hda_nid_t pin_nid, in atihdmi_pin_set_slot_channel()
3316 static int atihdmi_pin_get_slot_channel(struct hda_codec *codec, hda_nid_t pin_nid, in atihdmi_pin_get_slot_channel()
3397 static int atihdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, in atihdmi_pin_hbr_setup()
3426 static int atihdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in atihdmi_setup_stream()
3443 static int atihdmi_init(struct hda_codec *codec) in atihdmi_init()
3469 static int patch_atihdmi(struct hda_codec *codec) in patch_atihdmi()
3517 static int patch_via_hdmi(struct hda_codec *codec) in patch_via_hdmi()