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

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

ASoC: Update AD1938 for new TDM slot API



It's only actually paying attention to the slot count anyway.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent e0026bea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -133,8 +133,8 @@ static inline int ad1938_pll_powerctrl(struct snd_soc_codec *codec, int cmd)
	return 0;
}

static int ad1938_set_tdm_slot(struct snd_soc_dai *dai,
		unsigned int mask, int slots)
static int ad1938_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
			       unsigned int mask, int slots, int width)
{
	struct snd_soc_codec *codec = dai->codec;
	int dac_reg = codec->read(codec, AD1938_DAC_CTRL1);