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

Commit b8edf3e5 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: wm8994: Ensure there are enough BCLKs for four channels



Otherwise if someone tries to use all four channels on AIF1 with the
device in master mode we won't be able to clock out all the data.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
parent 15d47763
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2649,7 +2649,7 @@ static int wm8994_hw_params(struct snd_pcm_substream *substream,
		return -EINVAL;
	}

	bclk_rate = params_rate(params) * 2;
	bclk_rate = params_rate(params) * 4;
	switch (params_format(params)) {
	case SNDRV_PCM_FORMAT_S16_LE:
		bclk_rate *= 16;