diff options
author | Mark Brown <broonie@kernel.org> | 2017-06-07 20:30:32 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-07 20:30:32 +0100 |
commit | 9bc3b4ff18d130da09ad608718d4afcda01b3e56 (patch) | |
tree | 46d214f42c10e8736d11bc36372d0c8c176fdca9 /sound/soc/sh/rcar/adg.c | |
parent | 07b7acb51d283d8469696c906b91f1882696a4d4 (diff) | |
parent | e8a3ce1130134046e9da132aa4d043566df8237d (diff) | |
download | linux-stable-9bc3b4ff18d130da09ad608718d4afcda01b3e56.tar.gz linux-stable-9bc3b4ff18d130da09ad608718d4afcda01b3e56.tar.bz2 linux-stable-9bc3b4ff18d130da09ad608718d4afcda01b3e56.zip |
Merge branch 'fix/rcar' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-rcar
Diffstat (limited to 'sound/soc/sh/rcar/adg.c')
-rw-r--r-- | sound/soc/sh/rcar/adg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index 36bece8621b7..4a72fd74ddc2 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c @@ -510,7 +510,8 @@ static void rsnd_adg_get_clkout(struct rsnd_priv *priv, rbga = rbgx; adg->rbga_rate_for_441khz = rate / div; ckr |= brg_table[i] << 20; - if (req_441kHz_rate) + if (req_441kHz_rate && + !(adg_mode_flags(adg) & AUDIO_OUT_48)) parent_clk_name = __clk_get_name(clk); } } @@ -525,7 +526,8 @@ static void rsnd_adg_get_clkout(struct rsnd_priv *priv, rbgb = rbgx; adg->rbgb_rate_for_48khz = rate / div; ckr |= brg_table[i] << 16; - if (req_48kHz_rate) + if (req_48kHz_rate && + (adg_mode_flags(adg) & AUDIO_OUT_48)) parent_clk_name = __clk_get_name(clk); } } |