1. 13 9月, 2013 1 次提交
  2. 30 8月, 2013 1 次提交
    • T
      ASoC: Samsung: Do not queue cyclic buffers multiple times · 9b9ae16a
      Tomasz Figa 提交于
      The legacy S3C-DMA API required every period of a cyclic buffer to be
      queued separately. After conversion of Samsung ASoC to Samsung DMA
      wrappers somebody made an assumption that the same is needed for DMA
      engine API, which is not true.
      
      In effect, Samsung ASoC DMA code was queuing the whole cyclic buffer
      multiple times with a shift of one period per iteration, leading to:
        a) severe memory waste - up to 13x times more DMA transfer descriptors
           are allocated than needed,
        b) possible memory corruption, because further cyclic buffers were out
           of the original buffers, due to the offset.
      
      This patch fixes this problem by making the legacy S3C-DMA API use the
      same semantics as DMA engine (the whole cyclic buffer is enqueued at
      once) and modifying users of Samsung DMA wrappers in cyclic mode to
      behave appropriately.
      Signed-off-by: NTomasz Figa <tomasz.figa@gmail.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      9b9ae16a
  3. 22 8月, 2013 1 次提交
  4. 20 8月, 2013 2 次提交
  5. 15 8月, 2013 1 次提交
    • J
      ASoC: samsung-ac97: simplify use of devm_ioremap_resource · 64efc5a0
      Julia Lawall 提交于
      Remove unneeded error handling on the result of a call to
      platform_get_resource when the value is passed to devm_ioremap_resource.
      
      Move the call to platform_get_resource adjacent to the call to
      devm_ioremap_resource to make the connection between them more clear.
      
      A simplified version of the semantic patch that makes this change is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression pdev,res,n,e,e1;
      expression ret != 0;
      identifier l;
      @@
      
      - res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        ... when != res
      - if (res == NULL) { ... \(goto l;\|return ret;\) }
        ... when != res
      + res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        e = devm_ioremap_resource(e1, res);
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      64efc5a0
  6. 13 8月, 2013 2 次提交
  7. 01 8月, 2013 1 次提交
  8. 30 7月, 2013 3 次提交
  9. 26 7月, 2013 1 次提交
  10. 16 7月, 2013 1 次提交
  11. 11 7月, 2013 1 次提交
  12. 04 7月, 2013 1 次提交
  13. 02 7月, 2013 1 次提交
  14. 29 6月, 2013 1 次提交
  15. 27 6月, 2013 3 次提交
  16. 22 6月, 2013 1 次提交
  17. 27 5月, 2013 1 次提交
  18. 22 5月, 2013 1 次提交
  19. 13 5月, 2013 1 次提交
  20. 12 4月, 2013 5 次提交
  21. 04 4月, 2013 2 次提交
  22. 27 3月, 2013 7 次提交
  23. 13 3月, 2013 1 次提交