Skip to content

Commit 58391e7

Browse files
Amadeusz Sławińskibroonie
authored andcommitted
ASoC: Intel: avs: rt274: Refer to DAI name through a constant
There is existing define for codec DAI name, make use of it when setting codec DAI name. 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 9febcd7 commit 58391e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in
160160

161161
dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port);
162162
dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-INT34C2:00");
163-
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, "rt274-aif1");
163+
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, RT274_CODEC_DAI);
164164
if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name)
165165
return -ENOMEM;
166166

0 commit comments

Comments
 (0)