Skip to content

Commit af8ced4

Browse files
Amadeusz Sławińskibroonie
authored andcommitted
ASoC: Intel: avs: rt286: 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 a08797a commit af8ced4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

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

17+
#define RT286_CODEC_DAI "rt286-aif1"
18+
1719
static const struct snd_kcontrol_new card_controls[] = {
1820
SOC_DAPM_PIN_SWITCH("Headphone Jack"),
1921
SOC_DAPM_PIN_SWITCH("Mic Jack"),
@@ -130,7 +132,7 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in
130132

131133
dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port);
132134
dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-INT343A:00");
133-
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, "rt286-aif1");
135+
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, RT286_CODEC_DAI);
134136
if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name)
135137
return -ENOMEM;
136138

0 commit comments

Comments
 (0)