diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-11-10 04:52:06 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-10 16:14:10 +0100 |
commit | 3539cacff2031f6d47881c5f3a4932b0ad5ec224 (patch) | |
tree | 17c9cf8196f6562698221134a9126bcca5d9bd79 /sound/soc/sh/rcar/gen.c | |
parent | ASoC: rsnd: fallback to PIO mode if DMA mode was failed (diff) | |
download | linux-3539cacff2031f6d47881c5f3a4932b0ad5ec224.tar.xz linux-3539cacff2031f6d47881c5f3a4932b0ad5ec224.zip |
ASoC: rsnd: Add Volume Ramp support
This patch adds Volume Ramp to Renesas sound driver.
amixer set "DVC Out" 100%
amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
amixer set "DVC Out Ramp" on
aplay xxx.wav &
amixer set "DVC Out" 80% // Volume Down
amixer set "DVC Out" 100% // Volume Up
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar/gen.c')
-rw-r--r-- | sound/soc/sh/rcar/gen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/gen.c b/sound/soc/sh/rcar/gen.c index a0fed661142c..87a6f2d62775 100644 --- a/sound/soc/sh/rcar/gen.c +++ b/sound/soc/sh/rcar/gen.c @@ -324,6 +324,9 @@ static int rsnd_gen2_probe(struct platform_device *pdev, RSND_GEN_M_REG(DVC_ADINR, 0xe08, 0x100), RSND_GEN_M_REG(DVC_DVUCR, 0xe10, 0x100), RSND_GEN_M_REG(DVC_ZCMCR, 0xe14, 0x100), + RSND_GEN_M_REG(DVC_VRCTR, 0xe18, 0x100), + RSND_GEN_M_REG(DVC_VRPDR, 0xe1c, 0x100), + RSND_GEN_M_REG(DVC_VRDBR, 0xe20, 0x100), RSND_GEN_M_REG(DVC_VOL0R, 0xe28, 0x100), RSND_GEN_M_REG(DVC_VOL1R, 0xe2c, 0x100), RSND_GEN_M_REG(DVC_DVUER, 0xe48, 0x100), |