* [RESEND PATCH v2] ASoC: tegra: Fix DSPK 16-bit playback
@ 2024-04-05 10:43 Sameer Pujar
2024-04-05 14:27 ` Thierry Reding
2024-04-09 13:07 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Sameer Pujar @ 2024-04-05 10:43 UTC (permalink / raw)
To: broonie, linux-sound, alsa-devel
Cc: linux-tegra, linux-kernel, lgirdwood, thierry.reding, jonathanh,
mkumard, Sameer Pujar, stable
DSPK configuration is wrong for 16-bit playback and this happens because
the client config is always fixed at 24-bit in hw_params(). Fix this by
updating the client config to 16-bit for the respective playback.
Fixes: 327ef6470266 ("ASoC: tegra: Add Tegra186 based DSPK driver")
Cc: stable@vger.kernel.org
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
---
changes in v2:
* moved common setting to S32_LE switch case.
sound/soc/tegra/tegra186_dspk.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/sound/soc/tegra/tegra186_dspk.c b/sound/soc/tegra/tegra186_dspk.c
index aa37c4ab0adb..21cd41fec7a9 100644
--- a/sound/soc/tegra/tegra186_dspk.c
+++ b/sound/soc/tegra/tegra186_dspk.c
@@ -1,8 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
+// SPDX-FileCopyrightText: Copyright (c) 2020-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// tegra186_dspk.c - Tegra186 DSPK driver
-//
-// Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved.
#include <linux/clk.h>
#include <linux/device.h>
@@ -241,14 +240,14 @@ static int tegra186_dspk_hw_params(struct snd_pcm_substream *substream,
return -EINVAL;
}
- cif_conf.client_bits = TEGRA_ACIF_BITS_24;
-
switch (params_format(params)) {
case SNDRV_PCM_FORMAT_S16_LE:
cif_conf.audio_bits = TEGRA_ACIF_BITS_16;
+ cif_conf.client_bits = TEGRA_ACIF_BITS_16;
break;
case SNDRV_PCM_FORMAT_S32_LE:
cif_conf.audio_bits = TEGRA_ACIF_BITS_32;
+ cif_conf.client_bits = TEGRA_ACIF_BITS_24;
break;
default:
dev_err(dev, "unsupported format!\n");
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RESEND PATCH v2] ASoC: tegra: Fix DSPK 16-bit playback
2024-04-05 10:43 [RESEND PATCH v2] ASoC: tegra: Fix DSPK 16-bit playback Sameer Pujar
@ 2024-04-05 14:27 ` Thierry Reding
2024-04-09 13:07 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2024-04-05 14:27 UTC (permalink / raw)
To: Sameer Pujar, broonie, linux-sound, alsa-devel
Cc: linux-tegra, linux-kernel, lgirdwood, jonathanh, mkumard, stable
[-- Attachment #1: Type: text/plain, Size: 662 bytes --]
On Fri Apr 5, 2024 at 12:43 PM CEST, Sameer Pujar wrote:
> DSPK configuration is wrong for 16-bit playback and this happens because
> the client config is always fixed at 24-bit in hw_params(). Fix this by
> updating the client config to 16-bit for the respective playback.
>
> Fixes: 327ef6470266 ("ASoC: tegra: Add Tegra186 based DSPK driver")
> Cc: stable@vger.kernel.org
> Signed-off-by: Sameer Pujar <spujar@nvidia.com>
> ---
> changes in v2:
> * moved common setting to S32_LE switch case.
>
> sound/soc/tegra/tegra186_dspk.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
Acked-by: Thierry Reding <treding@nvidia.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RESEND PATCH v2] ASoC: tegra: Fix DSPK 16-bit playback
2024-04-05 10:43 [RESEND PATCH v2] ASoC: tegra: Fix DSPK 16-bit playback Sameer Pujar
2024-04-05 14:27 ` Thierry Reding
@ 2024-04-09 13:07 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2024-04-09 13:07 UTC (permalink / raw)
To: linux-sound, alsa-devel, Sameer Pujar
Cc: linux-tegra, linux-kernel, lgirdwood, thierry.reding, jonathanh,
mkumard, stable
On Fri, 05 Apr 2024 10:43:06 +0000, Sameer Pujar wrote:
> DSPK configuration is wrong for 16-bit playback and this happens because
> the client config is always fixed at 24-bit in hw_params(). Fix this by
> updating the client config to 16-bit for the respective playback.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: tegra: Fix DSPK 16-bit playback
commit: 2e93a29b48a017c777d4fcbfcc51aba4e6a90d38
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-09 13:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-05 10:43 [RESEND PATCH v2] ASoC: tegra: Fix DSPK 16-bit playback Sameer Pujar
2024-04-05 14:27 ` Thierry Reding
2024-04-09 13:07 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).