Skip to content

Commit d02b105

Browse files
committed
Merge tag 'asoc-fix-v5.8-rc3' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v5.8 A few small driver specific fixes, nothing particularly dramatic.
2 parents b9fd200 + bc5c7f5 commit d02b105

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

sound/soc/amd/renoir/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Renoir platform Support
33
snd-rn-pci-acp3x-objs := rn-pci-acp3x.o
44
snd-acp3x-pdm-dma-objs := acp3x-pdm-dma.o
5-
obj-$(CONFIG_SND_SOC_AMD_RENOIR) += snd-rn-pci-acp3x.o
6-
obj-$(CONFIG_SND_SOC_AMD_RENOIR) += snd-acp3x-pdm-dma.o
7-
obj-$(CONFIG_SND_SOC_AMD_RENOIR_MACH) += acp3x-rn.o
5+
snd-acp3x-rn-objs := acp3x-rn.o
6+
obj-$(CONFIG_SND_SOC_AMD_RENOIR) += snd-rn-pci-acp3x.o
7+
obj-$(CONFIG_SND_SOC_AMD_RENOIR) += snd-acp3x-pdm-dma.o
8+
obj-$(CONFIG_SND_SOC_AMD_RENOIR_MACH) += snd-acp3x-rn.o

sound/soc/codecs/rt5682.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,9 @@ int rt5682_headset_detect(struct snd_soc_component *component, int jack_insert)
932932
RT5682_PWR_ANLG_1, RT5682_PWR_FV2, RT5682_PWR_FV2);
933933
snd_soc_component_update_bits(component, RT5682_PWR_ANLG_3,
934934
RT5682_PWR_CBJ, RT5682_PWR_CBJ);
935-
935+
snd_soc_component_update_bits(component,
936+
RT5682_HP_CHARGE_PUMP_1,
937+
RT5682_OSW_L_MASK | RT5682_OSW_R_MASK, 0);
936938
snd_soc_component_update_bits(component, RT5682_CBJ_CTRL_1,
937939
RT5682_TRIG_JD_MASK, RT5682_TRIG_JD_HIGH);
938940

@@ -956,6 +958,11 @@ int rt5682_headset_detect(struct snd_soc_component *component, int jack_insert)
956958
rt5682->jack_type = SND_JACK_HEADPHONE;
957959
break;
958960
}
961+
962+
snd_soc_component_update_bits(component,
963+
RT5682_HP_CHARGE_PUMP_1,
964+
RT5682_OSW_L_MASK | RT5682_OSW_R_MASK,
965+
RT5682_OSW_L_EN | RT5682_OSW_R_EN);
959966
} else {
960967
rt5682_enable_push_button_irq(component, false);
961968
snd_soc_component_update_bits(component, RT5682_CBJ_CTRL_1,

sound/soc/fsl/fsl_mqs.c

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,20 @@ static int fsl_mqs_remove(struct platform_device *pdev)
265265
static int fsl_mqs_runtime_resume(struct device *dev)
266266
{
267267
struct fsl_mqs *mqs_priv = dev_get_drvdata(dev);
268+
int ret;
268269

269-
if (mqs_priv->ipg)
270-
clk_prepare_enable(mqs_priv->ipg);
270+
ret = clk_prepare_enable(mqs_priv->ipg);
271+
if (ret) {
272+
dev_err(dev, "failed to enable ipg clock\n");
273+
return ret;
274+
}
271275

272-
if (mqs_priv->mclk)
273-
clk_prepare_enable(mqs_priv->mclk);
276+
ret = clk_prepare_enable(mqs_priv->mclk);
277+
if (ret) {
278+
dev_err(dev, "failed to enable mclk clock\n");
279+
clk_disable_unprepare(mqs_priv->ipg);
280+
return ret;
281+
}
274282

275283
if (mqs_priv->use_gpr)
276284
regmap_write(mqs_priv->regmap, IOMUXC_GPR2,
@@ -292,11 +300,8 @@ static int fsl_mqs_runtime_suspend(struct device *dev)
292300
regmap_read(mqs_priv->regmap, REG_MQS_CTRL,
293301
&mqs_priv->reg_mqs_ctrl);
294302

295-
if (mqs_priv->mclk)
296-
clk_disable_unprepare(mqs_priv->mclk);
297-
298-
if (mqs_priv->ipg)
299-
clk_disable_unprepare(mqs_priv->ipg);
303+
clk_disable_unprepare(mqs_priv->mclk);
304+
clk_disable_unprepare(mqs_priv->ipg);
300305

301306
return 0;
302307
}

0 commit comments

Comments
 (0)