Skip to content

Commit 21b5954

Browse files
committed
Merge tag 'asoc-fix-v5.18' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v5.18 A few fixes that came in during the merge window, all fairly routine.
2 parents 6ddc2f7 + 664d66d commit 21b5954

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

sound/soc/codecs/mt6358.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ int mt6358_set_mtkaif_protocol(struct snd_soc_component *cmpnt,
107107
priv->mtkaif_protocol = mtkaif_protocol;
108108
return 0;
109109
}
110+
EXPORT_SYMBOL_GPL(mt6358_set_mtkaif_protocol);
110111

111112
static void playback_gpio_set(struct mt6358_priv *priv)
112113
{
@@ -273,6 +274,7 @@ int mt6358_mtkaif_calibration_enable(struct snd_soc_component *cmpnt)
273274
1 << RG_AUD_PAD_TOP_DAT_MISO_LOOPBACK_SFT);
274275
return 0;
275276
}
277+
EXPORT_SYMBOL_GPL(mt6358_mtkaif_calibration_enable);
276278

277279
int mt6358_mtkaif_calibration_disable(struct snd_soc_component *cmpnt)
278280
{
@@ -296,6 +298,7 @@ int mt6358_mtkaif_calibration_disable(struct snd_soc_component *cmpnt)
296298
capture_gpio_reset(priv);
297299
return 0;
298300
}
301+
EXPORT_SYMBOL_GPL(mt6358_mtkaif_calibration_disable);
299302

300303
int mt6358_set_mtkaif_calibration_phase(struct snd_soc_component *cmpnt,
301304
int phase_1, int phase_2)
@@ -310,6 +313,7 @@ int mt6358_set_mtkaif_calibration_phase(struct snd_soc_component *cmpnt,
310313
phase_2 << RG_AUD_PAD_TOP_PHASE_MODE2_SFT);
311314
return 0;
312315
}
316+
EXPORT_SYMBOL_GPL(mt6358_set_mtkaif_calibration_phase);
313317

314318
/* dl pga gain */
315319
enum {

sound/soc/fsl/fsl-asoc-card.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -462,11 +462,9 @@ static int hp_jack_event(struct notifier_block *nb, unsigned long event,
462462

463463
if (event & SND_JACK_HEADPHONE)
464464
/* Disable speaker if headphone is plugged in */
465-
snd_soc_dapm_disable_pin(dapm, "Ext Spk");
465+
return snd_soc_dapm_disable_pin(dapm, "Ext Spk");
466466
else
467-
snd_soc_dapm_enable_pin(dapm, "Ext Spk");
468-
469-
return 0;
467+
return snd_soc_dapm_enable_pin(dapm, "Ext Spk");
470468
}
471469

472470
static struct notifier_block hp_jack_nb = {
@@ -481,11 +479,9 @@ static int mic_jack_event(struct notifier_block *nb, unsigned long event,
481479

482480
if (event & SND_JACK_MICROPHONE)
483481
/* Disable dmic if microphone is plugged in */
484-
snd_soc_dapm_disable_pin(dapm, "DMIC");
482+
return snd_soc_dapm_disable_pin(dapm, "DMIC");
485483
else
486-
snd_soc_dapm_enable_pin(dapm, "DMIC");
487-
488-
return 0;
484+
return snd_soc_dapm_enable_pin(dapm, "DMIC");
489485
}
490486

491487
static struct notifier_block mic_jack_nb = {

sound/soc/rockchip/rockchip_i2s_tdm.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,14 @@ static int rockchip_i2s_tdm_set_fmt(struct snd_soc_dai *cpu_dai,
469469
txcr_val = I2S_TXCR_IBM_NORMAL;
470470
rxcr_val = I2S_RXCR_IBM_NORMAL;
471471
break;
472-
case SND_SOC_DAIFMT_DSP_A: /* PCM no delay mode */
473-
txcr_val = I2S_TXCR_TFS_PCM;
474-
rxcr_val = I2S_RXCR_TFS_PCM;
475-
break;
476-
case SND_SOC_DAIFMT_DSP_B: /* PCM delay 1 mode */
472+
case SND_SOC_DAIFMT_DSP_A: /* PCM delay 1 mode */
477473
txcr_val = I2S_TXCR_TFS_PCM | I2S_TXCR_PBM_MODE(1);
478474
rxcr_val = I2S_RXCR_TFS_PCM | I2S_RXCR_PBM_MODE(1);
479475
break;
476+
case SND_SOC_DAIFMT_DSP_B: /* PCM no delay mode */
477+
txcr_val = I2S_TXCR_TFS_PCM;
478+
rxcr_val = I2S_RXCR_TFS_PCM;
479+
break;
480480
default:
481481
ret = -EINVAL;
482482
goto err_pm_put;

sound/soc/sof/intel/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ if SND_SOC_SOF_PCI
8484
config SND_SOC_SOF_MERRIFIELD
8585
tristate "SOF support for Tangier/Merrifield"
8686
default SND_SOC_SOF_PCI
87+
select SND_SOC_SOF_PCI_DEV
8788
select SND_SOC_SOF_INTEL_ATOM_HIFI_EP
8889
help
8990
This adds support for Sound Open Firmware for Intel(R) platforms

0 commit comments

Comments
 (0)