ASoC: sunxi: i2s: Implement set_sysclk
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 7 Nov 2016 13:08:19 +0000 (14:08 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 9 Nov 2016 14:01:08 +0000 (14:01 +0000)
commitb2b7b56f713ab833413548b119c53bbe2a9a9f8f
tree5f3829558f2715253e3e472613b65d6583ddf70f
parent300a18d13f7eaec789e79dc45bce026e098b45da
ASoC: sunxi: i2s: Implement set_sysclk

In our i2s driver, we were previously trying to guess which oversample the
user wanted to use by looking at the rate and trying to max it.

However, the cards, and especially simple-card with its mclk-fs property
will already provide the expected oversample ratio by using the set_sysclk
callback.

We can thus implement it and remove the logic to deal with the runtime
guess.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c