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

ASoC: img: 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-5-ckeepax@opensource.cirrus.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent db827cb3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -386,7 +386,8 @@ static int img_i2s_in_dai_probe(struct snd_soc_dai *dai)
}

static const struct snd_soc_component_driver img_i2s_in_component = {
	.name = "img-i2s-in"
	.name = "img-i2s-in",
	.legacy_dai_naming = 1,
};

static int img_i2s_in_dma_prepare_slave_config(struct snd_pcm_substream *st,
+2 −1
Original line number Diff line number Diff line
@@ -394,7 +394,8 @@ static int img_i2s_out_dai_probe(struct snd_soc_dai *dai)
}

static const struct snd_soc_component_driver img_i2s_out_component = {
	.name = "img-i2s-out"
	.name = "img-i2s-out",
	.legacy_dai_naming = 1,
};

static int img_i2s_out_dma_prepare_slave_config(struct snd_pcm_substream *st,
+2 −1
Original line number Diff line number Diff line
@@ -201,7 +201,8 @@ static struct snd_soc_dai_driver img_prl_out_dai = {
};

static const struct snd_soc_component_driver img_prl_out_component = {
	.name = "img-prl-out"
	.name = "img-prl-out",
	.legacy_dai_naming = 1,
};

static int img_prl_out_probe(struct platform_device *pdev)
+2 −1
Original line number Diff line number Diff line
@@ -711,7 +711,8 @@ static struct snd_soc_dai_driver img_spdif_in_dai = {
};

static const struct snd_soc_component_driver img_spdif_in_component = {
	.name = "img-spdif-in"
	.name = "img-spdif-in",
	.legacy_dai_naming = 1,
};

static int img_spdif_in_probe(struct platform_device *pdev)
+2 −1
Original line number Diff line number Diff line
@@ -316,7 +316,8 @@ static struct snd_soc_dai_driver img_spdif_out_dai = {
};

static const struct snd_soc_component_driver img_spdif_out_component = {
	.name = "img-spdif-out"
	.name = "img-spdif-out",
	.legacy_dai_naming = 1,
};

static int img_spdif_out_probe(struct platform_device *pdev)