]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: add Synchronous SRC mode
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 1 Apr 2015 04:15:16 +0000 (04:15 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 1 Apr 2015 20:23:37 +0000 (21:23 +0100)
commitf1c176038949b5d88076d590f0d9f8697c235a30
tree226b9fefccce33865b68083c1cb16fa1ac90091f
parent4c72c623a2d6db806e1a16952a3d589a7e00e3ea
ASoC: rsnd: add Synchronous SRC mode

Renesas R-Car sound SRC (= Sampling Rate Converter) has
Asynchronous/Synchronous SRC mode. Asynchronous mode is already
supported via DPCM. This patch adds Synchronous mode on it.

The condition of enabling Synchronous mode are
- SoC is clock master
- Sound uses SRC
- Sound doesn't use DVC
- Sound card uses DPCM (= rsrc-card card)

amixer set "SRC Out Rate" on
aplay xxx.wav &
amixer set "SRC Out Rate" 48000

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