Skip to content

Commit

Permalink
ASoC: rsnd: CMD TIMSEL support for Capture
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
morimoto authored and broonie committed Mar 7, 2016
1 parent 0102eed commit 09e5907
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sound/soc/sh/rcar/adg.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ int rsnd_adg_set_cmd_timsel_gen2(struct rsnd_mod *cmd_mod,
int shift = (id % 2) ? 16 : 0;
u32 mask, val;

val = rsnd_adg_ssi_ws_timing_gen2(io);
rsnd_adg_get_timesel_ratio(priv, io,
rsnd_src_get_in_rate(priv, io),
rsnd_src_get_out_rate(priv, io),
NULL, &val, NULL);

val = val << shift;
mask = 0xffff << shift;
Expand Down

0 comments on commit 09e5907

Please sign in to comment.