ASoC: rsnd: add rsnd_src_get_in/out_rate()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 7 Mar 2016 05:08:33 +0000 (05:08 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 7 Mar 2016 07:41:54 +0000 (14:41 +0700)
commitcbf1494fbcc80d363477af1efefb2380e7660a24
tree0aa10c9ece476f52c5bd08a391f4c8e7d94c4c4d
parentab2049f9de72c901c07eec25eff74dae2e82df7e
ASoC: rsnd: add rsnd_src_get_in/out_rate()

SRC will convert rate, and then, CMD and SSI want to know its
rate (= SRC.in / SRC.out) for each purpose.
Current driver is supporting only Playback, but SRC+Capture support
needs more flexibility.
This patch adds rsnd_src_get_in/out_rate() for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/rsnd.h
sound/soc/sh/rcar/src.c
sound/soc/sh/rcar/ssi.c