* [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue
@ 2023-10-31 13:59 Syed Saba Kareem
2023-10-31 13:59 ` [PATCH 2/3] ASoC: amd: acp: correct the format order Syed Saba Kareem
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Syed Saba Kareem @ 2023-10-31 13:59 UTC (permalink / raw)
To: broonie, alsa-devel
Cc: Vijendar.Mukunda, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
mario.limonciello, venkataprasad.potturu, arungopal.kondaveeti,
mastan.katragadda, juan.martinez, amadeuszx.slawinski,
dan.carpenter, Syed Saba Kareem, Liam Girdwood, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Uwe Kleine-König,
Kuninori Morimoto, Yang Li, open list
Fix indentation issue reported in acp70_pcm_resume() function.
Fixes: e84db124cb21 (ASoC: amd: acp: Add pci legacy driver support
for acp7.0 platform")
Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
---
sound/soc/amd/acp/acp70.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/amd/acp/acp70.c b/sound/soc/amd/acp/acp70.c
index dd384c966ae9..1d699c96f619 100644
--- a/sound/soc/amd/acp/acp70.c
+++ b/sound/soc/amd/acp/acp70.c
@@ -229,8 +229,8 @@ static int __maybe_unused acp70_pcm_resume(struct device *dev)
}
}
}
- spin_unlock(&adata->acp_lock);
- return 0;
+ spin_unlock(&adata->acp_lock);
+ return 0;
}
static const struct dev_pm_ops acp70_dma_pm_ops = {
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/3] ASoC: amd: acp: correct the format order
2023-10-31 13:59 [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue Syed Saba Kareem
@ 2023-10-31 13:59 ` Syed Saba Kareem
2023-10-31 13:59 ` [PATCH 3/3] ASoC: amd: acp: fix for i2s mode register field update Syed Saba Kareem
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Syed Saba Kareem @ 2023-10-31 13:59 UTC (permalink / raw)
To: broonie, alsa-devel
Cc: Vijendar.Mukunda, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
mario.limonciello, venkataprasad.potturu, arungopal.kondaveeti,
mastan.katragadda, juan.martinez, amadeuszx.slawinski,
dan.carpenter, Syed Saba Kareem, Liam Girdwood, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Kuninori Morimoto,
Uwe Kleine-König, Yang Li, open list
Correct the formats order for dai driver structures.
Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
---
sound/soc/amd/acp/acp70.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/sound/soc/amd/acp/acp70.c b/sound/soc/amd/acp/acp70.c
index 1d699c96f619..0d7cdd4017e5 100644
--- a/sound/soc/amd/acp/acp70.c
+++ b/sound/soc/amd/acp/acp70.c
@@ -52,8 +52,8 @@ static struct snd_soc_dai_driver acp70_dai[] = {
.playback = {
.stream_name = "I2S SP Playback",
.rates = SNDRV_PCM_RATE_8000_96000,
- .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
- SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S32_LE,
+ .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 |
+ SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
.channels_min = 2,
.channels_max = 8,
.rate_min = 8000,
@@ -62,8 +62,8 @@ static struct snd_soc_dai_driver acp70_dai[] = {
.capture = {
.stream_name = "I2S SP Capture",
.rates = SNDRV_PCM_RATE_8000_48000,
- .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
- SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S32_LE,
+ .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 |
+ SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
.channels_min = 2,
.channels_max = 2,
.rate_min = 8000,
@@ -77,8 +77,8 @@ static struct snd_soc_dai_driver acp70_dai[] = {
.playback = {
.stream_name = "I2S BT Playback",
.rates = SNDRV_PCM_RATE_8000_96000,
- .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
- SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S32_LE,
+ .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 |
+ SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
.channels_min = 2,
.channels_max = 8,
.rate_min = 8000,
@@ -87,8 +87,8 @@ static struct snd_soc_dai_driver acp70_dai[] = {
.capture = {
.stream_name = "I2S BT Capture",
.rates = SNDRV_PCM_RATE_8000_48000,
- .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
- SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S32_LE,
+ .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 |
+ SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
.channels_min = 2,
.channels_max = 2,
.rate_min = 8000,
@@ -102,8 +102,8 @@ static struct snd_soc_dai_driver acp70_dai[] = {
.playback = {
.stream_name = "I2S HS Playback",
.rates = SNDRV_PCM_RATE_8000_96000,
- .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
- SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S32_LE,
+ .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 |
+ SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
.channels_min = 2,
.channels_max = 8,
.rate_min = 8000,
@@ -112,8 +112,8 @@ static struct snd_soc_dai_driver acp70_dai[] = {
.capture = {
.stream_name = "I2S HS Capture",
.rates = SNDRV_PCM_RATE_8000_48000,
- .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
- SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S32_LE,
+ .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 |
+ SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
.channels_min = 2,
.channels_max = 8,
.rate_min = 8000,
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 3/3] ASoC: amd: acp: fix for i2s mode register field update
2023-10-31 13:59 [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue Syed Saba Kareem
2023-10-31 13:59 ` [PATCH 2/3] ASoC: amd: acp: correct the format order Syed Saba Kareem
@ 2023-10-31 13:59 ` Syed Saba Kareem
2023-11-01 7:30 ` Dan Carpenter
2023-10-31 15:54 ` (subset) [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue Mark Brown
2023-11-06 13:03 ` Mark Brown
3 siblings, 1 reply; 6+ messages in thread
From: Syed Saba Kareem @ 2023-10-31 13:59 UTC (permalink / raw)
To: broonie, alsa-devel
Cc: Vijendar.Mukunda, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
mario.limonciello, venkataprasad.potturu, arungopal.kondaveeti,
mastan.katragadda, juan.martinez, amadeuszx.slawinski,
dan.carpenter, Syed Saba Kareem, Liam Girdwood, Jaroslav Kysela,
Takashi Iwai, Kuninori Morimoto, open list
I2S mode register field will be set to 1 when tdm mode is enabled.
Update the I2S mode field based on tdm_mode flag check.
This will fix below smatch checker warning.
sound/soc/amd/acp/acp-i2s.c:59 acp_set_i2s_clk()
warn: odd binop '0x0 & 0x2'
Fixes: 40f74d5f09d7 ("ASoC: amd: acp: refactor acp i2s clock
generation code")
Reported-By: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
---
sound/soc/amd/acp/acp-i2s.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/amd/acp/acp-i2s.c b/sound/soc/amd/acp/acp-i2s.c
index 1185e5aac523..60cbc881be6e 100644
--- a/sound/soc/amd/acp/acp-i2s.c
+++ b/sound/soc/amd/acp/acp-i2s.c
@@ -26,7 +26,6 @@
#define DRV_NAME "acp_i2s_playcap"
#define I2S_MASTER_MODE_ENABLE 1
-#define I2S_MODE_ENABLE 0
#define LRCLK_DIV_FIELD GENMASK(10, 2)
#define BCLK_DIV_FIELD GENMASK(23, 11)
#define ACP63_LRCLK_DIV_FIELD GENMASK(12, 2)
@@ -56,7 +55,8 @@ static inline void acp_set_i2s_clk(struct acp_dev_data *adata, int dai_id)
}
val = I2S_MASTER_MODE_ENABLE;
- val |= I2S_MODE_ENABLE & BIT(1);
+ if (adata->tdm_mode)
+ val |= BIT(1);
switch (chip->acp_rev) {
case ACP63_DEV:
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: (subset) [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue
2023-10-31 13:59 [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue Syed Saba Kareem
2023-10-31 13:59 ` [PATCH 2/3] ASoC: amd: acp: correct the format order Syed Saba Kareem
2023-10-31 13:59 ` [PATCH 3/3] ASoC: amd: acp: fix for i2s mode register field update Syed Saba Kareem
@ 2023-10-31 15:54 ` Mark Brown
2023-11-06 13:03 ` Mark Brown
3 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-10-31 15:54 UTC (permalink / raw)
To: alsa-devel, Syed Saba Kareem
Cc: Vijendar.Mukunda, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
mario.limonciello, venkataprasad.potturu, arungopal.kondaveeti,
mastan.katragadda, juan.martinez, amadeuszx.slawinski,
dan.carpenter, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Nicolas Ferre, Uwe Kleine-König, Kuninori Morimoto, Yang Li,
open list
On Tue, 31 Oct 2023 19:29:32 +0530, Syed Saba Kareem wrote:
> Fix indentation issue reported in acp70_pcm_resume() function.
>
> Fixes: e84db124cb21 (ASoC: amd: acp: Add pci legacy driver support
> for acp7.0 platform")
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[3/3] ASoC: amd: acp: fix for i2s mode register field update
commit: ed2232d49187cebc007ecf4e6374069b11ab3219
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] 6+ messages in thread
* Re: [PATCH 3/3] ASoC: amd: acp: fix for i2s mode register field update
2023-10-31 13:59 ` [PATCH 3/3] ASoC: amd: acp: fix for i2s mode register field update Syed Saba Kareem
@ 2023-11-01 7:30 ` Dan Carpenter
0 siblings, 0 replies; 6+ messages in thread
From: Dan Carpenter @ 2023-11-01 7:30 UTC (permalink / raw)
To: Syed Saba Kareem
Cc: broonie, alsa-devel, Vijendar.Mukunda, Basavaraj.Hiregoudar,
Sunil-kumar.Dommati, mario.limonciello, venkataprasad.potturu,
arungopal.kondaveeti, mastan.katragadda, juan.martinez,
amadeuszx.slawinski, Liam Girdwood, Jaroslav Kysela,
Takashi Iwai, Kuninori Morimoto, open list
On Tue, Oct 31, 2023 at 07:29:34PM +0530, Syed Saba Kareem wrote:
> I2S mode register field will be set to 1 when tdm mode is enabled.
> Update the I2S mode field based on tdm_mode flag check.
>
> This will fix below smatch checker warning.
>
> sound/soc/amd/acp/acp-i2s.c:59 acp_set_i2s_clk()
> warn: odd binop '0x0 & 0x2'
>
> Fixes: 40f74d5f09d7 ("ASoC: amd: acp: refactor acp i2s clock
> generation code")
I saw this yesterday but didn't comment because I didn't want you to
have to redo the patch. Mark, of course, also saw it and didn't ask you
to redo it. And now it's applied.
But for the future, these Fixes tags should be on one line and in the
tags section of the commit message. (It's in chronological order).
Fixes: 40f74d5f09d7 ("ASoC: amd: acp: refactor acp i2s clock generation code")
Reported-By: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
Signed-off-by: Mark Brown
regards,
dan carpenter
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue
2023-10-31 13:59 [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue Syed Saba Kareem
` (2 preceding siblings ...)
2023-10-31 15:54 ` (subset) [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue Mark Brown
@ 2023-11-06 13:03 ` Mark Brown
3 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-11-06 13:03 UTC (permalink / raw)
To: alsa-devel, Syed Saba Kareem
Cc: Vijendar.Mukunda, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
mario.limonciello, venkataprasad.potturu, arungopal.kondaveeti,
mastan.katragadda, juan.martinez, amadeuszx.slawinski,
dan.carpenter, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Nicolas Ferre, Uwe Kleine-König, Kuninori Morimoto, Yang Li,
open list
On Tue, 31 Oct 2023 19:29:32 +0530, Syed Saba Kareem wrote:
> Fix indentation issue reported in acp70_pcm_resume() function.
>
> Fixes: e84db124cb21 (ASoC: amd: acp: Add pci legacy driver support
> for acp7.0 platform")
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/3] ASoC: amd: acp: Fix for indentation issue
(no commit info)
[2/3] ASoC: amd: acp: correct the format order
(no commit info)
[3/3] ASoC: amd: acp: fix for i2s mode register field update
commit: ed2232d49187cebc007ecf4e6374069b11ab3219
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] 6+ messages in thread
end of thread, other threads:[~2023-11-06 13:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-31 13:59 [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue Syed Saba Kareem
2023-10-31 13:59 ` [PATCH 2/3] ASoC: amd: acp: correct the format order Syed Saba Kareem
2023-10-31 13:59 ` [PATCH 3/3] ASoC: amd: acp: fix for i2s mode register field update Syed Saba Kareem
2023-11-01 7:30 ` Dan Carpenter
2023-10-31 15:54 ` (subset) [PATCH 1/3] ASoC: amd: acp: Fix for indentation issue Mark Brown
2023-11-06 13:03 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®