Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7df6f255 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown
Browse files

ASoC: omap-dmic: Use core to set the msbits constraint



Core can set the msbits constraint in behalf of the dai.

Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 8819f65c
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -113,12 +113,10 @@ static int omap_dmic_dai_startup(struct snd_pcm_substream *substream,

	mutex_lock(&dmic->mutex);

	if (!dai->active) {
		snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24);
	if (!dai->active)
		dmic->active = 1;
	} else {
	else
		ret = -EBUSY;
	}

	mutex_unlock(&dmic->mutex);

@@ -445,6 +443,7 @@ static struct snd_soc_dai_driver omap_dmic_dai = {
		.channels_max = 6,
		.rates = SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000,
		.formats = SNDRV_PCM_FMTBIT_S32_LE,
		.sig_bits = 24,
	},
	.ops = &omap_dmic_dai_ops,
};