Lines Matching defs:codec
52 #define is_haswell(codec) ((codec)->core.vendor_id == 0x80862807) argument
53 #define is_broadwell(codec) ((codec)->core.vendor_id == 0x80862808) argument
54 #define is_skylake(codec) ((codec)->core.vendor_id == 0x80862809) argument
55 #define is_broxton(codec) ((codec)->core.vendor_id == 0x8086280a) argument
56 #define is_kabylake(codec) ((codec)->core.vendor_id == 0x8086280b) argument
57 #define is_geminilake(codec) (((codec)->core.vendor_id == 0x8086280d) || \ argument
59 #define is_cannonlake(codec) ((codec)->core.vendor_id == 0x8086280c) argument
60 #define is_haswell_plus(codec) (is_haswell(codec) || is_broadwell(codec) \ argument
64 #define is_valleyview(codec) ((codec)->core.vendor_id == 0x80862882) argument
65 #define is_cherryview(codec) ((codec)->core.vendor_id == 0x80862883) argument
66 #define is_valleyview_plus(codec) (is_valleyview(codec) || is_cherryview(codec)) argument
91 struct hda_codec *codec; member
187 static inline bool codec_has_acomp(struct hda_codec *codec) in codec_has_acomp()
193 #define codec_has_acomp(codec) false argument
241 static int pin_id_to_pin_index(struct hda_codec *codec, in pin_id_to_pin_index()
266 static int hinfo_to_pcm_index(struct hda_codec *codec, in hinfo_to_pcm_index()
280 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index()
312 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index()
328 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_info() local
355 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_get() local
399 static int hdmi_create_eld_ctl(struct hda_codec *codec, int pcm_idx, in hdmi_create_eld_ctl()
424 static void hdmi_get_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_get_dip_index()
437 static void hdmi_set_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_set_dip_index()
447 static void hdmi_write_dip_byte(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_write_dip_byte()
453 static void hdmi_init_pin(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_init_pin()
504 struct hda_codec *codec = per_pin->codec; in eld_proc_new() local
546 static void hdmi_start_infoframe_trans(struct hda_codec *codec, in hdmi_start_infoframe_trans()
557 static void hdmi_stop_infoframe_trans(struct hda_codec *codec, in hdmi_stop_infoframe_trans()
565 static void hdmi_debug_dip_size(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_debug_dip_size()
582 static void hdmi_clear_dip_buffers(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_clear_dip_buffers()
625 static void hdmi_fill_audio_infoframe(struct hda_codec *codec, in hdmi_fill_audio_infoframe()
639 static bool hdmi_infoframe_uptodate(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_infoframe_uptodate()
660 static void hdmi_pin_setup_infoframe(struct hda_codec *codec, in hdmi_pin_setup_infoframe()
709 static void hdmi_setup_audio_infoframe(struct hda_codec *codec, in hdmi_setup_audio_infoframe()
761 static void check_presence_and_report(struct hda_codec *codec, hda_nid_t nid, in check_presence_and_report()
775 static void jack_callback(struct hda_codec *codec, in jack_callback()
782 static void hdmi_intrinsic_event(struct hda_codec *codec, unsigned int res) in hdmi_intrinsic_event()
808 static void hdmi_non_intrinsic_event(struct hda_codec *codec, unsigned int res) in hdmi_non_intrinsic_event()
831 static void hdmi_unsol_event(struct hda_codec *codec, unsigned int res) in hdmi_unsol_event()
847 static void haswell_verify_D0(struct hda_codec *codec, in haswell_verify_D0()
876 static int hdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_pin_hbr_setup()
910 static int hdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in hdmi_setup_stream()
953 static int hdmi_choose_cvt(struct hda_codec *codec, in hdmi_choose_cvt()
1000 static void intel_verify_pin_cvt_connect(struct hda_codec *codec, in intel_verify_pin_cvt_connect()
1038 static void intel_not_share_assigned_cvt(struct hda_codec *codec, in intel_not_share_assigned_cvt()
1114 static void intel_not_share_assigned_cvt_nid(struct hda_codec *codec, in intel_not_share_assigned_cvt_nid()
1131 static void pin_cvt_fixup(struct hda_codec *codec, in pin_cvt_fixup()
1145 struct hda_codec *codec, in hdmi_pcm_open_no_pin()
1193 struct hda_codec *codec, in hdmi_pcm_open()
1286 static int hdmi_read_pin_conn(struct hda_codec *codec, int pin_idx) in hdmi_read_pin_conn()
1377 struct hda_codec *codec = per_pin->codec; in hdmi_pcm_setup_pin() local
1434 static void update_eld(struct hda_codec *codec, in update_eld()
1501 struct hda_codec *codec = per_pin->codec; in hdmi_present_sense_via_verbs() local
1558 static struct snd_jack *pin_idx_to_jack(struct hda_codec *codec, in pin_idx_to_jack()
1587 static void sync_eld_via_acomp(struct hda_codec *codec, in sync_eld_via_acomp()
1632 struct hda_codec *codec = per_pin->codec; in hdmi_present_sense() local
1661 struct hda_codec *codec = per_pin->codec; in hdmi_repoll_eld() local
1676 static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_add_pin()
1762 static int hdmi_add_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in hdmi_add_cvt()
1798 static int hdmi_parse_codec(struct hda_codec *codec) in hdmi_parse_codec()
1834 static bool check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) in check_non_pcm_per_cvt()
1856 struct hda_codec *codec, in generic_hdmi_playback_pcm_prepare()
1931 struct hda_codec *codec, in generic_hdmi_playback_pcm_cleanup()
1939 struct hda_codec *codec, in hdmi_pcm_close()
2006 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in hdmi_get_spk_alloc() local
2019 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in hdmi_get_chmap() local
2033 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in hdmi_set_chmap() local
2049 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in is_hdmi_pcm_attached() local
2056 static int generic_hdmi_build_pcms(struct hda_codec *codec) in generic_hdmi_build_pcms()
2099 static int add_hdmi_jack_kctl(struct hda_codec *codec, in add_hdmi_jack_kctl()
2118 static int generic_hdmi_build_jack(struct hda_codec *codec, int pcm_idx) in generic_hdmi_build_jack()
2158 static int generic_hdmi_build_controls(struct hda_codec *codec) in generic_hdmi_build_controls()
2224 static int generic_hdmi_init_per_pins(struct hda_codec *codec) in generic_hdmi_init_per_pins()
2240 static int generic_hdmi_init(struct hda_codec *codec) in generic_hdmi_init()
2272 static void generic_spec_free(struct hda_codec *codec) in generic_spec_free()
2284 static void generic_hdmi_free(struct hda_codec *codec) in generic_hdmi_free()
2312 static int generic_hdmi_resume(struct hda_codec *codec) in generic_hdmi_resume()
2347 static int alloc_generic_hdmi(struct hda_codec *codec) in alloc_generic_hdmi()
2374 static int patch_generic_hdmi(struct hda_codec *codec) in patch_generic_hdmi()
2396 static void intel_haswell_fixup_connect_list(struct hda_codec *codec, in intel_haswell_fixup_connect_list()
2420 static void intel_haswell_enable_all_pins(struct hda_codec *codec, in intel_haswell_enable_all_pins()
2441 static void intel_haswell_fixup_enable_dp12(struct hda_codec *codec) in intel_haswell_fixup_enable_dp12()
2461 static void haswell_set_power_state(struct hda_codec *codec, hda_nid_t fg, in haswell_set_power_state()
2484 static int intel_base_nid(struct hda_codec *codec) in intel_base_nid()
2507 struct hda_codec *codec = audio_ptr; in intel_pin_eld_notify() local
2531 static void register_i915_notifier(struct hda_codec *codec) in register_i915_notifier()
2549 static int i915_hsw_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in i915_hsw_setup_stream()
2557 static void i915_pin_cvt_fixup(struct hda_codec *codec, in i915_pin_cvt_fixup()
2573 static int alloc_intel_hdmi(struct hda_codec *codec) in alloc_intel_hdmi()
2587 static int parse_intel_hdmi(struct hda_codec *codec) in parse_intel_hdmi()
2603 static int intel_hsw_common_init(struct hda_codec *codec, hda_nid_t vendor_nid) in intel_hsw_common_init()
2635 static int patch_i915_hsw_hdmi(struct hda_codec *codec) in patch_i915_hsw_hdmi()
2640 static int patch_i915_glk_hdmi(struct hda_codec *codec) in patch_i915_glk_hdmi()
2646 static int patch_i915_byt_hdmi(struct hda_codec *codec) in patch_i915_byt_hdmi()
2670 static int patch_i915_cpt_hdmi(struct hda_codec *codec) in patch_i915_cpt_hdmi()
2684 static int simple_playback_build_pcms(struct hda_codec *codec) in simple_playback_build_pcms()
2711 static void simple_hdmi_unsol_event(struct hda_codec *codec, in simple_hdmi_unsol_event()
2723 static int simple_playback_build_controls(struct hda_codec *codec) in simple_playback_build_controls()
2738 static int simple_playback_init(struct hda_codec *codec) in simple_playback_init()
2754 static void simple_playback_free(struct hda_codec *codec) in simple_playback_free()
2815 static int nvhdmi_7x_init_2ch(struct hda_codec *codec) in nvhdmi_7x_init_2ch()
2821 static int nvhdmi_7x_init_8ch(struct hda_codec *codec) in nvhdmi_7x_init_8ch()
2848 struct hda_codec *codec, in simple_playback_pcm_open()
2881 struct hda_codec *codec, in simple_playback_pcm_close()
2889 struct hda_codec *codec, in simple_playback_pcm_prepare()
2918 static int patch_simple_hdmi(struct hda_codec *codec, in patch_simple_hdmi()
2952 static void nvhdmi_8ch_7x_set_info_frame_parameters(struct hda_codec *codec, in nvhdmi_8ch_7x_set_info_frame_parameters()
2986 struct hda_codec *codec, in nvhdmi_8ch_7x_pcm_close()
3011 struct hda_codec *codec, in nvhdmi_8ch_7x_pcm_prepare()
3126 static int patch_nvhdmi_2ch(struct hda_codec *codec) in patch_nvhdmi_2ch()
3143 static int nvhdmi_7x_8ch_build_pcms(struct hda_codec *codec) in nvhdmi_7x_8ch_build_pcms()
3154 static int nvhdmi_7x_8ch_build_controls(struct hda_codec *codec) in nvhdmi_7x_8ch_build_controls()
3185 static int patch_nvhdmi_8ch_7x(struct hda_codec *codec) in patch_nvhdmi_8ch_7x()
3233 static int patch_nvhdmi(struct hda_codec *codec) in patch_nvhdmi()
3294 static void tegra_hdmi_set_format(struct hda_codec *codec, unsigned int format) in tegra_hdmi_set_format()
3336 struct hda_codec *codec, in tegra_hdmi_pcm_prepare()
3355 struct hda_codec *codec, in tegra_hdmi_pcm_cleanup()
3364 static struct hda_pcm *hda_find_pcm_by_type(struct hda_codec *codec, int type) in hda_find_pcm_by_type()
3379 static int tegra_hdmi_build_pcms(struct hda_codec *codec) in tegra_hdmi_build_pcms()
3404 static int patch_tegra_hdmi(struct hda_codec *codec) in patch_tegra_hdmi()
3421 #define is_amdhdmi_rev3_or_later(codec) \ argument
3424 #define has_amd_full_remap_support(codec) is_amdhdmi_rev3_or_later(codec) argument
3464 static int atihdmi_pin_get_eld(struct hda_codec *codec, hda_nid_t nid, in atihdmi_pin_get_eld()
3472 static void atihdmi_pin_setup_infoframe(struct hda_codec *codec, hda_nid_t pin_nid, int ca, in atihdmi_pin_setup_infoframe()
3546 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in atihdmi_pin_set_slot_channel() local
3582 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in atihdmi_pin_get_slot_channel() local
3664 static int atihdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, in atihdmi_pin_hbr_setup()
3693 static int atihdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in atihdmi_setup_stream()
3710 static int atihdmi_init(struct hda_codec *codec) in atihdmi_init()
3736 static int patch_atihdmi(struct hda_codec *codec) in patch_atihdmi()
3791 static int patch_via_hdmi(struct hda_codec *codec) in patch_via_hdmi()