Skip to content

Commit 282528d

Browse files
committed
Merge remote-tracking branch 'asoc/for-6.16' into asoc-linus
2 parents a735ee5 + 696e123 commit 282528d

10 files changed

Lines changed: 67 additions & 7 deletions

File tree

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
416416
DMI_MATCH(DMI_PRODUCT_NAME, "M6500RC"),
417417
}
418418
},
419+
{
420+
.driver_data = &acp6x_card,
421+
.matches = {
422+
DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK COMPUTER INC."),
423+
DMI_MATCH(DMI_PRODUCT_NAME, "M6501RM"),
424+
}
425+
},
419426
{
420427
.driver_data = &acp6x_card,
421428
.matches = {
@@ -535,6 +542,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
535542
DMI_MATCH(DMI_PRODUCT_NAME, "OMEN by HP Gaming Laptop 16z-n000"),
536543
}
537544
},
545+
{
546+
.driver_data = &acp6x_card,
547+
.matches = {
548+
DMI_MATCH(DMI_BOARD_VENDOR, "HP"),
549+
DMI_MATCH(DMI_PRODUCT_NAME, "Victus by HP Gaming Laptop 15-fb1xxx"),
550+
}
551+
},
538552
{
539553
.driver_data = &acp6x_card,
540554
.matches = {
@@ -584,6 +598,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
584598
DMI_MATCH(DMI_BOARD_NAME, "8A7F"),
585599
}
586600
},
601+
{
602+
.driver_data = &acp6x_card,
603+
.matches = {
604+
DMI_MATCH(DMI_BOARD_VENDOR, "HP"),
605+
DMI_MATCH(DMI_BOARD_NAME, "8A81"),
606+
}
607+
},
587608
{
588609
.driver_data = &acp6x_card,
589610
.matches = {

sound/soc/codecs/rt5645.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ static const struct reg_sequence rt5650_init_list[] = {
8282
{0xf6, 0x0100},
8383
{RT5645_PWR_ANLG1, 0x02},
8484
{RT5645_IL_CMD3, 0x6728},
85+
{RT5645_PR_BASE + 0x3a, 0x0000},
8586
};
8687

8788
static const struct reg_default rt5645_reg[] = {

sound/soc/codecs/rt5660.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,14 +1315,17 @@ static int rt5660_i2c_probe(struct i2c_client *i2c)
13151315
regmap_update_bits(rt5660->regmap, RT5660_GPIO_CTRL1,
13161316
RT5660_GP1_PIN_MASK, RT5660_GP1_PIN_DMIC1_SCL);
13171317

1318-
if (rt5660->pdata.dmic1_data_pin == RT5660_DMIC1_DATA_GPIO2)
1318+
if (rt5660->pdata.dmic1_data_pin == RT5660_DMIC1_DATA_GPIO2) {
13191319
regmap_update_bits(rt5660->regmap, RT5660_DMIC_CTRL1,
13201320
RT5660_SEL_DMIC_DATA_MASK,
13211321
RT5660_SEL_DMIC_DATA_GPIO2);
1322-
else if (rt5660->pdata.dmic1_data_pin == RT5660_DMIC1_DATA_IN1P)
1322+
regmap_update_bits(rt5660->regmap, RT5660_GPIO_CTRL1,
1323+
RT5660_GP2_PIN_MASK, RT5660_GP2_PIN_DMIC1_SDA);
1324+
} else if (rt5660->pdata.dmic1_data_pin == RT5660_DMIC1_DATA_IN1P) {
13231325
regmap_update_bits(rt5660->regmap, RT5660_DMIC_CTRL1,
13241326
RT5660_SEL_DMIC_DATA_MASK,
13251327
RT5660_SEL_DMIC_DATA_IN1P);
1328+
}
13261329
}
13271330

13281331
return devm_snd_soc_register_component(&i2c->dev,

sound/soc/intel/avs/pcm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,11 +1569,13 @@ static void avs_component_hda_unregister_dais(struct snd_soc_component *componen
15691569
{
15701570
struct snd_soc_acpi_mach *mach;
15711571
struct snd_soc_dai *dai, *save;
1572+
struct avs_mach_pdata *pdata;
15721573
struct hda_codec *codec;
15731574
char name[32];
15741575

15751576
mach = dev_get_platdata(component->card->dev);
1576-
codec = mach->pdata;
1577+
pdata = mach->pdata;
1578+
codec = pdata->codec;
15771579
snprintf(name, sizeof(name), "%s-cpu", dev_name(&codec->core.dev));
15781580

15791581
for_each_component_dais_safe(component, dai, save) {

sound/soc/intel/boards/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ menuconfig SND_SOC_INTEL_MACH
1111
kernel: saying N will just cause the configurator to skip all
1212
the questions about Intel ASoC machine drivers.
1313

14-
if SND_SOC_INTEL_MACH
14+
if SND_SOC_INTEL_MACH && (SND_SOC_SOF_INTEL_COMMON || !SND_SOC_SOF_INTEL_COMMON)
1515

1616
config SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES
1717
bool "Use more user friendly long card names"

sound/soc/intel/common/soc-acpi-intel-arl-match.c

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,15 @@ static const struct snd_soc_acpi_adr_device rt722_0_single_adr[] = {
238238
}
239239
};
240240

241+
static const struct snd_soc_acpi_adr_device rt1316_3_single_adr[] = {
242+
{
243+
.adr = 0x000330025D131601ull,
244+
.num_endpoints = 1,
245+
.endpoints = &single_endpoint,
246+
.name_prefix = "rt1316-1"
247+
}
248+
};
249+
241250
static const struct snd_soc_acpi_adr_device rt1320_2_single_adr[] = {
242251
{
243252
.adr = 0x000230025D132001ull,
@@ -368,6 +377,20 @@ static const struct snd_soc_acpi_link_adr arl_sdca_rvp[] = {
368377
{}
369378
};
370379

380+
static const struct snd_soc_acpi_link_adr arl_rt711_l0_rt1316_l3[] = {
381+
{
382+
.mask = BIT(0),
383+
.num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
384+
.adr_d = rt711_sdca_0_adr,
385+
},
386+
{
387+
.mask = BIT(3),
388+
.num_adr = ARRAY_SIZE(rt1316_3_single_adr),
389+
.adr_d = rt1316_3_single_adr,
390+
},
391+
{}
392+
};
393+
371394
static const struct snd_soc_acpi_link_adr arl_rt722_l0_rt1320_l2[] = {
372395
{
373396
.mask = BIT(0),
@@ -481,6 +504,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = {
481504
.sof_tplg_filename = "sof-arl-cs42l43-l2.tplg",
482505
.get_function_tplg_files = sof_sdw_get_tplg_files,
483506
},
507+
{
508+
.link_mask = BIT(0) | BIT(3),
509+
.links = arl_rt711_l0_rt1316_l3,
510+
.drv_name = "sof_sdw",
511+
.sof_tplg_filename = "sof-arl-rt711-l0-rt1316-l3.tplg",
512+
},
484513
{
485514
.link_mask = 0x1, /* link0 required */
486515
.links = arl_rvp,

sound/soc/mediatek/common/mtk-soundcard-driver.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,13 @@ int mtk_soundcard_common_probe(struct platform_device *pdev)
262262
soc_card_data->accdet = accdet_comp;
263263
else
264264
dev_err(&pdev->dev, "No sound component found from mediatek,accdet property\n");
265+
266+
put_device(&accdet_pdev->dev);
265267
} else {
266268
dev_err(&pdev->dev, "No device found from mediatek,accdet property\n");
267269
}
270+
271+
of_node_put(accdet_node);
268272
}
269273

270274
platform_node = of_parse_phandle(pdev->dev.of_node, "mediatek,platform", 0);

sound/soc/mediatek/mt8365/mt8365-dai-i2s.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,11 +812,10 @@ static const struct snd_soc_dapm_route mtk_dai_i2s_routes[] = {
812812
static int mt8365_dai_i2s_set_priv(struct mtk_base_afe *afe)
813813
{
814814
int i, ret;
815-
struct mt8365_afe_private *afe_priv = afe->platform_priv;
816815

817816
for (i = 0; i < DAI_I2S_NUM; i++) {
818817
ret = mt8365_dai_set_priv(afe, mt8365_i2s_priv[i].id,
819-
sizeof(*afe_priv),
818+
sizeof(mt8365_i2s_priv[i]),
820819
&mt8365_i2s_priv[i]);
821820
if (ret)
822821
return ret;

sound/soc/sdca/sdca_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static int find_sdca_init_table(struct device *dev,
212212
} else if (num_init_writes % sizeof(*raw) != 0) {
213213
dev_err(dev, "%pfwP: init table size invalid\n", function_node);
214214
return -EINVAL;
215-
} else if (num_init_writes > SDCA_MAX_INIT_COUNT) {
215+
} else if ((num_init_writes / sizeof(*raw)) > SDCA_MAX_INIT_COUNT) {
216216
dev_err(dev, "%pfwP: maximum init table size exceeded\n", function_node);
217217
return -EINVAL;
218218
}

sound/soc/sof/intel/ptl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const struct sof_intel_dsp_desc ptl_chip_info = {
117117
.read_sdw_lcount = hda_sdw_check_lcount_ext,
118118
.check_sdw_irq = lnl_dsp_check_sdw_irq,
119119
.check_sdw_wakeen_irq = lnl_sdw_check_wakeen_irq,
120+
.sdw_process_wakeen = hda_sdw_process_wakeen_common,
120121
.check_ipc_irq = mtl_dsp_check_ipc_irq,
121122
.check_mic_privacy_irq = sof_ptl_check_mic_privacy_irq,
122123
.process_mic_privacy = sof_ptl_process_mic_privacy,

0 commit comments

Comments
 (0)