1. 16 4月, 2018 1 次提交
  2. 13 2月, 2018 2 次提交
  3. 29 11月, 2017 1 次提交
  4. 01 11月, 2017 1 次提交
    • K
      ASoC: rsnd: remove NULL check from rsnd_mod_name()/rsnd_mod_id() · 9b6ea250
      Kuninori Morimoto 提交于
      Current rsnd driver has rsnd_mod_id() which returns mod ID,
      and it returns -1 if mod was NULL.
      In the same time, this driver has rsnd_mod_name() which returns mod
      name, and it returns "unknown" if mod or mod->ops was NULL.
      
      Basically these "mod" never be NULL, but the reason why rsnd driver
      has such behavior is that DMA path finder is assuming memory as
      "mod == NULL".
      Thus, current DMA path debug code prints like below.
      Here "unknown[-1]" means it was memory.
      
      	...
      	rcar_sound ec500000.sound:   unknown[-1] from
      	rcar_sound ec500000.sound:   src[0] to
      	rcar_sound ec500000.sound:   ctu[2]
      	rcar_sound ec500000.sound:   mix[0]
      	rcar_sound ec500000.sound:   dvc[0]
      	rcar_sound ec500000.sound:   ssi[0]
      	rcar_sound ec500000.sound: audmac[0] unknown[-1] -> src[0]
      	...
      
      1st issue is that it is confusable for user.
      2nd issue is rsnd driver has something like below code.
      
      	mask |= 1 << rsnd_mod_id(mod);
      
      Because of this kind of code, some statically code checker will
      reports "Shifting by a negative value is undefined behaviour".
      
      But this "mod" never be NULL, thus negative shift never happen.
      To avoid these issues, this patch adds new dummy "mem" to
      indicate memory, and use it to indicate debug information,
      and, remove unneeded "NULL mod" behavior from rsnd_mod_id() and
      rsnd_mod_name().
      
      The debug information will be like below by this patch
      	...
      	rcar_sound ec500000.sound:   mem[0] from
      	rcar_sound ec500000.sound:   src[0] to
      	rcar_sound ec500000.sound:   ctu[2]
      	rcar_sound ec500000.sound:   mix[0]
      	rcar_sound ec500000.sound:   dvc[0]
      	rcar_sound ec500000.sound:   ssi[0]
      	rcar_sound ec500000.sound: audmac[0] mem[0] -> src[0]
      	...
      Reported-by: NHiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      9b6ea250
  5. 11 10月, 2017 1 次提交
  6. 04 10月, 2017 3 次提交
  7. 24 7月, 2017 1 次提交
  8. 21 6月, 2017 1 次提交
  9. 16 6月, 2017 4 次提交
  10. 14 6月, 2017 1 次提交
  11. 08 6月, 2017 2 次提交
  12. 07 6月, 2017 1 次提交
  13. 20 5月, 2017 2 次提交
  14. 17 5月, 2017 1 次提交
  15. 20 4月, 2017 1 次提交
  16. 06 4月, 2017 1 次提交
  17. 29 3月, 2017 1 次提交
  18. 23 1月, 2017 1 次提交
  19. 20 1月, 2017 1 次提交
  20. 07 12月, 2016 1 次提交
  21. 05 12月, 2016 1 次提交
  22. 29 10月, 2016 1 次提交
  23. 27 10月, 2016 3 次提交
  24. 25 10月, 2016 6 次提交
  25. 28 4月, 2016 1 次提交