summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheetal <sheetal@nvidia.com>2026-03-25 13:14:29 +0300
committerMark Brown <broonie@kernel.org>2026-03-25 16:14:22 +0300
commitd310c08db2d80488435e6cef2b42d09bc63f3f43 (patch)
treed3c4271ba869a70e00f8e5db5855e233d6afe7fa
parent802d0d6c25b3aecc51c336ba784aedf75c592512 (diff)
downloadlinux-d310c08db2d80488435e6cef2b42d09bc63f3f43.tar.xz
ASoC: tegra: Add error logging in tegra210_amx driver
Log errors in the Tegra210 AMX probe and set_audio_cif paths. Signed-off-by: Sheetal <sheetal@nvidia.com> Link: https://patch.msgid.link/20260325101437.3059693-7-sheetal@nvidia.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/tegra/tegra210_amx.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/tegra/tegra210_amx.c b/sound/soc/tegra/tegra210_amx.c
index bfda82505298..fadfcdf03198 100644
--- a/sound/soc/tegra/tegra210_amx.c
+++ b/sound/soc/tegra/tegra210_amx.c
@@ -163,6 +163,8 @@ static int tegra210_amx_set_audio_cif(struct snd_soc_dai *dai,
audio_bits = TEGRA_ACIF_BITS_32;
break;
default:
+ dev_err(dai->dev, "unsupported format: %d\n",
+ params_format(params));
return -EINVAL;
}
@@ -767,10 +769,9 @@ static int tegra210_amx_platform_probe(struct platform_device *pdev)
err = devm_snd_soc_register_component(dev, &tegra210_amx_cmpnt,
tegra210_amx_dais,
ARRAY_SIZE(tegra210_amx_dais));
- if (err) {
- dev_err(dev, "can't register AMX component, err: %d\n", err);
- return err;
- }
+ if (err)
+ return dev_err_probe(dev, err,
+ "can't register AMX component\n");
pm_runtime_enable(dev);