]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/audio: set HDA link parameters in driver
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Wed, 24 Mar 2021 12:37:25 +0000 (14:37 +0200)
committerUma Shankar <uma.shankar@intel.com>
Wed, 24 Mar 2021 18:25:32 +0000 (23:55 +0530)
commit989634fb49ad070671b5a4714d178d238f493868
treec5c8fb8d95fd85e4b2b39308a7af49e319c1753e
parent9d58aa46291d4d696bb1eac3436d3118f7bf2573
drm/i915/audio: set HDA link parameters in driver

Update logic to program AUD_FREQ_CNTRL register based on new guidance.
Earlier this register was configured by BIOS and driver discovered the
value at init. This is no longer recommended and instead driver should
set the values based on the hardware revision.

Add the recommended values for all supported hardware. This change applies
for all GEN12+ hardware. For TGL, some special case handling is needed
to not break existing systems.

Extend the debug print to also include values of the register as written
by BIOS. This can help debug rare cases where BIOS has configured the link
settings to incorrect values.

Bspec: 49279
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210324123725.4170214-1-kai.vehmanen@linux.intel.com
drivers/gpu/drm/i915/display/intel_audio.c