OSDN Git Service

ALSA: hda/tegra: Hardcode GCAP ISS value on T234
authorMohan Kumar <mkumard@nvidia.com>
Wed, 16 Feb 2022 09:22:36 +0000 (14:52 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Feb 2022 10:03:35 +0000 (11:03 +0100)
commitb58d511ded88ebfc14381eb9fe6e66080e8ed10f
tree17091a39468d7d5416a4d28d85f6a38e27c4370a
parentf43156a9563f9262d7852ab79770f38f1fae7d76
ALSA: hda/tegra: Hardcode GCAP ISS value on T234

The GCAP register on Tegra234 implies no Input Streams(ISS)
supported, but the HW output stream descriptor programming
should start with offset 0x20*4 from base stream descriptor
address. This will be a problem while calculating the offset
for output stream descriptor which will be considering input
stream also. So here output stream starts with offset 0 which
is wrong as HW register for output stream offset starts with 4.
So hardcode the input stream numbers to 4 to avoid the issue
in offset calculation.

Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Link: https://lore.kernel.org/r/20220216092240.26464-3-mkumard@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_tegra.c