]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: rsnd: add MIX Volume Ramp support
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Sun, 1 Oct 2017 23:49:18 +0000 (23:49 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 4 Oct 2017 10:50:41 +0000 (11:50 +0100)
commit3e3c9ee1e4b3d0ef1f68f2037752196e7260bad9
tree04b8861f71baec70dc3124df315d3fceff21515a
parentf3c26ac61c09862f0037fe484a98da0364f02ec3
ASoC: rsnd: add MIX Volume Ramp support

Both DVC/MIX have Volume Ramp Control. This patch supprts MIX
Volume Ramp. One note is that main purpose of MIX Volume Ramp
is to reduce noise, thus, MIX Ramp range is very few if you
compare to DVC Volume Ramp (DVC = 5bit, MIX = 4bit).

You can use MIX Volume Ranp like below
amixer set "MIX Ramp Up Rate"   "0.125 dB/1 step"
amixer set "MIX Ramp Down Rate" "0.125 dB/1 step"
amixer set "MIX Ramp" on
aplay xxx.wav &
amixer set "MIX",0  80%  // DAI0 Volume Down
amixer set "MIX",1 100%  // DAI1 Volume Up

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/mix.c
sound/soc/sh/rcar/rsnd.h