mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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 <amadeuszx.slawinski@linux.intel.com> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20221125184032.2565979-9-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2f292443b4
commit
1fa675a00a
|
|
@ -15,6 +15,8 @@
|
||||||
#include <sound/soc-acpi.h>
|
#include <sound/soc-acpi.h>
|
||||||
#include "../../../codecs/rt298.h"
|
#include "../../../codecs/rt298.h"
|
||||||
|
|
||||||
|
#define RT298_CODEC_DAI "rt298-aif1"
|
||||||
|
|
||||||
static const struct dmi_system_id kblr_dmi_table[] = {
|
static const struct dmi_system_id kblr_dmi_table[] = {
|
||||||
{
|
{
|
||||||
.matches = {
|
.matches = {
|
||||||
|
|
@ -147,7 +149,7 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in
|
||||||
|
|
||||||
dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port);
|
dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port);
|
||||||
dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-INT343A:00");
|
dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-INT343A:00");
|
||||||
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, "rt298-aif1");
|
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, RT298_CODEC_DAI);
|
||||||
if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name)
|
if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user