| From 621972565ead9343b491066ce4754e12602982a7 Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Thu, 2 Feb 2017 05:01:05 +0000 |
| Subject: [PATCH 115/255] ASoC: rsnd: fixup reset timing of sync convert_rate |
| |
| Sync convert rate settings should be availabled *after* Playing. |
| Thus, src->sync should be reset first of init function. |
| Otherwise, it will set remaining settings when it start playing. |
| This patch fixes it. Thanks to Yokoyama-san |
| |
| Reported-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com> |
| Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Signed-off-by: Mark Brown <broonie@kernel.org> |
| (cherry picked from commit ef30da1c52c633a6eaa017ad0d075aaa809a6154) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| sound/soc/sh/rcar/src.c | 6 +++--- |
| 1 file changed, 3 insertions(+), 3 deletions(-) |
| |
| --- a/sound/soc/sh/rcar/src.c |
| +++ b/sound/soc/sh/rcar/src.c |
| @@ -390,6 +390,9 @@ static int rsnd_src_init(struct rsnd_mod |
| { |
| struct rsnd_src *src = rsnd_mod_to_src(mod); |
| |
| + /* reset sync convert_rate */ |
| + src->sync.val = 0; |
| + |
| rsnd_mod_power_on(mod); |
| |
| rsnd_src_activation(mod); |
| @@ -398,9 +401,6 @@ static int rsnd_src_init(struct rsnd_mod |
| |
| rsnd_src_status_clear(mod); |
| |
| - /* reset sync convert_rate */ |
| - src->sync.val = 0; |
| - |
| return 0; |
| } |
| |