Unverified Commit f450b5db authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown
Browse files

ASoC: sunxi: Migrate to new style legacy DAI naming flag



Change the legacy DAI naming flag from opting in to the new scheme
(non_legacy_dai_naming), to opting out of it (legacy_dai_naming).
These drivers appear to be on the CPU side of the DAI link and
currently uses the legacy naming, so add the new flag.

Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220623125250.2355471-15-ckeepax@opensource.cirrus.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bd486b07
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1235,6 +1235,7 @@ static const struct snd_soc_component_driver sun8i_a23_codec_codec = {

static const struct snd_soc_component_driver sun4i_codec_component = {
	.name			= "sun4i-codec",
	.legacy_dai_naming	= 1,
};

#define SUN4I_CODEC_RATES	SNDRV_PCM_RATE_CONTINUOUS
+2 −1
Original line number Diff line number Diff line
@@ -1126,6 +1126,7 @@ static struct snd_soc_dai_driver sun4i_i2s_dai = {

static const struct snd_soc_component_driver sun4i_i2s_component = {
	.name			= "sun4i-dai",
	.legacy_dai_naming	= 1,
};

static bool sun4i_i2s_rd_reg(struct device *dev, unsigned int reg)
+2 −1
Original line number Diff line number Diff line
@@ -584,6 +584,7 @@ MODULE_DEVICE_TABLE(of, sun4i_spdif_of_match);

static const struct snd_soc_component_driver sun4i_spdif_component = {
	.name			= "sun4i-spdif",
	.legacy_dai_naming	= 1,
};

static int sun4i_spdif_runtime_suspend(struct device *dev)