OSDN Git Service

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)
commitcd54fb96e568cf95bad6deb8b070e05643e80935
tree94a183c5bf201630939afc0617c7ced67b9f8d41
parentf25d0a68beb868147571e395de52ced0c55f6cd4
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