diff options
author | Kuninori Morimoto | 2015-11-30 09:54:03 +0100 |
---|---|---|
committer | Mark Brown | 2015-11-30 19:11:23 +0100 |
commit | 186fadc132f0d634c7b43202a240fbd3654b6623 (patch) | |
tree | 7ae0a922d045d4ae7641157b2bd7e3ee047b46e6 /sound/soc/sh/rcar/ssiu.c | |
parent | ASoC: rsnd: dvc enables non-stereo sound (diff) | |
download | kernel-qcow2-linux-186fadc132f0d634c7b43202a240fbd3654b6623.tar.gz kernel-qcow2-linux-186fadc132f0d634c7b43202a240fbd3654b6623.tar.xz kernel-qcow2-linux-186fadc132f0d634c7b43202a240fbd3654b6623.zip |
ASoC: rsnd: add TDM Extend Mode support
Renesas R-Car can out TDM by
1) 6ch x 1 DAI as TDM Extend Mode
2) 2ch x 4 x 1 DAI as TDM split Mode
3) 2ch x 3 DAI or
2ch x 4 DAI as TDM Multichannel Mode
This patch adds 1) TDM Extend Mode. Because of HW design,
this 6ch data will be outputed via 8ch data width.
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/ssiu.c')
-rw-r--r-- | sound/soc/sh/rcar/ssiu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/ssiu.c b/sound/soc/sh/rcar/ssiu.c index 6120b0a66958..326550114299 100644 --- a/sound/soc/sh/rcar/ssiu.c +++ b/sound/soc/sh/rcar/ssiu.c @@ -78,6 +78,15 @@ static int rsnd_ssiu_init_gen2(struct rsnd_mod *mod, if (ret < 0) return ret; + if (rsnd_get_slot_runtime(io) >= 6) { + /* + * TDM Extend Mode + * see + * rsnd_ssi_config_init() + */ + rsnd_mod_write(mod, SSI_MODE, 0x1); + } + if (rsnd_ssi_use_busif(io)) { u32 val = rsnd_get_dalign(mod, io); |