Skip to content

Commit e4af312

Browse files
committed
Merge tag 'asoc-fix-v6.8-rc2' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.8 Quite a lot of fixes that came in since the merge window, a large portion for for Qualcomm and ES8326. The 8 DAI support for Qualcomm is just raising a constant to allow for devies that otherwise only need DTs, and there's a few other device ID updates for sunxi (Allwinner) and AMD platforms.
2 parents 2468e89 + 5513c5d commit e4af312

File tree

15 files changed

+202
-75
lines changed

15 files changed

+202
-75
lines changed

Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-spdif.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ properties:
2222
- const: allwinner,sun6i-a31-spdif
2323
- const: allwinner,sun8i-h3-spdif
2424
- const: allwinner,sun50i-h6-spdif
25+
- const: allwinner,sun50i-h616-spdif
2526
- items:
2627
- const: allwinner,sun8i-a83t-spdif
2728
- const: allwinner,sun8i-h3-spdif
@@ -62,6 +63,8 @@ allOf:
6263
enum:
6364
- allwinner,sun6i-a31-spdif
6465
- allwinner,sun8i-h3-spdif
66+
- allwinner,sun50i-h6-spdif
67+
- allwinner,sun50i-h616-spdif
6568

6669
then:
6770
required:
@@ -73,7 +76,7 @@ allOf:
7376
contains:
7477
enum:
7578
- allwinner,sun8i-h3-spdif
76-
- allwinner,sun50i-h6-spdif
79+
- allwinner,sun50i-h616-spdif
7780

7881
then:
7982
properties:

sound/soc/amd/acp/acp-mach-common.c

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,13 @@ static int acp_card_rt5682s_hw_params(struct snd_pcm_substream *substream,
505505

506506
clk_set_rate(drvdata->wclk, srate);
507507
clk_set_rate(drvdata->bclk, srate * ch * format);
508+
if (!drvdata->soc_mclk) {
509+
ret = acp_clk_enable(drvdata, srate, ch * format);
510+
if (ret < 0) {
511+
dev_err(rtd->card->dev, "Failed to enable HS clk: %d\n", ret);
512+
return ret;
513+
}
514+
}
508515

509516
return 0;
510517
}
@@ -1464,8 +1471,13 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
14641471
if (drv_data->amp_cpu_id == I2S_SP) {
14651472
links[i].name = "acp-amp-codec";
14661473
links[i].id = AMP_BE_ID;
1467-
links[i].cpus = sof_sp_virtual;
1468-
links[i].num_cpus = ARRAY_SIZE(sof_sp_virtual);
1474+
if (drv_data->platform == RENOIR) {
1475+
links[i].cpus = sof_sp;
1476+
links[i].num_cpus = ARRAY_SIZE(sof_sp);
1477+
} else {
1478+
links[i].cpus = sof_sp_virtual;
1479+
links[i].num_cpus = ARRAY_SIZE(sof_sp_virtual);
1480+
}
14691481
links[i].platforms = sof_component;
14701482
links[i].num_platforms = ARRAY_SIZE(sof_component);
14711483
links[i].dpcm_playback = 1;

sound/soc/amd/acp/acp-sof-mach.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ static struct acp_card_drvdata sof_rt5682s_rt1019_data = {
4848
.hs_codec_id = RT5682S,
4949
.amp_codec_id = RT1019,
5050
.dmic_codec_id = DMIC,
51+
.platform = RENOIR,
5152
.tdm_mode = false,
5253
};
5354

@@ -58,6 +59,7 @@ static struct acp_card_drvdata sof_rt5682s_max_data = {
5859
.hs_codec_id = RT5682S,
5960
.amp_codec_id = MAX98360A,
6061
.dmic_codec_id = DMIC,
62+
.platform = RENOIR,
6163
.tdm_mode = false,
6264
};
6365

@@ -68,6 +70,7 @@ static struct acp_card_drvdata sof_nau8825_data = {
6870
.hs_codec_id = NAU8825,
6971
.amp_codec_id = MAX98360A,
7072
.dmic_codec_id = DMIC,
73+
.platform = REMBRANDT,
7174
.soc_mclk = true,
7275
.tdm_mode = false,
7376
};
@@ -79,6 +82,7 @@ static struct acp_card_drvdata sof_rt5682s_hs_rt1019_data = {
7982
.hs_codec_id = RT5682S,
8083
.amp_codec_id = RT1019,
8184
.dmic_codec_id = DMIC,
85+
.platform = REMBRANDT,
8286
.soc_mclk = true,
8387
.tdm_mode = false,
8488
};

sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,14 @@ static const struct dmi_system_id acp3x_es83xx_dmi_table[] = {
354354
},
355355
.driver_data = (void *)(ES83XX_ENABLE_DMIC|ES83XX_48_MHZ_MCLK),
356356
},
357+
{
358+
.matches = {
359+
DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "HUAWEI"),
360+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "HVY-WXX9"),
361+
DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "M1010"),
362+
},
363+
.driver_data = (void *)(ES83XX_ENABLE_DMIC),
364+
},
357365
{
358366
.matches = {
359367
DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "HUAWEI"),

sound/soc/amd/yc/acp6x-mach.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
297297
DMI_MATCH(DMI_PRODUCT_NAME, "Bravo 15 B7ED"),
298298
}
299299
},
300+
{
301+
.driver_data = &acp6x_card,
302+
.matches = {
303+
DMI_MATCH(DMI_BOARD_VENDOR, "Micro-Star International Co., Ltd."),
304+
DMI_MATCH(DMI_PRODUCT_NAME, "Bravo 15 C7VF"),
305+
}
306+
},
300307
{
301308
.driver_data = &acp6x_card,
302309
.matches = {

0 commit comments

Comments
 (0)