ALSA: hda/tegra: Fix Tegra194 HDA reset failure
authorSameer Pujar <spujar@nvidia.com>
Thu, 23 Dec 2021 11:53:49 +0000 (17:23 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sat, 1 Jan 2022 15:46:15 +0000 (16:46 +0100)
commitd278dc9151a034674b31ffeda24cdfb0073570f3
tree9f058322cacb33d2c649be35a685681fd368eb09
parentca1ece24d9bc5bd1d5257494654bb2b73942ddea
ALSA: hda/tegra: Fix Tegra194 HDA reset failure

HDA regression is recently reported on Tegra194 based platforms.
This happens because "hda2codec_2x" reset does not really exist
in Tegra194 and it causes probe failure. All the HDA based audio
tests fail at the moment. This underlying issue is exposed by
commit c045ceb5a145 ("reset: tegra-bpmp: Handle errors in BPMP
response") which now checks return code of BPMP command response.
Fix this issue by skipping unavailable reset on Tegra194.

Cc: stable@vger.kernel.org
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/1640260431-11613-2-git-send-email-spujar@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_tegra.c