Lines Matching defs:codec
48 #define is_haswell(codec) ((codec)->core.vendor_id == 0x80862807) argument
49 #define is_broadwell(codec) ((codec)->core.vendor_id == 0x80862808) argument
50 #define is_skylake(codec) ((codec)->core.vendor_id == 0x80862809) argument
51 #define is_broxton(codec) ((codec)->core.vendor_id == 0x8086280a) argument
52 #define is_haswell_plus(codec) (is_haswell(codec) || is_broadwell(codec) \ argument
55 #define is_valleyview(codec) ((codec)->core.vendor_id == 0x80862882) argument
56 #define is_cherryview(codec) ((codec)->core.vendor_id == 0x80862883) argument
57 #define is_valleyview_plus(codec) (is_valleyview(codec) || is_cherryview(codec)) argument
79 struct hda_codec *codec; member
360 static int pin_nid_to_pin_index(struct hda_codec *codec, hda_nid_t pin_nid) in pin_nid_to_pin_index()
373 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index()
387 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index()
403 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_info() local
425 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_get() local
461 static int hdmi_create_eld_ctl(struct hda_codec *codec, int pin_idx, in hdmi_create_eld_ctl()
483 static void hdmi_get_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_get_dip_index()
496 static void hdmi_set_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_set_dip_index()
506 static void hdmi_write_dip_byte(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_write_dip_byte()
512 static void hdmi_init_pin(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_init_pin()
535 static int hdmi_get_channel_count(struct hda_codec *codec, hda_nid_t cvt_nid) in hdmi_get_channel_count()
541 static void hdmi_set_channel_count(struct hda_codec *codec, in hdmi_set_channel_count()
577 struct hda_codec *codec = per_pin->codec; in eld_proc_new() local
655 static int hdmi_channel_allocation(struct hda_codec *codec, in hdmi_channel_allocation()
708 static void hdmi_debug_channel_mapping(struct hda_codec *codec, in hdmi_debug_channel_mapping()
724 static void hdmi_std_setup_channel_mapping(struct hda_codec *codec, in hdmi_std_setup_channel_mapping()
869 static int hdmi_manual_setup_channel_mapping(struct hda_codec *codec, in hdmi_manual_setup_channel_mapping()
913 static void hdmi_setup_channel_mapping(struct hda_codec *codec, in hdmi_setup_channel_mapping()
929 static int hdmi_pin_set_slot_channel(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_pin_set_slot_channel()
937 static int hdmi_pin_get_slot_channel(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_pin_get_slot_channel()
952 static void hdmi_start_infoframe_trans(struct hda_codec *codec, in hdmi_start_infoframe_trans()
963 static void hdmi_stop_infoframe_trans(struct hda_codec *codec, in hdmi_stop_infoframe_trans()
971 static void hdmi_debug_dip_size(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_debug_dip_size()
988 static void hdmi_clear_dip_buffers(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_clear_dip_buffers()
1031 static void hdmi_fill_audio_infoframe(struct hda_codec *codec, in hdmi_fill_audio_infoframe()
1045 static bool hdmi_infoframe_uptodate(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_infoframe_uptodate()
1066 static void hdmi_pin_setup_infoframe(struct hda_codec *codec, in hdmi_pin_setup_infoframe()
1115 static void hdmi_setup_audio_infoframe(struct hda_codec *codec, in hdmi_setup_audio_infoframe()
1168 static void check_presence_and_report(struct hda_codec *codec, hda_nid_t nid) in check_presence_and_report()
1179 static void jack_callback(struct hda_codec *codec, in jack_callback()
1185 static void hdmi_intrinsic_event(struct hda_codec *codec, unsigned int res) in hdmi_intrinsic_event()
1204 static void hdmi_non_intrinsic_event(struct hda_codec *codec, unsigned int res) in hdmi_non_intrinsic_event()
1227 static void hdmi_unsol_event(struct hda_codec *codec, unsigned int res) in hdmi_unsol_event()
1243 static void haswell_verify_D0(struct hda_codec *codec, in haswell_verify_D0()
1272 static int hdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_pin_hbr_setup()
1306 static int hdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in hdmi_setup_stream()
1326 static int hdmi_choose_cvt(struct hda_codec *codec, in hdmi_choose_cvt()
1368 static void intel_verify_pin_cvt_connect(struct hda_codec *codec, in intel_verify_pin_cvt_connect()
1392 static void intel_not_share_assigned_cvt(struct hda_codec *codec, in intel_not_share_assigned_cvt()
1438 struct hda_codec *codec, in hdmi_pcm_open()
1509 static int hdmi_read_pin_conn(struct hda_codec *codec, int pin_idx) in hdmi_read_pin_conn()
1532 static void update_eld(struct hda_codec *codec, in update_eld()
1583 struct hda_codec *codec = per_pin->codec; in hdmi_present_sense() local
1658 static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_add_pin()
1694 static int hdmi_add_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in hdmi_add_cvt()
1730 static int hdmi_parse_codec(struct hda_codec *codec) in hdmi_parse_codec()
1766 static bool check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in check_non_pcm_per_cvt()
1784 struct hda_codec *codec, in generic_hdmi_playback_pcm_prepare()
1830 struct hda_codec *codec, in generic_hdmi_playback_pcm_cleanup()
1838 struct hda_codec *codec, in hdmi_pcm_close()
1898 struct hda_codec *codec = info->private_data; in hdmi_chmap_ctl_info() local
1939 struct hda_codec *codec = info->private_data; in hdmi_chmap_ctl_tlv() local
1988 struct hda_codec *codec = info->private_data; in hdmi_chmap_ctl_get() local
2003 struct hda_codec *codec = info->private_data; in hdmi_chmap_ctl_put() local
2049 static int generic_hdmi_build_pcms(struct hda_codec *codec) in generic_hdmi_build_pcms()
2076 static int generic_hdmi_build_jack(struct hda_codec *codec, int pin_idx) in generic_hdmi_build_jack()
2092 static int generic_hdmi_build_controls(struct hda_codec *codec) in generic_hdmi_build_controls()
2152 static int generic_hdmi_init_per_pins(struct hda_codec *codec) in generic_hdmi_init_per_pins()
2168 static int generic_hdmi_init(struct hda_codec *codec) in generic_hdmi_init()
2196 static void generic_hdmi_free(struct hda_codec *codec) in generic_hdmi_free()
2213 static int generic_hdmi_resume(struct hda_codec *codec) in generic_hdmi_resume()
2252 static void intel_haswell_fixup_connect_list(struct hda_codec *codec, in intel_haswell_fixup_connect_list()
2275 static void intel_haswell_enable_all_pins(struct hda_codec *codec, in intel_haswell_enable_all_pins()
2295 static void intel_haswell_fixup_enable_dp12(struct hda_codec *codec) in intel_haswell_fixup_enable_dp12()
2314 static void haswell_set_power_state(struct hda_codec *codec, hda_nid_t fg, in haswell_set_power_state()
2326 static int patch_generic_hdmi(struct hda_codec *codec) in patch_generic_hdmi()
2368 static int simple_playback_build_pcms(struct hda_codec *codec) in simple_playback_build_pcms()
2395 static void simple_hdmi_unsol_event(struct hda_codec *codec, in simple_hdmi_unsol_event()
2407 static int simple_playback_build_controls(struct hda_codec *codec) in simple_playback_build_controls()
2422 static int simple_playback_init(struct hda_codec *codec) in simple_playback_init()
2438 static void simple_playback_free(struct hda_codec *codec) in simple_playback_free()
2499 static int nvhdmi_7x_init_2ch(struct hda_codec *codec) in nvhdmi_7x_init_2ch()
2505 static int nvhdmi_7x_init_8ch(struct hda_codec *codec) in nvhdmi_7x_init_8ch()
2532 struct hda_codec *codec, in simple_playback_pcm_open()
2565 struct hda_codec *codec, in simple_playback_pcm_close()
2573 struct hda_codec *codec, in simple_playback_pcm_prepare()
2602 static int patch_simple_hdmi(struct hda_codec *codec, in patch_simple_hdmi()
2636 static void nvhdmi_8ch_7x_set_info_frame_parameters(struct hda_codec *codec, in nvhdmi_8ch_7x_set_info_frame_parameters()
2670 struct hda_codec *codec, in nvhdmi_8ch_7x_pcm_close()
2695 struct hda_codec *codec, in nvhdmi_8ch_7x_pcm_prepare()
2810 static int patch_nvhdmi_2ch(struct hda_codec *codec) in patch_nvhdmi_2ch()
2827 static int nvhdmi_7x_8ch_build_pcms(struct hda_codec *codec) in nvhdmi_7x_8ch_build_pcms()
2838 static int nvhdmi_7x_8ch_build_controls(struct hda_codec *codec) in nvhdmi_7x_8ch_build_controls()
2869 static int patch_nvhdmi_8ch_7x(struct hda_codec *codec) in patch_nvhdmi_8ch_7x()
2911 static int patch_nvhdmi(struct hda_codec *codec) in patch_nvhdmi()
2934 #define is_amdhdmi_rev3_or_later(codec) \ argument
2937 #define has_amd_full_remap_support(codec) is_amdhdmi_rev3_or_later(codec) argument
2977 static int atihdmi_pin_get_eld(struct hda_codec *codec, hda_nid_t nid, in atihdmi_pin_get_eld()
2985 static void atihdmi_pin_setup_infoframe(struct hda_codec *codec, hda_nid_t pin_nid, int ca, in atihdmi_pin_setup_infoframe()
3055 static int atihdmi_pin_set_slot_channel(struct hda_codec *codec, hda_nid_t pin_nid, in atihdmi_pin_set_slot_channel()
3090 static int atihdmi_pin_get_slot_channel(struct hda_codec *codec, hda_nid_t pin_nid, in atihdmi_pin_get_slot_channel()
3171 static int atihdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, in atihdmi_pin_hbr_setup()
3200 static int atihdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in atihdmi_setup_stream()
3217 static int atihdmi_init(struct hda_codec *codec) in atihdmi_init()
3243 static int patch_atihdmi(struct hda_codec *codec) in patch_atihdmi()
3291 static int patch_via_hdmi(struct hda_codec *codec) in patch_via_hdmi()