imx.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] ASoC: grace time for DPCM cleanup
@ 2024-05-19 23:30 Kuninori Morimoto
  2024-05-19 23:31 ` [PATCH v3 1/3] ASoC: soc-pcm: Indicate warning if dpcm_playback/capture were used for availability limition Kuninori Morimoto
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Kuninori Morimoto @ 2024-05-19 23:30 UTC (permalink / raw)
  To: "Amadeusz Sławiński", Alexandre Belloni,
	Alper Nebi Yasak, AngeloGioacchino Del Regno, Banajit Goswami,
	Bard Liao, Brent Lu, Cezary Rojewski, Charles Keepax,
	Claudiu Beznea, Cristian Ciocaltea, Daniel Baluta, Hans de Goede,
	Jaroslav Kysela, Jerome Brunet, Jiawei Wang, Jonathan Corbet,
	Kai Vehmanen, Kevin Hilman, Liam Girdwood, Mark Brown, Maso Huang,
	Matthias Brugger, Neil Armstrong, Nicolas Ferre, Peter Ujfalusi,
	Pierre-Louis Bossart, Ranjani Sridharan, Sascha Hauer, Shawn Guo,
	Shengjiu Wang, Srinivas Kandagatla, Sylwester Nawrocki,
	Takashi Iwai, Vinod Koul, Xiubo Li, alsa-devel, imx, linux-doc,
	linux-sound


Hi Mark, Pierre-Louis, Jerome
Cc each ASoC driver maintainer

This is v3 of DPCM cleanup

As we discussed in [1], we don't need to use dpcm_playback/capture flag,
so we remove it. But we have been using it for 10 years, some driver might
get damage. The most likely case is that the device/driver can use both
playback/capture, but have only one flag, and not using xxx_only flag.
[1/3] patch indicates warning in such case.

And because of its history, DPCM has been checking CPU side only. But it should
check Codec side too same as non-DPCM. Some device/driver has been bypassed
this check. It should be error. [2/3] patch indicates warning in such case.

Because dpcm_xxx flag is no longer used by [1/3] patch, 
snd_soc_dai_link_set_capabilities() is no longer needed. [3/3] patch remove it.

These adds grace time for DPCM cleanup.
I'm not sure when dpcm_xxx will be removed, and Codec check bypass will be error,
but maybe v6.11 or v6.12 ?
Please check each driver by that time.

[1] https://lore.kernel.org/r/87edaym2cg.wl-kuninori.morimoto.gx@renesas.com

Link: https://lore.kernel.org/r/87edaym2cg.wl-kuninori.morimoto.gx@renesas.com
Link: https://lore.kernel.org/r/87wmo6dyxg.wl-kuninori.morimoto.gx@renesas.com

v2 -> v3
	- tidyup typo (reuqsts -> requests)
	- add Tested-by on git-log

v1 -> v2
	- tidyup Codec check warning output condition

Kuninori Morimoto (3):
  ASoC: soc-pcm: Indicate warning if dpcm_playback/capture were used for availability limition
  ASoC: soc-pcm: Indicate warning if CPU / Codec availability mismatch
  ASoC: remove snd_soc_dai_link_set_capabilities()

 include/sound/soc-dai.h               |   1 -
 include/sound/soc.h                   |   1 +
 sound/soc/fsl/imx-card.c              |   3 -
 sound/soc/generic/audio-graph-card.c  |   2 -
 sound/soc/generic/audio-graph-card2.c |   2 -
 sound/soc/generic/simple-card.c       |   2 -
 sound/soc/meson/axg-card.c            |   1 -
 sound/soc/meson/gx-card.c             |   1 -
 sound/soc/qcom/common.c               |   1 -
 sound/soc/soc-dai.c                   |  38 ---------
 sound/soc/soc-pcm.c                   | 110 +++++++++++++++++++-------
 11 files changed, 81 insertions(+), 81 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-05-23 23:15 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-19 23:30 [PATCH v3 0/3] ASoC: grace time for DPCM cleanup Kuninori Morimoto
2024-05-19 23:31 ` [PATCH v3 1/3] ASoC: soc-pcm: Indicate warning if dpcm_playback/capture were used for availability limition Kuninori Morimoto
2024-05-19 23:31 ` [PATCH v3 2/3] ASoC: soc-pcm: Indicate warning if CPU / Codec availability mismatch Kuninori Morimoto
2024-05-20 15:55   ` Pierre-Louis Bossart
2024-05-20 23:27     ` Kuninori Morimoto
2024-05-20 23:42       ` Pierre-Louis Bossart
2024-05-21  1:15         ` Kuninori Morimoto
2024-05-21 13:43           ` Pierre-Louis Bossart
2024-05-21 15:12             ` Mark Brown
2024-05-21 16:03               ` Pierre-Louis Bossart
2024-05-21 19:56                 ` Mark Brown
2024-05-21 23:52                   ` Kuninori Morimoto
2024-05-22 13:35                     ` Pierre-Louis Bossart
2024-05-23 23:15                       ` Kuninori Morimoto
2024-05-23  0:21                     ` Kuninori Morimoto
2024-05-19 23:31 ` [PATCH v3 3/3] ASoC: remove snd_soc_dai_link_set_capabilities() Kuninori Morimoto
2024-05-20 14:30 ` [PATCH v3 0/3] ASoC: grace time for DPCM cleanup Mark Brown
2024-05-20 23:12   ` Kuninori Morimoto

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).