ALSA: hda - program ICT bits to support HBR audio
authorSriram Periyasamy <sriramx.periyasamy@intel.com>
Tue, 19 Sep 2017 22:25:05 +0000 (17:25 -0500)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Sep 2017 10:01:01 +0000 (12:01 +0200)
commit5a5d718f952b55e7fa96bfaf6f31f2c08babd77b
treecfcc07b2c68f6de56ab0c48bfcded8d2a19f9696
parente1af344df4e5c8fe90f4a63235a68d5405afc41b
ALSA: hda - program ICT bits to support HBR audio

On recent Intel platforms (Haswell, Broadwell, Skylake, ApolloLake,
KabyLake, ...), the IEC Coding Type (ICT) bitfield in the Digital
Converter Control #3 needs to be set explicitly for HDMI/DisplayPort
High Bit Rate (HBR) audio playback to work. This was not required in
earlier platforms when HBR was first introduced. The ICT bits are
defined in Section 7.3.3.9 of the HDaudio 1.0a specification.

Since the ICT bitfield was not specified for HDAudio 1.0 devices
(before 2009), we only program it on machines more recent than
Haswell.

We tested that this fix is not needed on Baytrail-I (MinnowBoard
Turbot) and believe by extension it also does not apply to Braswell.

[ Moved AC_VERB_SET_DIGI_CONVERT_3 definition to the right place
  by tiwai ]

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98797

Signed-off-by: Sriram Periyasamy <sriramx.periyasamy@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hda_verbs.h
sound/pci/hda/patch_hdmi.c