Skip to content

Commit 46f2dd5

Browse files
committed
Merge existing fixes from asoc/for-6.12 into new branch
2 parents 9852d85 + e249786 commit 46f2dd5

File tree

7 files changed

+15
-10
lines changed

7 files changed

+15
-10
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ static int sof_card_dai_links_create(struct snd_soc_card *card)
400400
return ret;
401401
}
402402

403-
/* SoC card */
404-
static const char sdw_card_long_name[] = "AMD Soundwire SOF";
405-
406403
static int mc_probe(struct platform_device *pdev)
407404
{
408405
struct snd_soc_acpi_mach *mach = dev_get_platdata(&pdev->dev);
@@ -463,8 +460,6 @@ static int mc_probe(struct platform_device *pdev)
463460
if (!card->components)
464461
return -ENOMEM;
465462

466-
card->long_name = sdw_card_long_name;
467-
468463
/* Register the card */
469464
ret = devm_snd_soc_register_card(card->dev, card);
470465
if (ret) {

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
444444
DMI_MATCH(DMI_BOARD_NAME, "8A3E"),
445445
}
446446
},
447+
{
448+
.driver_data = &acp6x_card,
449+
.matches = {
450+
DMI_MATCH(DMI_BOARD_VENDOR, "HP"),
451+
DMI_MATCH(DMI_BOARD_NAME, "8A7F"),
452+
}
453+
},
447454
{
448455
.driver_data = &acp6x_card,
449456
.matches = {

sound/soc/atmel/mchp-pdmc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ static int mchp_pdmc_chmap_ctl_put(struct snd_kcontrol *kcontrol,
302302
if (!substream)
303303
return -ENODEV;
304304

305+
if (!substream->runtime)
306+
return 0; /* just for avoiding error from alsactl restore */
307+
305308
map = mchp_pdmc_chmap_get(substream, info);
306309
if (!map)
307310
return -EINVAL;

sound/soc/codecs/cs35l45-tables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static const struct {
315315
{ 0x3B, 24576000 },
316316
};
317317

318-
unsigned int cs35l45_get_clk_freq_id(unsigned int freq)
318+
int cs35l45_get_clk_freq_id(unsigned int freq)
319319
{
320320
int i;
321321

sound/soc/codecs/cs35l45.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ extern const struct dev_pm_ops cs35l45_pm_ops;
507507
extern const struct regmap_config cs35l45_i2c_regmap;
508508
extern const struct regmap_config cs35l45_spi_regmap;
509509
int cs35l45_apply_patch(struct cs35l45_private *cs35l45);
510-
unsigned int cs35l45_get_clk_freq_id(unsigned int freq);
510+
int cs35l45_get_clk_freq_id(unsigned int freq);
511511
int cs35l45_probe(struct cs35l45_private *cs35l45);
512512
void cs35l45_remove(struct cs35l45_private *cs35l45);
513513

sound/soc/codecs/lpass-rx-macro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ static const struct reg_default rx_defaults[] = {
958958
{ CDC_RX_BCL_VBAT_PK_EST2, 0x01 },
959959
{ CDC_RX_BCL_VBAT_PK_EST3, 0x40 },
960960
{ CDC_RX_BCL_VBAT_RF_PROC1, 0x2A },
961-
{ CDC_RX_BCL_VBAT_RF_PROC1, 0x00 },
961+
{ CDC_RX_BCL_VBAT_RF_PROC2, 0x00 },
962962
{ CDC_RX_BCL_VBAT_TAC1, 0x00 },
963963
{ CDC_RX_BCL_VBAT_TAC2, 0x18 },
964964
{ CDC_RX_BCL_VBAT_TAC3, 0x18 },

sound/soc/soc-topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ static int soc_tplg_dbytes_create(struct soc_tplg *tplg, size_t size)
889889
return ret;
890890

891891
/* register dynamic object */
892-
sbe = (struct soc_bytes_ext *)&kc.private_value;
892+
sbe = (struct soc_bytes_ext *)kc.private_value;
893893

894894
INIT_LIST_HEAD(&sbe->dobj.list);
895895
sbe->dobj.type = SND_SOC_DOBJ_BYTES;
@@ -923,7 +923,7 @@ static int soc_tplg_dmixer_create(struct soc_tplg *tplg, size_t size)
923923
return ret;
924924

925925
/* register dynamic object */
926-
sm = (struct soc_mixer_control *)&kc.private_value;
926+
sm = (struct soc_mixer_control *)kc.private_value;
927927

928928
INIT_LIST_HEAD(&sm->dobj.list);
929929
sm->dobj.type = SND_SOC_DOBJ_MIXER;

0 commit comments

Comments
 (0)