Skip to content

Commit 1fa675a

Browse files
Amadeusz Sławińskibroonie
authored andcommitted
ASoC: Intel: avs: rt298: 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 2f29244 commit 1fa675a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include <sound/soc-acpi.h>
1616
#include "../../../codecs/rt298.h"
1717

18+
#define RT298_CODEC_DAI "rt298-aif1"
19+
1820
static const struct dmi_system_id kblr_dmi_table[] = {
1921
{
2022
.matches = {
@@ -147,7 +149,7 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in
147149

148150
dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port);
149151
dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-INT343A:00");
150-
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, "rt298-aif1");
152+
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, RT298_CODEC_DAI);
151153
if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name)
152154
return -ENOMEM;
153155

0 commit comments

Comments
 (0)