Commit 46f2dd5c authored by Mark Brown's avatar Mark Brown

Merge existing fixes from asoc/for-6.12 into new branch

parents 9852d85e e249786b
...@@ -400,9 +400,6 @@ static int sof_card_dai_links_create(struct snd_soc_card *card) ...@@ -400,9 +400,6 @@ static int sof_card_dai_links_create(struct snd_soc_card *card)
return ret; return ret;
} }
/* SoC card */
static const char sdw_card_long_name[] = "AMD Soundwire SOF";
static int mc_probe(struct platform_device *pdev) static int mc_probe(struct platform_device *pdev)
{ {
struct snd_soc_acpi_mach *mach = dev_get_platdata(&pdev->dev); struct snd_soc_acpi_mach *mach = dev_get_platdata(&pdev->dev);
...@@ -463,8 +460,6 @@ static int mc_probe(struct platform_device *pdev) ...@@ -463,8 +460,6 @@ static int mc_probe(struct platform_device *pdev)
if (!card->components) if (!card->components)
return -ENOMEM; return -ENOMEM;
card->long_name = sdw_card_long_name;
/* Register the card */ /* Register the card */
ret = devm_snd_soc_register_card(card->dev, card); ret = devm_snd_soc_register_card(card->dev, card);
if (ret) { if (ret) {
......
...@@ -444,6 +444,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = { ...@@ -444,6 +444,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
DMI_MATCH(DMI_BOARD_NAME, "8A3E"), DMI_MATCH(DMI_BOARD_NAME, "8A3E"),
} }
}, },
{
.driver_data = &acp6x_card,
.matches = {
DMI_MATCH(DMI_BOARD_VENDOR, "HP"),
DMI_MATCH(DMI_BOARD_NAME, "8A7F"),
}
},
{ {
.driver_data = &acp6x_card, .driver_data = &acp6x_card,
.matches = { .matches = {
......
...@@ -302,6 +302,9 @@ static int mchp_pdmc_chmap_ctl_put(struct snd_kcontrol *kcontrol, ...@@ -302,6 +302,9 @@ static int mchp_pdmc_chmap_ctl_put(struct snd_kcontrol *kcontrol,
if (!substream) if (!substream)
return -ENODEV; return -ENODEV;
if (!substream->runtime)
return 0; /* just for avoiding error from alsactl restore */
map = mchp_pdmc_chmap_get(substream, info); map = mchp_pdmc_chmap_get(substream, info);
if (!map) if (!map)
return -EINVAL; return -EINVAL;
......
...@@ -315,7 +315,7 @@ static const struct { ...@@ -315,7 +315,7 @@ static const struct {
{ 0x3B, 24576000 }, { 0x3B, 24576000 },
}; };
unsigned int cs35l45_get_clk_freq_id(unsigned int freq) int cs35l45_get_clk_freq_id(unsigned int freq)
{ {
int i; int i;
......
...@@ -507,7 +507,7 @@ extern const struct dev_pm_ops cs35l45_pm_ops; ...@@ -507,7 +507,7 @@ extern const struct dev_pm_ops cs35l45_pm_ops;
extern const struct regmap_config cs35l45_i2c_regmap; extern const struct regmap_config cs35l45_i2c_regmap;
extern const struct regmap_config cs35l45_spi_regmap; extern const struct regmap_config cs35l45_spi_regmap;
int cs35l45_apply_patch(struct cs35l45_private *cs35l45); int cs35l45_apply_patch(struct cs35l45_private *cs35l45);
unsigned int cs35l45_get_clk_freq_id(unsigned int freq); int cs35l45_get_clk_freq_id(unsigned int freq);
int cs35l45_probe(struct cs35l45_private *cs35l45); int cs35l45_probe(struct cs35l45_private *cs35l45);
void cs35l45_remove(struct cs35l45_private *cs35l45); void cs35l45_remove(struct cs35l45_private *cs35l45);
......
...@@ -958,7 +958,7 @@ static const struct reg_default rx_defaults[] = { ...@@ -958,7 +958,7 @@ static const struct reg_default rx_defaults[] = {
{ CDC_RX_BCL_VBAT_PK_EST2, 0x01 }, { CDC_RX_BCL_VBAT_PK_EST2, 0x01 },
{ CDC_RX_BCL_VBAT_PK_EST3, 0x40 }, { CDC_RX_BCL_VBAT_PK_EST3, 0x40 },
{ CDC_RX_BCL_VBAT_RF_PROC1, 0x2A }, { CDC_RX_BCL_VBAT_RF_PROC1, 0x2A },
{ CDC_RX_BCL_VBAT_RF_PROC1, 0x00 }, { CDC_RX_BCL_VBAT_RF_PROC2, 0x00 },
{ CDC_RX_BCL_VBAT_TAC1, 0x00 }, { CDC_RX_BCL_VBAT_TAC1, 0x00 },
{ CDC_RX_BCL_VBAT_TAC2, 0x18 }, { CDC_RX_BCL_VBAT_TAC2, 0x18 },
{ CDC_RX_BCL_VBAT_TAC3, 0x18 }, { CDC_RX_BCL_VBAT_TAC3, 0x18 },
......
...@@ -889,7 +889,7 @@ static int soc_tplg_dbytes_create(struct soc_tplg *tplg, size_t size) ...@@ -889,7 +889,7 @@ static int soc_tplg_dbytes_create(struct soc_tplg *tplg, size_t size)
return ret; return ret;
/* register dynamic object */ /* register dynamic object */
sbe = (struct soc_bytes_ext *)&kc.private_value; sbe = (struct soc_bytes_ext *)kc.private_value;
INIT_LIST_HEAD(&sbe->dobj.list); INIT_LIST_HEAD(&sbe->dobj.list);
sbe->dobj.type = SND_SOC_DOBJ_BYTES; sbe->dobj.type = SND_SOC_DOBJ_BYTES;
...@@ -923,7 +923,7 @@ static int soc_tplg_dmixer_create(struct soc_tplg *tplg, size_t size) ...@@ -923,7 +923,7 @@ static int soc_tplg_dmixer_create(struct soc_tplg *tplg, size_t size)
return ret; return ret;
/* register dynamic object */ /* register dynamic object */
sm = (struct soc_mixer_control *)&kc.private_value; sm = (struct soc_mixer_control *)kc.private_value;
INIT_LIST_HEAD(&sm->dobj.list); INIT_LIST_HEAD(&sm->dobj.list);
sm->dobj.type = SND_SOC_DOBJ_MIXER; sm->dobj.type = SND_SOC_DOBJ_MIXER;
......
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