]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: rsnd: add rsnd_soc_hw_rule/constraint()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 15 Jun 2017 00:50:19 +0000 (00:50 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 15 Jun 2017 17:18:08 +0000 (18:18 +0100)
commit8cc03722403a5153054993388857e4e565dcdfb1
treea887ccfdccfd249e46cbfae0269d347448f9a527
parentef4cf5d6a143e04e149ad81fc491fe10855544fe
ASoC: rsnd: add rsnd_soc_hw_rule/constraint()

Current Renesas sound driver is assuming that all Sampling rate and
channles are possible to use, but these are depends on inputed clock
and SSI connection situation.
For example, if it is using 1 SSI, enabled TDM mode and has 12288000
input clock, 2ch output can support until 192000Hz, but 6ch output can
support until 64000Hz, 8ch can support 48000Hz.
To control these situation correctly, it needs to support
hw_constraints / refine feature.

To support such feature, this patch adds new
rsnd_soc_hw_rule/constraint() which adds hw rule of Channel and
Sampling Rate.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/rsnd.h