]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extract intel_hdmi_has_audio()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 4 Sep 2020 11:53:51 +0000 (14:53 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 17 Sep 2020 15:38:26 +0000 (18:38 +0300)
commit04e18e01b3c35dd4f598db4feccd51da643cdf1f
tree71a2fc29c41cd2e7168ae413cdd61c24f4033a61
parent4b3bb839873f9e8c3c7f6297274d48d50388c16b
drm/i915: Extract intel_hdmi_has_audio()

Pull the "do we want to enable audio?" computation into a small helper
to make intel_hdmi_compute_config() less messy. Will make it easier to
add more checks for this later (eg. we should actually be checking
at the hblank is long enough for audio transmission).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200904115354.25336-16-ville.syrjala@linux.intel.com
Reviewed-by: Lyude Paul <lyude@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/display/intel_hdmi.c