diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-03-07 00:09:34 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-07 02:41:54 -0500 |
commit | 09e59075496517206351cc28226ad7263a1a5c4f (patch) | |
tree | 775d4d4ee6579eeb7295a13cb649fff0463b4998 | |
parent | 0102eed57c47371023c03b3b0c564f33d5e94570 (diff) |
ASoC: rsnd: CMD TIMSEL support for Capture
CMD.out should use same as SRC.out for TIMSEL settings,
but it cares Playback case only. This patch fixup it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/adg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index f7e164c89f33..606399de684d 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c | |||
@@ -202,7 +202,10 @@ int rsnd_adg_set_cmd_timsel_gen2(struct rsnd_mod *cmd_mod, | |||
202 | int shift = (id % 2) ? 16 : 0; | 202 | int shift = (id % 2) ? 16 : 0; |
203 | u32 mask, val; | 203 | u32 mask, val; |
204 | 204 | ||
205 | val = rsnd_adg_ssi_ws_timing_gen2(io); | 205 | rsnd_adg_get_timesel_ratio(priv, io, |
206 | rsnd_src_get_in_rate(priv, io), | ||
207 | rsnd_src_get_out_rate(priv, io), | ||
208 | NULL, &val, NULL); | ||
206 | 209 | ||
207 | val = val << shift; | 210 | val = val << shift; |
208 | mask = 0xffff << shift; | 211 | mask = 0xffff << shift; |