diff options
author | Mark Brown <broonie@linaro.org> | 2014-03-25 17:22:09 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-25 17:22:09 -0400 |
commit | b5f93fae3ed60ee6e33b7fa2a3acd1685d7d1d7c (patch) | |
tree | 89db8d380a3511718b73bf247c3ebb1185186729 | |
parent | 8efe588b0f5c8d4400aee27cc7b5213715a7443b (diff) | |
parent | 002ccbb09c63a0df75382c9ace078b7cc4aee4e9 (diff) |
Merge tag 'asoc-v3.15-rcar' into asoc-next
ASoC: A few more fixes for rcar
Since Linus hasn't done the release yet and Morimoto-san here are some
additional bug fixes for rcar which Morimoto-san sent overnight.
# gpg: Signature made Mon 24 Mar 2014 11:21:18 GMT using RSA key ID 7EA229BD
# gpg: Good signature from "Mark Brown <broonie@sirena.org.uk>"
# gpg: aka "Mark Brown <broonie@debian.org>"
# gpg: aka "Mark Brown <broonie@kernel.org>"
# gpg: aka "Mark Brown <broonie@tardis.ed.ac.uk>"
# gpg: aka "Mark Brown <broonie@linaro.org>"
# gpg: aka "Mark Brown <Mark.Brown@linaro.org>"
-rw-r--r-- | sound/soc/sh/rcar/src.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index eee75ebf961c..6232b7d307aa 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c | |||
@@ -182,16 +182,20 @@ unsigned int rsnd_src_get_ssi_rate(struct rsnd_priv *priv, | |||
182 | struct rsnd_dai_stream *io, | 182 | struct rsnd_dai_stream *io, |
183 | struct snd_pcm_runtime *runtime) | 183 | struct snd_pcm_runtime *runtime) |
184 | { | 184 | { |
185 | struct rsnd_mod *src_mod = rsnd_io_to_mod_src(io); | ||
185 | struct rsnd_src *src; | 186 | struct rsnd_src *src; |
186 | unsigned int rate; | 187 | unsigned int rate = 0; |
187 | 188 | ||
188 | src = rsnd_mod_to_src(rsnd_io_to_mod_src(io)); | 189 | if (src_mod) { |
190 | src = rsnd_mod_to_src(src_mod); | ||
191 | |||
192 | /* | ||
193 | * return convert rate if SRC is used, | ||
194 | * otherwise, return runtime->rate as usual | ||
195 | */ | ||
196 | rate = rsnd_src_convert_rate(src); | ||
197 | } | ||
189 | 198 | ||
190 | /* | ||
191 | * return convert rate if SRC is used, | ||
192 | * otherwise, return runtime->rate as usual | ||
193 | */ | ||
194 | rate = rsnd_src_convert_rate(src); | ||
195 | if (!rate) | 199 | if (!rate) |
196 | rate = runtime->rate; | 200 | rate = runtime->rate; |
197 | 201 | ||