ASoC: simple-card: Support setting mclk via a fixed factor
authorAndrew Lunn <andrew@lunn.ch>
Thu, 22 May 2014 15:31:49 +0000 (17:31 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:14:42 +0000 (11:14 +0100)
commit5c54f93cc7edcdecb136604d10f1caaa606f1370
tree8a50bf1d789fa4f0364cc102f51a2c374dd1c1e7
parentb1803e3fba12f271c17d9a8a961bb1ba8de836d9
ASoC: simple-card: Support setting mclk via a fixed factor

Some platforms require that the codecs mclk is a fixed multiplication
factor of the audio stream rate. Add a optional property to the
binding to hold this factor and implement a hw_params() function to
make use of it.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 2942a0e285c46587a1025f12597df63ec04d08c6)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Documentation/devicetree/bindings/sound/simple-card.txt
sound/soc/generic/simple-card.c