From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: <broonie@kernel.org>
Cc: <lgirdwood@gmail.com>, <kuninori.morimoto.gx@renesas.com>,
<mripard@kernel.org>, <airlied@linux.ie>, <daniel@ffwll.ch>,
<vkoul@kernel.org>, <nicolas.ferre@microchip.com>,
<nsaenz@kernel.org>, <shawnguo@kernel.org>, <linux-imx@nxp.com>,
<cezary.rojewski@intel.com>,
<pierre-louis.bossart@linux.intel.com>,
<linux-mips@vger.kernel.org>, <linux-amlogic@lists.infradead.org>,
<daniel@zonque.org>, <srinivas.kandagatla@linaro.org>,
<linux-rockchip@lists.infradead.org>, <krzk@kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
<linux-sunxi@lists.linux.dev>, <linux-tegra@vger.kernel.org>,
<linux-omap@vger.kernel.org>, <linux-xtensa@linux-xtensa.org>,
<peter.ujfalusi@gmail.com>, <jarkko.nikula@bitmer.com>,
<heiko@sntech.de>, <jbrunet@baylibre.com>,
<kernel@pengutronix.de>, <alsa-devel@alsa-project.org>,
<patches@opensource.cirrus.com>,
<dri-devel@lists.freedesktop.org>,
<linux-rpi-kernel@lists.infradead.org>,
<frattaroli.nicolas@gmail.com>
Subject: [PATCH v2 34/96] ASoC: core: Switch core to new DAI naming flag
Date: Thu, 23 Jun 2022 13:51:48 +0100 [thread overview]
Message-ID: <20220623125250.2355471-35-ckeepax@opensource.cirrus.com> (raw)
In-Reply-To: <20220623125250.2355471-1-ckeepax@opensource.cirrus.com>
Now all the drivers are updated to have the new legacy_dai_naming
flag, update the core code so it also uses the new flag. Paving
the way for the old non_legacy_dai_naming flag to be removed.
It should be noted this patch will affect the CODEC drivers that don't
specify the non_legacy_dai_naming flag. These drivers will update from
using legacy DAI naming to the new scheme after this patch, this is
being considered a fix as the intention was for all CODEC drivers to use
the new scheme and all existing CODEC drivers were updated to do so
before componentisation. This just corrects those devices that have
snuck in since componentisation. The corrected devices are as
follows:
adau1372, cros_ec_codec, cs35l41, cs35l45, cx2072x, hdac_hda,
jz4725/60/70, lpass-rx/tx/va/wsa-macro, max98504, max9877,
mt6351/58/59, mt6660, pcm3060, rk3328, rt1308/16, rt5514,
rt5677, rt700/11/15, rt9120, sdw-mockup, tlv320adc3xxx, tscs454,
wcd9335/4x/8x, wsa881x
Some of these devices are used in some in kernel machine drivers,
however it appears all the usages use the actual DAI driver name
(since snd_soc_find_dai checks both the DAI name and the DAI driver
name). So it is not believed this change will break any in tree
machine drivers.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
---
sound/soc/soc-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 30f0da711ca95..60e21b06b1dcb 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2488,7 +2488,7 @@ static int snd_soc_register_dais(struct snd_soc_component *component,
for (i = 0; i < count; i++) {
dai = snd_soc_register_dai(component, dai_drv + i, count == 1 &&
- !component->driver->non_legacy_dai_naming);
+ component->driver->legacy_dai_naming);
if (dai == NULL) {
ret = -ENOMEM;
goto err;
--
2.30.2
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2022-06-23 12:54 UTC|newest]
Thread overview: 99+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-23 12:51 [PATCH v2 00/96] Refactor non_legacy_dai_naming flag Charles Keepax
2022-06-23 12:51 ` [PATCH v2 01/96] ASoC: soc-component: Add legacy_dai_naming flag Charles Keepax
2022-06-23 12:51 ` [PATCH v2 02/96] soundwire: intel: Migrate to new style legacy DAI naming flag Charles Keepax
2022-06-24 4:25 ` Vinod Koul
2022-06-23 12:51 ` [PATCH v2 03/96] drm/vc4: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 04/96] ASoC: img: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 05/96] ASoC: spear: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 06/96] ASoC: jz4740-i2c: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 07/96] ASoC: ep93xx: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 08/96] ASoC: stm32: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 09/96] ASoC: bcm: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 10/96] ASoC: sh: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 11/96] ASoC: tegra: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 12/96] ASoC: hisilicon: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 13/96] ASoC: xilinx: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 14/96] ASoC: sunxi: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 15/96] ASoC: Intel: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 16/96] ASoC: meson: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 17/96] ASoC: sti-uniperf: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 18/96] ASoC: amd: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 19/96] ASoC: atmel: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 20/96] ASoC: fsl: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 21/96] ASoC: xtensa: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 22/96] ASoC: adi: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 23/96] ASoC: dwc: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 24/96] ASoC: qcom: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 25/96] ASoC: test-component: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 26/96] ASoC: rockchip: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 27/96] ASoC: au1x: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 28/96] ASoC: pxa: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 29/96] ASoC: sof: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 30/96] ASoC: ux500: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 31/96] ASoC: ti: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 32/96] ASoC: mxs-saif: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 33/96] ASoC: samsung: " Charles Keepax
2022-06-23 12:51 ` Charles Keepax [this message]
2022-06-23 12:51 ` [PATCH v2 35/96] media: TDA1997x: Remove now redundant non_legacy_dai_naming flag Charles Keepax
2022-06-23 12:51 ` [PATCH v2 36/96] ASoC: fsl: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 37/96] ASoC: meson: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 38/96] ASoC: pistachio: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 39/96] ASoC: samsung: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 40/96] ASoC: soc-utils: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 41/96] ASoC: sunxi: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 42/96] ASoC: tegra: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 43/96] ASoC: test-component: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 44/96] ASoC: topology: KUnit: " Charles Keepax
2022-06-23 12:51 ` [PATCH v2 45/96] ASoC: uniphier: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 46/96] ASoC: ad*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 47/96] ASoC: ak*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 48/96] ASoC: alc*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 49/96] ASoC: cs*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 50/96] ASoC: da*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 51/96] ASoC: es*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 52/96] ASoC: max*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 53/96] ASoC: msm*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 54/96] ASoC: nau*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 55/96] ASoC: pcm*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 56/96] ASoC: rt*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 57/96] ASoC: spdif: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 58/96] ASoC: ssm*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 59/96] ASoC: sta*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 60/96] ASoC: tas*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 61/96] ASoC: tfa*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 62/96] ASoC: tlv320*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 63/96] ASoC: twl*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 64/96] ASoC: uda*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 65/96] ASoC: wm*: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 66/96] ASoC: 88pm860x: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 67/96] ASoC: ab8500: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 68/96] ASoC: ac97: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 69/96] ASoC: ads117x: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 70/96] ASoC: bd28623: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 71/96] ASoC: bt-sco: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 72/96] ASoC: cpcap: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 73/96] ASoC: cq93vc: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 74/96] ASoC: cx20442: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 75/96] ASoC: dmic: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 76/96] ASoC: gtm601: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 77/96] ASoC: hdac_hdmi: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 78/96] ASoC: hdmi-codec: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 79/96] ASoC: ics43432: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 80/96] ASoC: inno_rk3036: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 81/96] ASoC: Intel: avs: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 82/96] ASoC: isabelle: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 83/96] ASoC: jz4740: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 84/96] ASoC: lm49453: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 85/96] ASoC: lochnagar: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 86/96] ASoC: mc13783: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 87/96] ASoC: ml26124: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 88/96] ASoC: rk817: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 89/96] ASoC: sgtl5000: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 90/96] ASoC: si476x: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 91/96] ASoC: stac9766: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 92/96] ASoC: sti-sas: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 93/96] ASoC: tscs42xx: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 94/96] ASoC: wl1273: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 95/96] ASoC: zl38060: " Charles Keepax
2022-06-23 12:52 ` [PATCH v2 96/96] ASoC: soc-component: Remove " Charles Keepax
2022-06-29 16:23 ` [PATCH v2 00/96] Refactor " Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220623125250.2355471-35-ckeepax@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=airlied@linux.ie \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=cezary.rojewski@intel.com \
--cc=daniel@ffwll.ch \
--cc=daniel@zonque.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=frattaroli.nicolas@gmail.com \
--cc=heiko@sntech.de \
--cc=jarkko.nikula@bitmer.com \
--cc=jbrunet@baylibre.com \
--cc=kernel@pengutronix.de \
--cc=krzk@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-mips@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux-sunxi@lists.linux.dev \
--cc=linux-tegra@vger.kernel.org \
--cc=linux-xtensa@linux-xtensa.org \
--cc=mripard@kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=nsaenz@kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=peter.ujfalusi@gmail.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=shawnguo@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox