]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: sor: Parse more data from HDA format
authorThierry Reding <treding@nvidia.com>
Thu, 3 Jan 2019 14:23:15 +0000 (15:23 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 16 Jan 2019 12:10:03 +0000 (13:10 +0100)
commit554940ffb5bfb538a0cf659f79c444ae9f853607
tree94a183c5bf201630939afc0617c7ced67b9f8d41
parentcd6a4d204f1333b9c9b8071097bf2175cace87f7
drm/tegra: sor: Parse more data from HDA format

The HDA format data passed to the SOR from the HDA codec contains more
information than just the rate and number of channels. Parse all the
fields and store them in an internal structure for subsequent use.

While at it, also fix an off-by-one error in the number of channels.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c