* [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM
@ 2022-06-08 2:09 Kuninori Morimoto
2022-06-08 7:05 ` Geert Uytterhoeven
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Kuninori Morimoto @ 2022-06-08 2:09 UTC (permalink / raw)
To: Mark Brown; +Cc: Linux-ALSA, Geert Uytterhoeven
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Renesas is the only user of ak4613 on upstream for now, and
commit f28dbaa958fbd8 ("ASoC: ak4613: add TDM256 support")
added TDM256 support. Renesas tested part of it, because of
board connection.
It was assuming ak4613 is probed via Audio-Graph-Card, but it
might be probed via Simple-Audio-Card either.
It will indicates WARNING in such case. This patch fixup it.
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
sound/soc/codecs/ak4613.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/ak4613.c b/sound/soc/codecs/ak4613.c
index 03b829930769..dbdd421f832e 100644
--- a/sound/soc/codecs/ak4613.c
+++ b/sound/soc/codecs/ak4613.c
@@ -868,10 +868,12 @@ static void ak4613_parse_of(struct ak4613_priv *priv,
/*
* connected STDI
+ * TDM support is assuming it is probed via Audio-Graph-Card style here.
+ * Default is SDTIx1 if it was probed via Simple-Audio-Card for now.
*/
sdti_num = of_graph_get_endpoint_count(np);
- if (WARN_ON((sdti_num > 3) || (sdti_num < 1)))
- return;
+ if ((sdti_num >= SDTx_MAX) || (sdti_num < 1))
+ sdti_num = 1;
AK4613_CONFIG_SDTI_set(priv, sdti_num);
}
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM
2022-06-08 2:09 [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM Kuninori Morimoto
@ 2022-06-08 7:05 ` Geert Uytterhoeven
2022-06-08 13:35 ` Mark Brown
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2022-06-08 7:05 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: Linux-Renesas, Linux-ALSA, Mark Brown
Hi Morimoto-san,
On Wed, Jun 8, 2022 at 4:13 AM Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Renesas is the only user of ak4613 on upstream for now, and
> commit f28dbaa958fbd8 ("ASoC: ak4613: add TDM256 support")
> added TDM256 support. Renesas tested part of it, because of
> board connection.
>
> It was assuming ak4613 is probed via Audio-Graph-Card, but it
> might be probed via Simple-Audio-Card either.
> It will indicates WARNING in such case. This patch fixup it.
>
> Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thank you, this fixes the WARNING splat on Ebisu-4D.
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM
@ 2022-06-08 7:05 ` Geert Uytterhoeven
0 siblings, 0 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2022-06-08 7:05 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: Mark Brown, Linux-ALSA, Linux-Renesas
Hi Morimoto-san,
On Wed, Jun 8, 2022 at 4:13 AM Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Renesas is the only user of ak4613 on upstream for now, and
> commit f28dbaa958fbd8 ("ASoC: ak4613: add TDM256 support")
> added TDM256 support. Renesas tested part of it, because of
> board connection.
>
> It was assuming ak4613 is probed via Audio-Graph-Card, but it
> might be probed via Simple-Audio-Card either.
> It will indicates WARNING in such case. This patch fixup it.
>
> Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thank you, this fixes the WARNING splat on Ebisu-4D.
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM
2022-06-08 2:09 [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM Kuninori Morimoto
2022-06-08 7:05 ` Geert Uytterhoeven
@ 2022-06-08 13:35 ` Mark Brown
2022-06-29 6:35 ` Wolfram Sang
2022-06-29 11:31 ` Wolfram Sang
2022-06-30 15:10 ` Mark Brown
2022-06-30 16:55 ` Mark Brown
3 siblings, 2 replies; 9+ messages in thread
From: Mark Brown @ 2022-06-08 13:35 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: Linux-ALSA, geert+renesas
On Wed, 8 Jun 2022 02:09:16 +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Renesas is the only user of ak4613 on upstream for now, and
> commit f28dbaa958fbd8 ("ASoC: ak4613: add TDM256 support")
> added TDM256 support. Renesas tested part of it, because of
> board connection.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: ak4613: cares Simple-Audio-Card case for TDM
commit: ec3ad554b956d5dbefa1962c419f164ba223e6b3
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] 9+ messages in thread
* Re: [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM
2022-06-08 13:35 ` Mark Brown
@ 2022-06-29 6:35 ` Wolfram Sang
2022-06-30 15:11 ` Mark Brown
2022-06-29 11:31 ` Wolfram Sang
1 sibling, 1 reply; 9+ messages in thread
From: Wolfram Sang @ 2022-06-29 6:35 UTC (permalink / raw)
To: Mark Brown; +Cc: Linux-ALSA, geert+renesas, Kuninori Morimoto
[-- Attachment #1: Type: text/plain, Size: 262 bytes --]
> Applied to
>
> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Can we have this as a bugfix, pretty please? The warning is really annoying on my Ebisu
board.
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM
2022-06-08 13:35 ` Mark Brown
2022-06-29 6:35 ` Wolfram Sang
@ 2022-06-29 11:31 ` Wolfram Sang
1 sibling, 0 replies; 9+ messages in thread
From: Wolfram Sang @ 2022-06-29 11:31 UTC (permalink / raw)
To: Mark Brown; +Cc: Linux-ALSA, geert+renesas, Kuninori Morimoto
[-- Attachment #1: Type: text/plain, Size: 100 bytes --]
Maybe a Fixes-tag helps to convince? :)
Fixes: f28dbaa958fb ("ASoC: ak4613: add TDM256 support")
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM
2022-06-08 2:09 [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM Kuninori Morimoto
2022-06-08 7:05 ` Geert Uytterhoeven
2022-06-08 13:35 ` Mark Brown
@ 2022-06-30 15:10 ` Mark Brown
2022-06-30 16:55 ` Mark Brown
3 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2022-06-30 15:10 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: alsa-devel, geert+renesas
On Wed, 8 Jun 2022 02:09:16 +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Renesas is the only user of ak4613 on upstream for now, and
> commit f28dbaa958fbd8 ("ASoC: ak4613: add TDM256 support")
> added TDM256 support. Renesas tested part of it, because of
> board connection.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: ak4613: cares Simple-Audio-Card case for TDM
commit: ed0073bd0fccec459b526918be70bf9dc551581a
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] 9+ messages in thread
* Re: [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM
2022-06-29 6:35 ` Wolfram Sang
@ 2022-06-30 15:11 ` Mark Brown
0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2022-06-30 15:11 UTC (permalink / raw)
To: Wolfram Sang; +Cc: Linux-ALSA, geert+renesas, Kuninori Morimoto
[-- Attachment #1: Type: text/plain, Size: 197 bytes --]
On Wed, Jun 29, 2022 at 08:35:15AM +0200, Wolfram Sang wrote:
> Can we have this as a bugfix, pretty please? The warning is really annoying on my Ebisu
> board.
It's already on the way to Linus.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM
2022-06-08 2:09 [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM Kuninori Morimoto
` (2 preceding siblings ...)
2022-06-30 15:10 ` Mark Brown
@ 2022-06-30 16:55 ` Mark Brown
3 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2022-06-30 16:55 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: Linux-ALSA, geert+renesas
On Wed, 8 Jun 2022 02:09:16 +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Renesas is the only user of ak4613 on upstream for now, and
> commit f28dbaa958fbd8 ("ASoC: ak4613: add TDM256 support")
> added TDM256 support. Renesas tested part of it, because of
> board connection.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: ak4613: cares Simple-Audio-Card case for TDM
commit: ed0073bd0fccec459b526918be70bf9dc551581a
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] 9+ messages in thread
end of thread, other threads:[~2022-06-30 16:57 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-08 2:09 [PATCH] ASoC: ak4613: cares Simple-Audio-Card case for TDM Kuninori Morimoto
2022-06-08 7:05 ` Geert Uytterhoeven
2022-06-08 7:05 ` Geert Uytterhoeven
2022-06-08 13:35 ` Mark Brown
2022-06-29 6:35 ` Wolfram Sang
2022-06-30 15:11 ` Mark Brown
2022-06-29 11:31 ` Wolfram Sang
2022-06-30 15:10 ` Mark Brown
2022-06-30 16:55 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.