Skip to content

Commit 19bb7c3

Browse files
Amadeusz Sławińskibroonie
authored andcommitted
ASoC: Intel: avs: rt5682: Add define for codec DAI name
Following commits will make use of it to find codec DAI, define it first. Signed-off-by: Amadeusz Sławiński <[email protected]> Signed-off-by: Cezary Rojewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f4f473f commit 19bb7c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/intel/avs/boards/rt5682.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define AVS_RT5682_SSP_CODEC_MASK (GENMASK(2, 0))
2727
#define AVS_RT5682_MCLK_EN BIT(3)
2828
#define AVS_RT5682_MCLK_24MHZ BIT(4)
29+
#define AVS_RT5682_CODEC_DAI_NAME "rt5682-aif1"
2930

3031
/* Default: MCLK on, MCLK 19.2M, SSP0 */
3132
static unsigned long avs_rt5682_quirk = AVS_RT5682_MCLK_EN | AVS_RT5682_SSP_CODEC(0);
@@ -184,7 +185,7 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in
184185

185186
dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port);
186187
dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-10EC5682:00");
187-
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, "rt5682-aif1");
188+
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, AVS_RT5682_CODEC_DAI_NAME);
188189
if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name)
189190
return -ENOMEM;
190191

0 commit comments

Comments
 (0)