Commit 45f1b12e authored by Mark Brown's avatar Mark Brown

ASoC: Intel: more machine driver updates for 6.7

Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:

Two nice cleanups from Brent Lu and Charles Keepax, and one RaptorLake
update.
parents 897d8e86 f6b415fa
...@@ -36,9 +36,49 @@ int sof_intel_board_card_late_probe(struct snd_soc_card *card) ...@@ -36,9 +36,49 @@ int sof_intel_board_card_late_probe(struct snd_soc_card *card)
} }
EXPORT_SYMBOL_NS(sof_intel_board_card_late_probe, SND_SOC_INTEL_SOF_BOARD_HELPERS); EXPORT_SYMBOL_NS(sof_intel_board_card_late_probe, SND_SOC_INTEL_SOF_BOARD_HELPERS);
/*
* DMIC DAI Link
*/
static const struct snd_soc_dapm_widget dmic_widgets[] = {
SND_SOC_DAPM_MIC("SoC DMIC", NULL),
};
static const struct snd_soc_dapm_route dmic_routes[] = {
{"DMic", NULL, "SoC DMIC"},
};
static int dmic_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_card *card = rtd->card;
int ret;
ret = snd_soc_dapm_new_controls(&card->dapm, dmic_widgets,
ARRAY_SIZE(dmic_widgets));
if (ret) {
dev_err(rtd->dev, "fail to add dmic widgets, ret %d\n", ret);
return ret;
}
ret = snd_soc_dapm_add_routes(&card->dapm, dmic_routes,
ARRAY_SIZE(dmic_routes));
if (ret) {
dev_err(rtd->dev, "fail to add dmic routes, ret %d\n", ret);
return ret;
}
return 0;
}
/* /*
* DAI Link Helpers * DAI Link Helpers
*/ */
static struct snd_soc_dai_link_component dmic_component[] = {
{
.name = "dmic-codec",
.dai_name = "dmic-hifi",
}
};
static struct snd_soc_dai_link_component platform_component[] = { static struct snd_soc_dai_link_component platform_component[] = {
{ {
/* name might be overridden during probe */ /* name might be overridden during probe */
...@@ -46,6 +86,58 @@ static struct snd_soc_dai_link_component platform_component[] = { ...@@ -46,6 +86,58 @@ static struct snd_soc_dai_link_component platform_component[] = {
} }
}; };
int sof_intel_board_set_dmic_link(struct device *dev,
struct snd_soc_dai_link *link, int be_id,
enum sof_dmic_be_type be_type)
{
struct snd_soc_dai_link_component *cpus;
/* cpus */
cpus = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link_component),
GFP_KERNEL);
if (!cpus)
return -ENOMEM;
switch (be_type) {
case SOF_DMIC_01:
dev_dbg(dev, "link %d: dmic01\n", be_id);
link->name = "dmic01";
cpus->dai_name = "DMIC01 Pin";
break;
case SOF_DMIC_16K:
dev_dbg(dev, "link %d: dmic16k\n", be_id);
link->name = "dmic16k";
cpus->dai_name = "DMIC16k Pin";
break;
default:
dev_err(dev, "invalid be type %d\n", be_type);
return -EINVAL;
}
link->cpus = cpus;
link->num_cpus = 1;
/* codecs */
link->codecs = dmic_component;
link->num_codecs = ARRAY_SIZE(dmic_component);
/* platforms */
link->platforms = platform_component;
link->num_platforms = ARRAY_SIZE(platform_component);
link->id = be_id;
if (be_type == SOF_DMIC_01)
link->init = dmic_init;
link->ignore_suspend = 1;
link->no_pcm = 1;
link->dpcm_capture = 1;
return 0;
}
EXPORT_SYMBOL_NS(sof_intel_board_set_dmic_link, SND_SOC_INTEL_SOF_BOARD_HELPERS);
int sof_intel_board_set_intel_hdmi_link(struct device *dev, int sof_intel_board_set_intel_hdmi_link(struct device *dev,
struct snd_soc_dai_link *link, int be_id, struct snd_soc_dai_link *link, int be_id,
int hdmi_id, bool idisp_codec) int hdmi_id, bool idisp_codec)
......
...@@ -28,6 +28,7 @@ struct sof_rt5682_private { ...@@ -28,6 +28,7 @@ struct sof_rt5682_private {
* @hdmi: init data for hdmi dai link * @hdmi: init data for hdmi dai link
* @codec_type: type of headset codec * @codec_type: type of headset codec
* @amp_type: type of speaker amplifier * @amp_type: type of speaker amplifier
* @dmic_be_num: number of Intel PCH DMIC BE link
* @hdmi_num: number of Intel HDMI BE link * @hdmi_num: number of Intel HDMI BE link
* @rt5682: private data for rt5682 machine driver * @rt5682: private data for rt5682 machine driver
*/ */
...@@ -38,6 +39,7 @@ struct sof_card_private { ...@@ -38,6 +39,7 @@ struct sof_card_private {
enum sof_ssp_codec codec_type; enum sof_ssp_codec codec_type;
enum sof_ssp_codec amp_type; enum sof_ssp_codec amp_type;
int dmic_be_num;
int hdmi_num; int hdmi_num;
union { union {
...@@ -45,8 +47,16 @@ struct sof_card_private { ...@@ -45,8 +47,16 @@ struct sof_card_private {
}; };
}; };
enum sof_dmic_be_type {
SOF_DMIC_01,
SOF_DMIC_16K,
};
int sof_intel_board_card_late_probe(struct snd_soc_card *card); int sof_intel_board_card_late_probe(struct snd_soc_card *card);
int sof_intel_board_set_dmic_link(struct device *dev,
struct snd_soc_dai_link *link, int be_id,
enum sof_dmic_be_type be_type);
int sof_intel_board_set_intel_hdmi_link(struct device *dev, int sof_intel_board_set_intel_hdmi_link(struct device *dev,
struct snd_soc_dai_link *link, int be_id, struct snd_soc_dai_link *link, int be_id,
int hdmi_id, bool idisp_codec); int hdmi_id, bool idisp_codec);
......
...@@ -160,10 +160,6 @@ static const struct snd_soc_dapm_widget sof_widgets[] = { ...@@ -160,10 +160,6 @@ static const struct snd_soc_dapm_widget sof_widgets[] = {
SND_SOC_DAPM_MIC("Headset Mic", NULL), SND_SOC_DAPM_MIC("Headset Mic", NULL),
}; };
static const struct snd_soc_dapm_widget dmic_widgets[] = {
SND_SOC_DAPM_MIC("SoC DMIC", NULL),
};
static const struct snd_soc_dapm_route sof_map[] = { static const struct snd_soc_dapm_route sof_map[] = {
/* HP jack connectors - unknown if we have jack detection */ /* HP jack connectors - unknown if we have jack detection */
{"Headphone Jack", NULL, "HP"}, {"Headphone Jack", NULL, "HP"},
...@@ -172,33 +168,6 @@ static const struct snd_soc_dapm_route sof_map[] = { ...@@ -172,33 +168,6 @@ static const struct snd_soc_dapm_route sof_map[] = {
{"HS", NULL, "Headset Mic"}, {"HS", NULL, "Headset Mic"},
}; };
static const struct snd_soc_dapm_route dmic_map[] = {
/* digital mics */
{"DMic", NULL, "SoC DMIC"},
};
static int dmic_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_card *card = rtd->card;
int ret;
ret = snd_soc_dapm_new_controls(&card->dapm, dmic_widgets,
ARRAY_SIZE(dmic_widgets));
if (ret) {
dev_err(card->dev, "DMic widget addition failed: %d\n", ret);
/* Don't need to add routes if widget addition failed */
return ret;
}
ret = snd_soc_dapm_add_routes(&card->dapm, dmic_map,
ARRAY_SIZE(dmic_map));
if (ret)
dev_err(card->dev, "DMic map addition failed: %d\n", ret);
return ret;
}
/* sof audio machine driver for cs42l42 codec */ /* sof audio machine driver for cs42l42 codec */
static struct snd_soc_card sof_audio_card_cs42l42 = { static struct snd_soc_card sof_audio_card_cs42l42 = {
.name = "cs42l42", /* the sof- prefix is added by the core */ .name = "cs42l42", /* the sof- prefix is added by the core */
...@@ -220,13 +189,6 @@ static struct snd_soc_dai_link_component cs42l42_component[] = { ...@@ -220,13 +189,6 @@ static struct snd_soc_dai_link_component cs42l42_component[] = {
} }
}; };
static struct snd_soc_dai_link_component dmic_component[] = {
{
.name = "dmic-codec",
.dai_name = "dmic-hifi",
}
};
static int create_spk_amp_dai_links(struct device *dev, static int create_spk_amp_dai_links(struct device *dev,
struct snd_soc_dai_link *links, struct snd_soc_dai_link *links,
struct snd_soc_dai_link_component *cpus, struct snd_soc_dai_link_component *cpus,
...@@ -322,47 +284,6 @@ static int create_hp_codec_dai_links(struct device *dev, ...@@ -322,47 +284,6 @@ static int create_hp_codec_dai_links(struct device *dev,
return -ENOMEM; return -ENOMEM;
} }
static int create_dmic_dai_links(struct device *dev,
struct snd_soc_dai_link *links,
struct snd_soc_dai_link_component *cpus,
int *id, int dmic_be_num)
{
int i;
/* dmic */
if (dmic_be_num <= 0)
return 0;
/* at least we have dmic01 */
links[*id].name = "dmic01";
links[*id].cpus = &cpus[*id];
links[*id].cpus->dai_name = "DMIC01 Pin";
links[*id].init = dmic_init;
if (dmic_be_num > 1) {
/* set up 2 BE links at most */
links[*id + 1].name = "dmic16k";
links[*id + 1].cpus = &cpus[*id + 1];
links[*id + 1].cpus->dai_name = "DMIC16k Pin";
dmic_be_num = 2;
}
for (i = 0; i < dmic_be_num; i++) {
links[*id].id = *id;
links[*id].num_cpus = 1;
links[*id].codecs = dmic_component;
links[*id].num_codecs = ARRAY_SIZE(dmic_component);
links[*id].platforms = platform_component;
links[*id].num_platforms = ARRAY_SIZE(platform_component);
links[*id].ignore_suspend = 1;
links[*id].dpcm_capture = 1;
links[*id].no_pcm = 1;
(*id)++;
}
return 0;
}
static int create_bt_offload_dai_links(struct device *dev, static int create_bt_offload_dai_links(struct device *dev,
struct snd_soc_dai_link *links, struct snd_soc_dai_link *links,
struct snd_soc_dai_link_component *cpus, struct snd_soc_dai_link_component *cpus,
...@@ -446,11 +367,34 @@ sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec amp_type, ...@@ -446,11 +367,34 @@ sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec amp_type,
} }
break; break;
case LINK_DMIC: case LINK_DMIC:
ret = create_dmic_dai_links(dev, links, cpus, &id, dmic_be_num); if (dmic_be_num > 0) {
if (ret < 0) { /* at least we have dmic01 */
dev_err(dev, "fail to create dmic dai links, ret %d\n", ret = sof_intel_board_set_dmic_link(dev,
ret); &links[id],
goto devm_err; id,
SOF_DMIC_01);
if (ret) {
dev_err(dev, "fail to create dmic01 link, ret %d\n",
ret);
goto devm_err;
}
id++;
}
if (dmic_be_num > 1) {
/* set up 2 BE links at most */
ret = sof_intel_board_set_dmic_link(dev,
&links[id],
id,
SOF_DMIC_16K);
if (ret) {
dev_err(dev, "fail to create dmic16k link, ret %d\n",
ret);
goto devm_err;
}
id++;
} }
break; break;
case LINK_HDMI: case LINK_HDMI:
...@@ -496,7 +440,6 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -496,7 +440,6 @@ static int sof_audio_probe(struct platform_device *pdev)
struct snd_soc_acpi_mach *mach = pdev->dev.platform_data; struct snd_soc_acpi_mach *mach = pdev->dev.platform_data;
struct snd_soc_dai_link *dai_links; struct snd_soc_dai_link *dai_links;
struct sof_card_private *ctx; struct sof_card_private *ctx;
int dmic_be_num;
int ret, ssp_bt, ssp_amp, ssp_codec; int ret, ssp_bt, ssp_amp, ssp_codec;
ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
...@@ -510,10 +453,10 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -510,10 +453,10 @@ static int sof_audio_probe(struct platform_device *pdev)
ctx->amp_type = sof_ssp_detect_amp_type(&pdev->dev); ctx->amp_type = sof_ssp_detect_amp_type(&pdev->dev);
if (soc_intel_is_glk()) { if (soc_intel_is_glk()) {
dmic_be_num = 1; ctx->dmic_be_num = 1;
ctx->hdmi_num = 3; ctx->hdmi_num = 3;
} else { } else {
dmic_be_num = 2; ctx->dmic_be_num = 2;
ctx->hdmi_num = (sof_cs42l42_quirk & SOF_CS42L42_NUM_HDMIDEV_MASK) >> ctx->hdmi_num = (sof_cs42l42_quirk & SOF_CS42L42_NUM_HDMIDEV_MASK) >>
SOF_CS42L42_NUM_HDMIDEV_SHIFT; SOF_CS42L42_NUM_HDMIDEV_SHIFT;
/* default number of HDMI DAI's */ /* default number of HDMI DAI's */
...@@ -535,7 +478,7 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -535,7 +478,7 @@ static int sof_audio_probe(struct platform_device *pdev)
ssp_codec = sof_cs42l42_quirk & SOF_CS42L42_SSP_CODEC_MASK; ssp_codec = sof_cs42l42_quirk & SOF_CS42L42_SSP_CODEC_MASK;
/* compute number of dai links */ /* compute number of dai links */
sof_audio_card_cs42l42.num_links = 1 + dmic_be_num + ctx->hdmi_num; sof_audio_card_cs42l42.num_links = 1 + ctx->dmic_be_num + ctx->hdmi_num;
if (ctx->amp_type != CODEC_NONE) if (ctx->amp_type != CODEC_NONE)
sof_audio_card_cs42l42.num_links++; sof_audio_card_cs42l42.num_links++;
...@@ -544,7 +487,7 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -544,7 +487,7 @@ static int sof_audio_probe(struct platform_device *pdev)
dai_links = sof_card_dai_links_create(&pdev->dev, ctx->amp_type, dai_links = sof_card_dai_links_create(&pdev->dev, ctx->amp_type,
ssp_codec, ssp_amp, ssp_bt, ssp_codec, ssp_amp, ssp_bt,
dmic_be_num, ctx->hdmi_num, ctx->dmic_be_num, ctx->hdmi_num,
ctx->hdmi.idisp_codec); ctx->hdmi.idisp_codec);
if (!dai_links) if (!dai_links)
return -ENOMEM; return -ENOMEM;
......
...@@ -177,10 +177,6 @@ static const struct snd_soc_dapm_widget sof_widgets[] = { ...@@ -177,10 +177,6 @@ static const struct snd_soc_dapm_widget sof_widgets[] = {
SND_SOC_DAPM_SPK("Right Spk", NULL), SND_SOC_DAPM_SPK("Right Spk", NULL),
}; };
static const struct snd_soc_dapm_widget dmic_widgets[] = {
SND_SOC_DAPM_MIC("SoC DMIC", NULL),
};
static const struct snd_soc_dapm_route sof_map[] = { static const struct snd_soc_dapm_route sof_map[] = {
/* HP jack connectors - unknown if we have jack detection */ /* HP jack connectors - unknown if we have jack detection */
{ "Headphone Jack", NULL, "HPOL" }, { "Headphone Jack", NULL, "HPOL" },
...@@ -190,33 +186,6 @@ static const struct snd_soc_dapm_route sof_map[] = { ...@@ -190,33 +186,6 @@ static const struct snd_soc_dapm_route sof_map[] = {
{ "MIC", NULL, "Headset Mic" }, { "MIC", NULL, "Headset Mic" },
}; };
static const struct snd_soc_dapm_route dmic_map[] = {
/* digital mics */
{"DMic", NULL, "SoC DMIC"},
};
static int dmic_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_card *card = rtd->card;
int ret;
ret = snd_soc_dapm_new_controls(&card->dapm, dmic_widgets,
ARRAY_SIZE(dmic_widgets));
if (ret) {
dev_err(card->dev, "DMic widget addition failed: %d\n", ret);
/* Don't need to add routes if widget addition failed */
return ret;
}
ret = snd_soc_dapm_add_routes(&card->dapm, dmic_map,
ARRAY_SIZE(dmic_map));
if (ret)
dev_err(card->dev, "DMic map addition failed: %d\n", ret);
return ret;
}
/* sof audio machine driver for nau8825 codec */ /* sof audio machine driver for nau8825 codec */
static struct snd_soc_card sof_audio_card_nau8825 = { static struct snd_soc_card sof_audio_card_nau8825 = {
.name = "nau8825", /* the sof- prefix is added by the core */ .name = "nau8825", /* the sof- prefix is added by the core */
...@@ -238,13 +207,6 @@ static struct snd_soc_dai_link_component nau8825_component[] = { ...@@ -238,13 +207,6 @@ static struct snd_soc_dai_link_component nau8825_component[] = {
} }
}; };
static struct snd_soc_dai_link_component dmic_component[] = {
{
.name = "dmic-codec",
.dai_name = "dmic-hifi",
}
};
static struct snd_soc_dai_link * static struct snd_soc_dai_link *
sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec amp_type, sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec amp_type,
int ssp_codec, int ssp_amp, int dmic_be_num, int ssp_codec, int ssp_amp, int dmic_be_num,
...@@ -294,29 +256,21 @@ sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec amp_type, ...@@ -294,29 +256,21 @@ sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec amp_type,
/* dmic */ /* dmic */
if (dmic_be_num > 0) { if (dmic_be_num > 0) {
/* at least we have dmic01 */ /* at least we have dmic01 */
links[id].name = "dmic01"; ret = sof_intel_board_set_dmic_link(dev, &links[id], id,
links[id].cpus = &cpus[id]; SOF_DMIC_01);
links[id].cpus->dai_name = "DMIC01 Pin"; if (ret)
links[id].init = dmic_init; return NULL;
if (dmic_be_num > 1) {
/* set up 2 BE links at most */ id++;
links[id + 1].name = "dmic16k";
links[id + 1].cpus = &cpus[id + 1];
links[id + 1].cpus->dai_name = "DMIC16k Pin";
dmic_be_num = 2;
}
} }
for (i = 0; i < dmic_be_num; i++) { if (dmic_be_num > 1) {
links[id].id = id; /* set up 2 BE links at most */
links[id].num_cpus = 1; ret = sof_intel_board_set_dmic_link(dev, &links[id], id,
links[id].codecs = dmic_component; SOF_DMIC_16K);
links[id].num_codecs = ARRAY_SIZE(dmic_component); if (ret)
links[id].platforms = platform_component; return NULL;
links[id].num_platforms = ARRAY_SIZE(platform_component);
links[id].ignore_suspend = 1;
links[id].dpcm_capture = 1;
links[id].no_pcm = 1;
id++; id++;
} }
...@@ -414,7 +368,6 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -414,7 +368,6 @@ static int sof_audio_probe(struct platform_device *pdev)
struct snd_soc_acpi_mach *mach = pdev->dev.platform_data; struct snd_soc_acpi_mach *mach = pdev->dev.platform_data;
struct snd_soc_dai_link *dai_links; struct snd_soc_dai_link *dai_links;
struct sof_card_private *ctx; struct sof_card_private *ctx;
int dmic_be_num;
int ret, ssp_amp, ssp_codec; int ret, ssp_amp, ssp_codec;
ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
...@@ -430,7 +383,7 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -430,7 +383,7 @@ static int sof_audio_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "sof_nau8825_quirk = %lx\n", sof_nau8825_quirk); dev_dbg(&pdev->dev, "sof_nau8825_quirk = %lx\n", sof_nau8825_quirk);
/* default number of DMIC DAI's */ /* default number of DMIC DAI's */
dmic_be_num = 2; ctx->dmic_be_num = 2;
ctx->hdmi_num = (sof_nau8825_quirk & SOF_NAU8825_NUM_HDMIDEV_MASK) >> ctx->hdmi_num = (sof_nau8825_quirk & SOF_NAU8825_NUM_HDMIDEV_MASK) >>
SOF_NAU8825_NUM_HDMIDEV_SHIFT; SOF_NAU8825_NUM_HDMIDEV_SHIFT;
/* default number of HDMI DAI's */ /* default number of HDMI DAI's */
...@@ -446,7 +399,7 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -446,7 +399,7 @@ static int sof_audio_probe(struct platform_device *pdev)
ssp_codec = sof_nau8825_quirk & SOF_NAU8825_SSP_CODEC_MASK; ssp_codec = sof_nau8825_quirk & SOF_NAU8825_SSP_CODEC_MASK;
/* compute number of dai links */ /* compute number of dai links */
sof_audio_card_nau8825.num_links = 1 + dmic_be_num + ctx->hdmi_num; sof_audio_card_nau8825.num_links = 1 + ctx->dmic_be_num + ctx->hdmi_num;
if (ctx->amp_type != CODEC_NONE) if (ctx->amp_type != CODEC_NONE)
sof_audio_card_nau8825.num_links++; sof_audio_card_nau8825.num_links++;
...@@ -455,8 +408,8 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -455,8 +408,8 @@ static int sof_audio_probe(struct platform_device *pdev)
sof_audio_card_nau8825.num_links++; sof_audio_card_nau8825.num_links++;
dai_links = sof_card_dai_links_create(&pdev->dev, ctx->amp_type, dai_links = sof_card_dai_links_create(&pdev->dev, ctx->amp_type,
ssp_codec, ssp_amp, dmic_be_num, ssp_codec, ssp_amp,
ctx->hdmi_num, ctx->dmic_be_num, ctx->hdmi_num,
ctx->hdmi.idisp_codec); ctx->hdmi.idisp_codec);
if (!dai_links) if (!dai_links)
return -ENOMEM; return -ENOMEM;
...@@ -553,6 +506,14 @@ static const struct platform_device_id board_ids[] = { ...@@ -553,6 +506,14 @@ static const struct platform_device_id board_ids[] = {
SOF_BT_OFFLOAD_SSP(2) | SOF_BT_OFFLOAD_SSP(2) |
SOF_SSP_BT_OFFLOAD_PRESENT), SOF_SSP_BT_OFFLOAD_PRESENT),
}, },
{
.name = "rpl_mx98360a_8825",
.driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) |
SOF_NAU8825_SSP_AMP(1) |
SOF_NAU8825_NUM_HDMIDEV(4) |
SOF_BT_OFFLOAD_SSP(2) |
SOF_SSP_BT_OFFLOAD_PRESENT),
},
{ {
.name = "rpl_nau8318_8825", .name = "rpl_nau8318_8825",
.driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) | .driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC(0) |
......
...@@ -503,10 +503,6 @@ static const struct snd_soc_dapm_widget sof_widgets[] = { ...@@ -503,10 +503,6 @@ static const struct snd_soc_dapm_widget sof_widgets[] = {
SND_SOC_DAPM_SPK("Right Spk", NULL), SND_SOC_DAPM_SPK("Right Spk", NULL),
}; };
static const struct snd_soc_dapm_widget dmic_widgets[] = {
SND_SOC_DAPM_MIC("SoC DMIC", NULL),
};
static const struct snd_soc_dapm_route sof_map[] = { static const struct snd_soc_dapm_route sof_map[] = {
/* HP jack connectors - unknown if we have jack detection */ /* HP jack connectors - unknown if we have jack detection */
{ "Headphone Jack", NULL, "HPOL" }, { "Headphone Jack", NULL, "HPOL" },
...@@ -522,11 +518,6 @@ static const struct snd_soc_dapm_route rt5650_spk_dapm_routes[] = { ...@@ -522,11 +518,6 @@ static const struct snd_soc_dapm_route rt5650_spk_dapm_routes[] = {
{ "Right Spk", NULL, "SPOR" }, { "Right Spk", NULL, "SPOR" },
}; };
static const struct snd_soc_dapm_route dmic_map[] = {
/* digital mics */
{"DMic", NULL, "SoC DMIC"},
};
static int rt5650_spk_init(struct snd_soc_pcm_runtime *rtd) static int rt5650_spk_init(struct snd_soc_pcm_runtime *rtd)
{ {
struct snd_soc_card *card = rtd->card; struct snd_soc_card *card = rtd->card;
...@@ -540,28 +531,6 @@ static int rt5650_spk_init(struct snd_soc_pcm_runtime *rtd) ...@@ -540,28 +531,6 @@ static int rt5650_spk_init(struct snd_soc_pcm_runtime *rtd)
return ret; return ret;
} }
static int dmic_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_card *card = rtd->card;
int ret;
ret = snd_soc_dapm_new_controls(&card->dapm, dmic_widgets,
ARRAY_SIZE(dmic_widgets));
if (ret) {
dev_err(card->dev, "DMic widget addition failed: %d\n", ret);
/* Don't need to add routes if widget addition failed */
return ret;
}
ret = snd_soc_dapm_add_routes(&card->dapm, dmic_map,
ARRAY_SIZE(dmic_map));
if (ret)
dev_err(card->dev, "DMic map addition failed: %d\n", ret);
return ret;
}
/* sof audio machine driver for rt5682 codec */ /* sof audio machine driver for rt5682 codec */
static struct snd_soc_card sof_audio_card_rt5682 = { static struct snd_soc_card sof_audio_card_rt5682 = {
.name = "rt5682", /* the sof- prefix is added by the core */ .name = "rt5682", /* the sof- prefix is added by the core */
...@@ -601,13 +570,6 @@ static struct snd_soc_dai_link_component rt5650_components[] = { ...@@ -601,13 +570,6 @@ static struct snd_soc_dai_link_component rt5650_components[] = {
} }
}; };
static struct snd_soc_dai_link_component dmic_component[] = {
{
.name = "dmic-codec",
.dai_name = "dmic-hifi",
}
};
static struct snd_soc_dai_link * static struct snd_soc_dai_link *
sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec codec_type, sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec codec_type,
enum sof_ssp_codec amp_type, int ssp_codec, enum sof_ssp_codec amp_type, int ssp_codec,
...@@ -692,29 +654,21 @@ sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec codec_type, ...@@ -692,29 +654,21 @@ sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec codec_type,
/* dmic */ /* dmic */
if (dmic_be_num > 0) { if (dmic_be_num > 0) {
/* at least we have dmic01 */ /* at least we have dmic01 */
links[id].name = "dmic01"; ret = sof_intel_board_set_dmic_link(dev, &links[id], id,
links[id].cpus = &cpus[id]; SOF_DMIC_01);
links[id].cpus->dai_name = "DMIC01 Pin"; if (ret)
links[id].init = dmic_init; return NULL;
if (dmic_be_num > 1) {
/* set up 2 BE links at most */ id++;
links[id + 1].name = "dmic16k";
links[id + 1].cpus = &cpus[id + 1];
links[id + 1].cpus->dai_name = "DMIC16k Pin";
dmic_be_num = 2;
}
} }
for (i = 0; i < dmic_be_num; i++) { if (dmic_be_num > 1) {
links[id].id = id; /* set up 2 BE links at most */
links[id].num_cpus = 1; ret = sof_intel_board_set_dmic_link(dev, &links[id], id,
links[id].codecs = dmic_component; SOF_DMIC_16K);
links[id].num_codecs = ARRAY_SIZE(dmic_component); if (ret)
links[id].platforms = platform_component; return NULL;
links[id].num_platforms = ARRAY_SIZE(platform_component);
links[id].ignore_suspend = 1;
links[id].dpcm_capture = 1;
links[id].no_pcm = 1;
id++; id++;
} }
...@@ -865,7 +819,6 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -865,7 +819,6 @@ static int sof_audio_probe(struct platform_device *pdev)
struct snd_soc_acpi_mach *mach = pdev->dev.platform_data; struct snd_soc_acpi_mach *mach = pdev->dev.platform_data;
struct snd_soc_dai_link *dai_links; struct snd_soc_dai_link *dai_links;
struct sof_card_private *ctx; struct sof_card_private *ctx;
int dmic_be_num;
int ret, ssp_amp, ssp_codec; int ret, ssp_amp, ssp_codec;
ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
...@@ -891,7 +844,7 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -891,7 +844,7 @@ static int sof_audio_probe(struct platform_device *pdev)
if (soc_intel_is_byt() || soc_intel_is_cht()) { if (soc_intel_is_byt() || soc_intel_is_cht()) {
ctx->rt5682.is_legacy_cpu = true; ctx->rt5682.is_legacy_cpu = true;
dmic_be_num = 0; ctx->dmic_be_num = 0;
/* HDMI is not supported by SOF on Baytrail/CherryTrail */ /* HDMI is not supported by SOF on Baytrail/CherryTrail */
ctx->hdmi_num = 0; ctx->hdmi_num = 0;
/* default quirk for legacy cpu */ /* default quirk for legacy cpu */
...@@ -899,7 +852,7 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -899,7 +852,7 @@ static int sof_audio_probe(struct platform_device *pdev)
SOF_RT5682_MCLK_BYTCHT_EN | SOF_RT5682_MCLK_BYTCHT_EN |
SOF_RT5682_SSP_CODEC(2); SOF_RT5682_SSP_CODEC(2);
} else { } else {
dmic_be_num = 2; ctx->dmic_be_num = 2;
ctx->hdmi_num = (sof_rt5682_quirk & SOF_RT5682_NUM_HDMIDEV_MASK) >> ctx->hdmi_num = (sof_rt5682_quirk & SOF_RT5682_NUM_HDMIDEV_MASK) >>
SOF_RT5682_NUM_HDMIDEV_SHIFT; SOF_RT5682_NUM_HDMIDEV_SHIFT;
/* default number of HDMI DAI's */ /* default number of HDMI DAI's */
...@@ -938,7 +891,7 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -938,7 +891,7 @@ static int sof_audio_probe(struct platform_device *pdev)
ssp_codec = sof_rt5682_quirk & SOF_RT5682_SSP_CODEC_MASK; ssp_codec = sof_rt5682_quirk & SOF_RT5682_SSP_CODEC_MASK;
/* compute number of dai links */ /* compute number of dai links */
sof_audio_card_rt5682.num_links = 1 + dmic_be_num + ctx->hdmi_num; sof_audio_card_rt5682.num_links = 1 + ctx->dmic_be_num + ctx->hdmi_num;
if (ctx->amp_type != CODEC_NONE) if (ctx->amp_type != CODEC_NONE)
sof_audio_card_rt5682.num_links++; sof_audio_card_rt5682.num_links++;
...@@ -953,7 +906,7 @@ static int sof_audio_probe(struct platform_device *pdev) ...@@ -953,7 +906,7 @@ static int sof_audio_probe(struct platform_device *pdev)
dai_links = sof_card_dai_links_create(&pdev->dev, ctx->codec_type, dai_links = sof_card_dai_links_create(&pdev->dev, ctx->codec_type,
ctx->amp_type, ssp_codec, ssp_amp, ctx->amp_type, ssp_codec, ssp_amp,
dmic_be_num, ctx->hdmi_num, ctx->dmic_be_num, ctx->hdmi_num,
ctx->hdmi.idisp_codec, ctx->hdmi.idisp_codec,
ctx->rt5682.is_legacy_cpu); ctx->rt5682.is_legacy_cpu);
if (!dai_links) if (!dai_links)
......
...@@ -939,16 +939,16 @@ static struct sof_sdw_codec_info codec_info_list[] = { ...@@ -939,16 +939,16 @@ static struct sof_sdw_codec_info codec_info_list[] = {
{ {
.direction = {false, true}, .direction = {false, true},
.dai_name = "cs42l43-dp1", .dai_name = "cs42l43-dp1",
.dai_type = SOF_SDW_DAI_TYPE_JACK, .dai_type = SOF_SDW_DAI_TYPE_MIC,
.dailink = {SDW_UNUSED_DAI_ID, SDW_JACK_IN_DAI_ID}, .dailink = {SDW_UNUSED_DAI_ID, SDW_DMIC_DAI_ID},
.init = sof_sdw_cs42l43_dmic_init,
}, },
{ {
.direction = {false, true}, .direction = {false, true},
.dai_name = "cs42l43-dp2", .dai_name = "cs42l43-dp2",
.dai_type = SOF_SDW_DAI_TYPE_MIC, .dai_type = SOF_SDW_DAI_TYPE_JACK,
.dailink = {SDW_UNUSED_DAI_ID, SDW_DMIC_DAI_ID}, .dailink = {SDW_UNUSED_DAI_ID, SDW_JACK_IN_DAI_ID},
.init = sof_sdw_cs42l43_dmic_init, },
}
}, },
.dai_num = 3, .dai_num = 3,
}, },
...@@ -1409,7 +1409,7 @@ static int create_sdw_dailink(struct snd_soc_card *card, int *link_index, ...@@ -1409,7 +1409,7 @@ static int create_sdw_dailink(struct snd_soc_card *card, int *link_index,
continue; continue;
/* j reset after loop, adr_index only applies to first link */ /* j reset after loop, adr_index only applies to first link */
for (; j < adr_link_next->num_adr; j++) { for (; j < adr_link_next->num_adr && codec_dlc_index < codec_num; j++) {
const struct snd_soc_acpi_endpoint *endpoints; const struct snd_soc_acpi_endpoint *endpoints;
endpoints = adr_link_next->adr_d[j].endpoints; endpoints = adr_link_next->adr_d[j].endpoints;
......
...@@ -39,6 +39,17 @@ static const struct snd_soc_dapm_route cs42l43_dmic_map[] = { ...@@ -39,6 +39,17 @@ static const struct snd_soc_dapm_route cs42l43_dmic_map[] = {
{ "cs42l43 PDM2_DIN", NULL, "DMIC" }, { "cs42l43 PDM2_DIN", NULL, "DMIC" },
}; };
static struct snd_soc_jack_pin sof_jack_pins[] = {
{
.pin = "Headphone",
.mask = SND_JACK_HEADPHONE,
},
{
.pin = "Headset Mic",
.mask = SND_JACK_MICROPHONE,
},
};
static int cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd) static int cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd)
{ {
struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
...@@ -47,7 +58,8 @@ static int cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd) ...@@ -47,7 +58,8 @@ static int cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd)
struct snd_soc_card *card = rtd->card; struct snd_soc_card *card = rtd->card;
int ret; int ret;
card->components = devm_kasprintf(card->dev, GFP_KERNEL, "%s hs:cs42l43", card->components); card->components = devm_kasprintf(card->dev, GFP_KERNEL, "%s hs:cs42l43",
card->components);
if (!card->components) if (!card->components)
return -ENOMEM; return -ENOMEM;
...@@ -60,18 +72,18 @@ static int cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd) ...@@ -60,18 +72,18 @@ static int cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd)
ret = snd_soc_dapm_add_routes(&card->dapm, cs42l43_hs_map, ret = snd_soc_dapm_add_routes(&card->dapm, cs42l43_hs_map,
ARRAY_SIZE(cs42l43_hs_map)); ARRAY_SIZE(cs42l43_hs_map));
if (ret) { if (ret) {
dev_err(card->dev, "cs42l43 hs map addition failed: %d\n", ret); dev_err(card->dev, "cs42l43 hs map addition failed: %d\n", ret);
return ret; return ret;
} }
ret = snd_soc_card_jack_new(card, "Headphone Jack", ret = snd_soc_card_jack_new_pins(card, "Jack",
SND_JACK_MECHANICAL | SND_JACK_AVOUT | SND_JACK_MECHANICAL | SND_JACK_AVOUT |
SND_JACK_HEADSET | SND_JACK_LINEOUT | SND_JACK_HEADSET | SND_JACK_LINEOUT |
SND_JACK_BTN_0 | SND_JACK_BTN_1 | SND_JACK_BTN_0 | SND_JACK_BTN_1 |
SND_JACK_BTN_2 | SND_JACK_BTN_3, SND_JACK_BTN_2 | SND_JACK_BTN_3,
jack); jack, sof_jack_pins,
ARRAY_SIZE(sof_jack_pins));
if (ret) { if (ret) {
dev_err(card->dev, "Failed to create jack: %d\n", ret); dev_err(card->dev, "Failed to create jack: %d\n", ret);
return ret; return ret;
...@@ -104,7 +116,6 @@ int sof_sdw_cs42l43_hs_init(struct snd_soc_card *card, const struct snd_soc_acpi ...@@ -104,7 +116,6 @@ int sof_sdw_cs42l43_hs_init(struct snd_soc_card *card, const struct snd_soc_acpi
* No need to test if (!playback) like other codecs as cs42l43 uses separated dai for * No need to test if (!playback) like other codecs as cs42l43 uses separated dai for
* playback and capture, and sof_sdw_cs42l43_init is only linked to the playback dai. * playback and capture, and sof_sdw_cs42l43_init is only linked to the playback dai.
*/ */
dai_links->init = cs42l43_hs_rtd_init; dai_links->init = cs42l43_hs_rtd_init;
return 0; return 0;
...@@ -129,7 +140,6 @@ static int cs42l43_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd) ...@@ -129,7 +140,6 @@ static int cs42l43_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd)
ret = snd_soc_dapm_add_routes(&card->dapm, cs42l43_dmic_map, ret = snd_soc_dapm_add_routes(&card->dapm, cs42l43_dmic_map,
ARRAY_SIZE(cs42l43_dmic_map)); ARRAY_SIZE(cs42l43_dmic_map));
if (ret) if (ret)
dev_err(card->dev, "cs42l43 dmic map addition failed: %d\n", ret); dev_err(card->dev, "cs42l43 dmic map addition failed: %d\n", ret);
...@@ -141,5 +151,6 @@ int sof_sdw_cs42l43_dmic_init(struct snd_soc_card *card, const struct snd_soc_ac ...@@ -141,5 +151,6 @@ int sof_sdw_cs42l43_dmic_init(struct snd_soc_card *card, const struct snd_soc_ac
bool playback) bool playback)
{ {
dai_links->init = cs42l43_dmic_rtd_init; dai_links->init = cs42l43_dmic_rtd_init;
return 0; return 0;
} }
...@@ -70,15 +70,6 @@ static const struct dmi_system_id chromebook_platforms[] = { ...@@ -70,15 +70,6 @@ static const struct dmi_system_id chromebook_platforms[] = {
{}, {},
}; };
static const struct snd_soc_dapm_widget sof_ssp_amp_dapm_widgets[] = {
SND_SOC_DAPM_MIC("SoC DMIC", NULL),
};
static const struct snd_soc_dapm_route sof_ssp_amp_dapm_routes[] = {
/* digital mics */
{"DMic", NULL, "SoC DMIC"},
};
static int sof_card_late_probe(struct snd_soc_card *card) static int sof_card_late_probe(struct snd_soc_card *card)
{ {
return sof_intel_board_card_late_probe(card); return sof_intel_board_card_late_probe(card);
...@@ -87,10 +78,6 @@ static int sof_card_late_probe(struct snd_soc_card *card) ...@@ -87,10 +78,6 @@ static int sof_card_late_probe(struct snd_soc_card *card)
static struct snd_soc_card sof_ssp_amp_card = { static struct snd_soc_card sof_ssp_amp_card = {
.name = "ssp_amp", .name = "ssp_amp",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.dapm_widgets = sof_ssp_amp_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(sof_ssp_amp_dapm_widgets),
.dapm_routes = sof_ssp_amp_dapm_routes,
.num_dapm_routes = ARRAY_SIZE(sof_ssp_amp_dapm_routes),
.fully_routed = true, .fully_routed = true,
.late_probe = sof_card_late_probe, .late_probe = sof_card_late_probe,
}; };
...@@ -102,17 +89,11 @@ static struct snd_soc_dai_link_component platform_component[] = { ...@@ -102,17 +89,11 @@ static struct snd_soc_dai_link_component platform_component[] = {
} }
}; };
static struct snd_soc_dai_link_component dmic_component[] = {
{
.name = "dmic-codec",
.dai_name = "dmic-hifi",
}
};
/* BE ID defined in sof-tgl-rt1308-hdmi-ssp.m4 */ /* BE ID defined in sof-tgl-rt1308-hdmi-ssp.m4 */
#define HDMI_IN_BE_ID 0 #define HDMI_IN_BE_ID 0
#define SPK_BE_ID 2 #define SPK_BE_ID 2
#define DMIC01_BE_ID 3 #define DMIC01_BE_ID 3
#define DMIC16K_BE_ID 4
#define INTEL_HDMI_BE_ID 5 #define INTEL_HDMI_BE_ID 5
static struct snd_soc_dai_link * static struct snd_soc_dai_link *
...@@ -207,28 +188,23 @@ sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec amp_type, ...@@ -207,28 +188,23 @@ sof_card_dai_links_create(struct device *dev, enum sof_ssp_codec amp_type,
/* dmic */ /* dmic */
if (dmic_be_num > 0) { if (dmic_be_num > 0) {
/* at least we have dmic01 */ /* at least we have dmic01 */
links[id].name = "dmic01"; be_id = fixed_be ? DMIC01_BE_ID : id;
links[id].cpus = &cpus[id]; ret = sof_intel_board_set_dmic_link(dev, &links[id], be_id,
links[id].cpus->dai_name = "DMIC01 Pin"; SOF_DMIC_01);
if (dmic_be_num > 1) { if (ret)
/* set up 2 BE links at most */ return NULL;
links[id + 1].name = "dmic16k";
links[id + 1].cpus = &cpus[id + 1]; id++;
links[id + 1].cpus->dai_name = "DMIC16k Pin";
dmic_be_num = 2;
}
} }
for (i = 0; i < dmic_be_num; i++) { if (dmic_be_num > 1) {
links[id].id = fixed_be ? (DMIC01_BE_ID + i) : id; /* set up 2 BE links at most */
links[id].num_cpus = 1; be_id = fixed_be ? DMIC16K_BE_ID : id;
links[id].codecs = dmic_component; ret = sof_intel_board_set_dmic_link(dev, &links[id], be_id,
links[id].num_codecs = ARRAY_SIZE(dmic_component); SOF_DMIC_16K);
links[id].platforms = platform_component; if (ret)
links[id].num_platforms = ARRAY_SIZE(platform_component); return NULL;
links[id].ignore_suspend = 1;
links[id].dpcm_capture = 1;
links[id].no_pcm = 1;
id++; id++;
} }
...@@ -278,7 +254,6 @@ static int sof_ssp_amp_probe(struct platform_device *pdev) ...@@ -278,7 +254,6 @@ static int sof_ssp_amp_probe(struct platform_device *pdev)
struct snd_soc_acpi_mach *mach = pdev->dev.platform_data; struct snd_soc_acpi_mach *mach = pdev->dev.platform_data;
struct snd_soc_dai_link *dai_links; struct snd_soc_dai_link *dai_links;
struct sof_card_private *ctx; struct sof_card_private *ctx;
int dmic_be_num = 0;
int ret, ssp_codec; int ret, ssp_codec;
ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
...@@ -291,12 +266,14 @@ static int sof_ssp_amp_probe(struct platform_device *pdev) ...@@ -291,12 +266,14 @@ static int sof_ssp_amp_probe(struct platform_device *pdev)
ctx->amp_type = sof_ssp_detect_amp_type(&pdev->dev); ctx->amp_type = sof_ssp_detect_amp_type(&pdev->dev);
if (dmi_check_system(chromebook_platforms) || mach->mach_params.dmic_num > 0) if (dmi_check_system(chromebook_platforms) || mach->mach_params.dmic_num > 0)
dmic_be_num = 2; ctx->dmic_be_num = 2;
else
ctx->dmic_be_num = 0;
ssp_codec = sof_ssp_amp_quirk & SOF_AMPLIFIER_SSP_MASK; ssp_codec = sof_ssp_amp_quirk & SOF_AMPLIFIER_SSP_MASK;
/* set number of dai links */ /* set number of dai links */
sof_ssp_amp_card.num_links = dmic_be_num; sof_ssp_amp_card.num_links = ctx->dmic_be_num;
if (ctx->amp_type != CODEC_NONE) if (ctx->amp_type != CODEC_NONE)
sof_ssp_amp_card.num_links++; sof_ssp_amp_card.num_links++;
...@@ -324,7 +301,7 @@ static int sof_ssp_amp_probe(struct platform_device *pdev) ...@@ -324,7 +301,7 @@ static int sof_ssp_amp_probe(struct platform_device *pdev)
sof_ssp_amp_card.num_links++; sof_ssp_amp_card.num_links++;
dai_links = sof_card_dai_links_create(&pdev->dev, ctx->amp_type, dai_links = sof_card_dai_links_create(&pdev->dev, ctx->amp_type,
ssp_codec, dmic_be_num, ssp_codec, ctx->dmic_be_num,
ctx->hdmi_num, ctx->hdmi_num,
ctx->hdmi.idisp_codec); ctx->hdmi.idisp_codec);
if (!dai_links) if (!dai_links)
......
...@@ -407,6 +407,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[] = { ...@@ -407,6 +407,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[] = {
.quirk_data = &rpl_max98373_amp, .quirk_data = &rpl_max98373_amp,
.sof_tplg_filename = "sof-rpl-max98373-nau8825.tplg", .sof_tplg_filename = "sof-rpl-max98373-nau8825.tplg",
}, },
{
.id = "10508825",
.drv_name = "rpl_mx98360a_8825",
.machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &rpl_max98360a_amp,
.sof_tplg_filename = "sof-rpl-max98360a-nau8825.tplg",
},
{ {
.id = "10508825", .id = "10508825",
.drv_name = "rpl_nau8318_8825", .drv_name = "rpl_nau8318_8825",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment