diff options
author | Mark Brown <broonie@kernel.org> | 2017-02-19 11:35:36 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-02-19 11:35:36 -0500 |
commit | bd85d189b33bda263bc59602de86391f476a3093 (patch) | |
tree | e122890446aaba0ee246e65d7b9a77f98560271c | |
parent | 5bf3db18db32d57c269c21e73df6a3621a30f6fc (diff) | |
parent | ef30da1c52c633a6eaa017ad0d075aaa809a6154 (diff) |
Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
-rw-r--r-- | sound/soc/sh/rcar/core.c | 2 | ||||
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 4 | ||||
-rw-r--r-- | sound/soc/sh/rcar/src.c | 6 |
3 files changed, 5 insertions, 7 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 99b5b0835c1e..47b370cb2d3b 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -363,8 +363,6 @@ struct rsnd_mod *rsnd_mod_next(int *iterator, | |||
363 | if (!mod) | 363 | if (!mod) |
364 | continue; | 364 | continue; |
365 | 365 | ||
366 | (*iterator)++; | ||
367 | |||
368 | return mod; | 366 | return mod; |
369 | } | 367 | } |
370 | 368 | ||
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index b90df77662df..7410ec0174db 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -374,10 +374,10 @@ struct rsnd_mod *rsnd_mod_next(int *iterator, | |||
374 | int array_size); | 374 | int array_size); |
375 | #define for_each_rsnd_mod(iterator, pos, io) \ | 375 | #define for_each_rsnd_mod(iterator, pos, io) \ |
376 | for (iterator = 0; \ | 376 | for (iterator = 0; \ |
377 | (pos = rsnd_mod_next(&iterator, io, NULL, 0));) | 377 | (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++) |
378 | #define for_each_rsnd_mod_arrays(iterator, pos, io, array, size) \ | 378 | #define for_each_rsnd_mod_arrays(iterator, pos, io, array, size) \ |
379 | for (iterator = 0; \ | 379 | for (iterator = 0; \ |
380 | (pos = rsnd_mod_next(&iterator, io, array, size));) | 380 | (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++) |
381 | #define for_each_rsnd_mod_array(iterator, pos, io, array) \ | 381 | #define for_each_rsnd_mod_array(iterator, pos, io, array) \ |
382 | for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array)) | 382 | for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array)) |
383 | 383 | ||
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 3a8f65bd1bf9..42db48db09ba 100644 --- 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 *mod, | |||
390 | { | 390 | { |
391 | struct rsnd_src *src = rsnd_mod_to_src(mod); | 391 | struct rsnd_src *src = rsnd_mod_to_src(mod); |
392 | 392 | ||
393 | /* reset sync convert_rate */ | ||
394 | src->sync.val = 0; | ||
395 | |||
393 | rsnd_mod_power_on(mod); | 396 | rsnd_mod_power_on(mod); |
394 | 397 | ||
395 | rsnd_src_activation(mod); | 398 | rsnd_src_activation(mod); |
@@ -398,9 +401,6 @@ static int rsnd_src_init(struct rsnd_mod *mod, | |||
398 | 401 | ||
399 | rsnd_src_status_clear(mod); | 402 | rsnd_src_status_clear(mod); |
400 | 403 | ||
401 | /* reset sync convert_rate */ | ||
402 | src->sync.val = 0; | ||
403 | |||
404 | return 0; | 404 | return 0; |
405 | } | 405 | } |
406 | 406 | ||