* [PATCH v2 0/2] ASoC: mediatek: add missing initialization
@ 2023-03-01 11:01 Trevor Wu
2023-03-01 11:01 ` [PATCH v2 1/2] ASoC: mediatek: mt8188: " Trevor Wu
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Trevor Wu @ 2023-03-01 11:01 UTC (permalink / raw)
To: broonie, lgirdwood, tiwai, perex, matthias.bgg
Cc: trevor.wu, angelogioacchino.delregno, alsa-devel, linux-mediatek,
linux-arm-kernel, linux-kernel
Fix dts parsing problem in mt8188 and mt8195 etdm dai drivers.
Changes since v1:
- split the patch into two commits and add Fixes tag.
Trevor Wu (2):
ASoC: mediatek: mt8188: add missing initialization
ASoC: mediatek: mt8195: add missing initialization
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c | 3 +++
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 3 +++
2 files changed, 6 insertions(+)
--
2.18.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/2] ASoC: mediatek: mt8188: add missing initialization
2023-03-01 11:01 [PATCH v2 0/2] ASoC: mediatek: add missing initialization Trevor Wu
@ 2023-03-01 11:01 ` Trevor Wu
2023-03-01 11:10 ` AngeloGioacchino Del Regno
2023-03-01 11:02 ` [PATCH v2 2/2] ASoC: mediatek: mt8195: " Trevor Wu
2023-03-01 16:31 ` [PATCH v2 0/2] ASoC: mediatek: " Mark Brown
2 siblings, 1 reply; 6+ messages in thread
From: Trevor Wu @ 2023-03-01 11:01 UTC (permalink / raw)
To: broonie, lgirdwood, tiwai, perex, matthias.bgg
Cc: trevor.wu, angelogioacchino.delregno, alsa-devel, linux-mediatek,
linux-arm-kernel, linux-kernel
In etdm dai driver, dai_etdm_parse_of() function is used to parse dts
properties to get parameters. There are two for-loops which are
sepearately for all etdm and etdm input only cases. In etdm in only
loop, dai_id is not initialized, so it keeps the value intiliazed in
another loop.
In the patch, add the missing initialization to fix the unexpected
parsing problem.
Fixes: 2babb4777489 ("ASoC: mediatek: mt8188: support etdm in platform driver")
Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
---
sound/soc/mediatek/mt8188/mt8188-dai-etdm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c b/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
index 1c53d4cb19bb..7a37752d4244 100644
--- a/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
+++ b/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
@@ -2498,6 +2498,9 @@ static void mt8188_dai_etdm_parse_of(struct mtk_base_afe *afe)
/* etdm in only */
for (i = 0; i < 2; i++) {
+ dai_id = ETDM_TO_DAI_ID(i);
+ etdm_data = afe_priv->dai_priv[dai_id];
+
snprintf(prop, sizeof(prop), "mediatek,%s-chn-disabled",
of_afe_etdms[i].name);
--
2.18.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/2] ASoC: mediatek: mt8195: add missing initialization
2023-03-01 11:01 [PATCH v2 0/2] ASoC: mediatek: add missing initialization Trevor Wu
2023-03-01 11:01 ` [PATCH v2 1/2] ASoC: mediatek: mt8188: " Trevor Wu
@ 2023-03-01 11:02 ` Trevor Wu
2023-03-01 11:10 ` AngeloGioacchino Del Regno
2023-03-01 16:31 ` [PATCH v2 0/2] ASoC: mediatek: " Mark Brown
2 siblings, 1 reply; 6+ messages in thread
From: Trevor Wu @ 2023-03-01 11:02 UTC (permalink / raw)
To: broonie, lgirdwood, tiwai, perex, matthias.bgg
Cc: trevor.wu, angelogioacchino.delregno, alsa-devel, linux-mediatek,
linux-arm-kernel, linux-kernel
In etdm dai driver, dai_etdm_parse_of() function is used to parse dts
properties to get parameters. There are two for-loops which are
sepearately for all etdm and etdm input only cases. In etdm in only
loop, dai_id is not initialized, so it keeps the value intiliazed in
another loop.
In the patch, add the missing initialization to fix the unexpected
parsing problem.
Fixes: 1de9a54acafb ("ASoC: mediatek: mt8195: support etdm in platform driver")
Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
---
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c b/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
index c2e268054773..f2c9a1fdbe0d 100644
--- a/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
+++ b/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
@@ -2567,6 +2567,9 @@ static void mt8195_dai_etdm_parse_of(struct mtk_base_afe *afe)
/* etdm in only */
for (i = 0; i < 2; i++) {
+ dai_id = ETDM_TO_DAI_ID(i);
+ etdm_data = afe_priv->dai_priv[dai_id];
+
ret = snprintf(prop, sizeof(prop),
"mediatek,%s-chn-disabled",
of_afe_etdms[i].name);
--
2.18.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 2/2] ASoC: mediatek: mt8195: add missing initialization
2023-03-01 11:02 ` [PATCH v2 2/2] ASoC: mediatek: mt8195: " Trevor Wu
@ 2023-03-01 11:10 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-01 11:10 UTC (permalink / raw)
To: Trevor Wu, broonie, lgirdwood, tiwai, perex, matthias.bgg
Cc: alsa-devel, linux-mediatek, linux-arm-kernel, linux-kernel
Il 01/03/23 12:02, Trevor Wu ha scritto:
> In etdm dai driver, dai_etdm_parse_of() function is used to parse dts
> properties to get parameters. There are two for-loops which are
> sepearately for all etdm and etdm input only cases. In etdm in only
> loop, dai_id is not initialized, so it keeps the value intiliazed in
> another loop.
>
> In the patch, add the missing initialization to fix the unexpected
> parsing problem.
>
> Fixes: 1de9a54acafb ("ASoC: mediatek: mt8195: support etdm in platform driver")
> Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/2] ASoC: mediatek: mt8188: add missing initialization
2023-03-01 11:01 ` [PATCH v2 1/2] ASoC: mediatek: mt8188: " Trevor Wu
@ 2023-03-01 11:10 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-01 11:10 UTC (permalink / raw)
To: Trevor Wu, broonie, lgirdwood, tiwai, perex, matthias.bgg
Cc: alsa-devel, linux-mediatek, linux-arm-kernel, linux-kernel
Il 01/03/23 12:01, Trevor Wu ha scritto:
> In etdm dai driver, dai_etdm_parse_of() function is used to parse dts
> properties to get parameters. There are two for-loops which are
> sepearately for all etdm and etdm input only cases. In etdm in only
> loop, dai_id is not initialized, so it keeps the value intiliazed in
> another loop.
>
> In the patch, add the missing initialization to fix the unexpected
> parsing problem.
>
> Fixes: 2babb4777489 ("ASoC: mediatek: mt8188: support etdm in platform driver")
> Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 0/2] ASoC: mediatek: add missing initialization
2023-03-01 11:01 [PATCH v2 0/2] ASoC: mediatek: add missing initialization Trevor Wu
2023-03-01 11:01 ` [PATCH v2 1/2] ASoC: mediatek: mt8188: " Trevor Wu
2023-03-01 11:02 ` [PATCH v2 2/2] ASoC: mediatek: mt8195: " Trevor Wu
@ 2023-03-01 16:31 ` Mark Brown
2 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-03-01 16:31 UTC (permalink / raw)
To: lgirdwood, tiwai, perex, matthias.bgg, Trevor Wu
Cc: angelogioacchino.delregno, alsa-devel, linux-mediatek,
linux-arm-kernel, linux-kernel
On Wed, 01 Mar 2023 19:01:58 +0800, Trevor Wu wrote:
> Fix dts parsing problem in mt8188 and mt8195 etdm dai drivers.
>
> Changes since v1:
> - split the patch into two commits and add Fixes tag.
>
> Trevor Wu (2):
> ASoC: mediatek: mt8188: add missing initialization
> ASoC: mediatek: mt8195: add missing initialization
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/2] ASoC: mediatek: mt8188: add missing initialization
commit: 23badca4248a9a467f630adbd1557f664585e1db
[2/2] ASoC: mediatek: mt8195: add missing initialization
commit: b56ec2992a2e43bc3e60d6db86849d31640e791f
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-03-01 16:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-01 11:01 [PATCH v2 0/2] ASoC: mediatek: add missing initialization Trevor Wu
2023-03-01 11:01 ` [PATCH v2 1/2] ASoC: mediatek: mt8188: " Trevor Wu
2023-03-01 11:10 ` AngeloGioacchino Del Regno
2023-03-01 11:02 ` [PATCH v2 2/2] ASoC: mediatek: mt8195: " Trevor Wu
2023-03-01 11:10 ` AngeloGioacchino Del Regno
2023-03-01 16:31 ` [PATCH v2 0/2] ASoC: mediatek: " Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox