Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* [PATCH 0/8] ASoC: cleasnup rtd and its ID
@ 2024-10-24  1:28 Kuninori Morimoto
  2024-10-24  1:29 ` [PATCH 1/8] ASoC: rename rtd->num to rtd->id Kuninori Morimoto
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Kuninori Morimoto @ 2024-10-24  1:28 UTC (permalink / raw)
  To: Jaroslav Kysela, Jerome Brunet, Kevin Hilman, Lad Prabhakar,
	Liam Girdwood, Mark Brown, Neil Armstrong, Sascha Hauer,
	Shawn Guo, Shengjiu Wang, Takashi Iwai, Vinod Koul, Xiubo Li,
	alsa-devel, imx, linux-rpi-kernel, linux-sound, linux-stm32,
	patches

Hi Mark

rtd has own ID, but it is naming "num" for it. The naming is confusable.
This patch rename it to "id".
And many functions request both "rtd" and its "id" as function parameter,
but rtd itself has rtd->id. This patch cleanup it.

And, Qcom driver want to use irregular rtd ID because of its topology,
and thus, soc-core need irregular calculation. I'm not sure why only Qcom
needs such calculation, but this patch also cleanup it.
But I guess we want to cleanup is not soc-core but Qcom side (?)

Kuninori Morimoto (8):
  ASoC: rename rtd->num to rtd->id
  ASoC: fsl: switch to use rtd->id from rtd->num
  ASoC: meson: switch to use rtd->id from rtd->num
  ASoC: sh: switch to use rtd->id from rtd->num
  ASoC: generic: switch to use rtd->id from rtd->num
  ASoC: remove rtd->num
  ASoC: soc-core: do rtd->id trick at snd_soc_add_pcm_runtime()
  ASoC: cleanup function parameter for rtd and its id

 include/sound/soc-dai.h               |  5 ++-
 include/sound/soc.h                   |  8 ++---
 sound/soc/fsl/imx-card.c              |  6 ++--
 sound/soc/generic/simple-card-utils.c | 10 +++---
 sound/soc/meson/axg-card.c            |  6 ++--
 sound/soc/meson/gx-card.c             |  2 +-
 sound/soc/sh/rcar/core.c              |  2 +-
 sound/soc/soc-compress.c              |  9 +++--
 sound/soc/soc-core.c                  | 50 +++++++++++++++------------
 sound/soc/soc-dai.c                   |  4 +--
 sound/soc/soc-pcm.c                   | 16 ++++-----
 11 files changed, 60 insertions(+), 58 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-11-05 19:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-24  1:28 [PATCH 0/8] ASoC: cleasnup rtd and its ID Kuninori Morimoto
2024-10-24  1:29 ` [PATCH 1/8] ASoC: rename rtd->num to rtd->id Kuninori Morimoto
2024-10-24  1:29 ` [PATCH 2/8] ASoC: fsl: switch to use rtd->id from rtd->num Kuninori Morimoto
2024-10-24  1:29 ` [PATCH 3/8] ASoC: meson: " Kuninori Morimoto
2024-10-24  8:06   ` Jerome Brunet
2024-10-30 23:57     ` Kuninori Morimoto
2024-10-24  1:29 ` [PATCH 4/8] ASoC: sh: " Kuninori Morimoto
2024-10-24  1:29 ` [PATCH 5/8] ASoC: generic: " Kuninori Morimoto
2024-10-24  1:29 ` [PATCH 6/8] ASoC: remove rtd->num Kuninori Morimoto
2024-10-24  1:29 ` [PATCH 7/8] ASoC: soc-core: do rtd->id trick at snd_soc_add_pcm_runtime() Kuninori Morimoto
2024-10-24  1:29 ` [PATCH 8/8] ASoC: cleanup function parameter for rtd and its id Kuninori Morimoto
2024-11-05 19:07 ` [PATCH 0/8] ASoC: cleasnup rtd and its ID Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox