]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun4i-i2s: Pass the channels number as an argument
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 19 Aug 2019 19:25:25 +0000 (21:25 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 20 Aug 2019 17:34:11 +0000 (18:34 +0100)
commita804a3bafb8f4d3f3a0f4b939ffa3d12b98cc07a
tree1dff59a11be3047f09f8edc9955108aa403edf28
parentce1f75d6ff58f61e6bb521f88f4c6bcf65debd3b
ASoC: sun4i-i2s: Pass the channels number as an argument

The channels number have been hardcoded to 2 so far, while the controller
supports more than that.

Remove the instance where it has been hardcoded to compute the BCLK
divider, and pass it through as an argument to ease further support of more
channels.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://lore.kernel.org/r/48887cf7abfaab6597db233b24d7a088a913e48a.1566242458.git-series.maxime.ripard@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c