1. 26 3月, 2013 1 次提交
  2. 23 1月, 2013 1 次提交
  3. 09 1月, 2013 1 次提交
    • F
      ASoC: mxs-saif: Use a signed integer for error value · 324a7fb0
      Fabio Estevam 提交于
      saif->id and saif->master_id are unsigned, so they can not be negative.
      
      Fix the following warning when building with W=1 option:
      
      sound/soc/mxs/mxs-saif.c: In function 'mxs_saif_probe':
      sound/soc/mxs/mxs-saif.c:676:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
      sound/soc/mxs/mxs-saif.c:688:3: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
      sound/soc/mxs/mxs-saif.c:692:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
      
      Use a signed variable 'ret' to handle the error values.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      324a7fb0
  4. 08 1月, 2013 1 次提交
  5. 09 12月, 2012 1 次提交
  6. 28 11月, 2012 1 次提交
  7. 02 11月, 2012 1 次提交
  8. 01 11月, 2012 1 次提交
  9. 08 8月, 2012 1 次提交
  10. 07 8月, 2012 1 次提交
  11. 25 7月, 2012 2 次提交
  12. 20 6月, 2012 1 次提交
    • L
      ASoC: dmaengine-pcm: Rename and deprecate snd_dmaengine_pcm_pointer · 9883ab22
      Lars-Peter Clausen 提交于
      Currently the sound dmaengine pcm helper functions implement the pcm_pointer
      callback by trying to count the number of elapsed periods. This is done by
      advancing the stream position in the dmaengine callback by one period.
      Unfortunately there is no guarantee that the callback will be called for each
      elapsed period. It may be possible that under high system load it is only called
      once for multiple elapsed periods. This patch renames the current implementation
      and documents its shortcomings and that it should not be used anymore in new
      drivers.
      
      The next patch will introduce a new snd_dmaengine_pcm_pointer which will be
      implemented based on querying the current stream position from the dma device.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Acked-by Vinod Koul <vinod.koul@linux.intel.com>
      Acked-by: Dong Aisheng <dong.aisheng@linaro.org
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      9883ab22
  13. 03 6月, 2012 1 次提交
    • S
      ASoC: make snd_soc_dai_link more symmetrical · bc92657a
      Stephen Warren 提交于
      Prior to this patch, the CPU side of a DAI link was specified using a
      single name. Often, this was the result of calling dev_name() on the
      device providing the DAI, but in the case of a CPU DAI driver that
      provided multiple DAIs, it needed to mix together both the device name
      and some device-relative name, in order to form a single globally unique
      name.
      
      However, the CODEC side of the DAI link was specified using separate
      fields for device (name or OF node) and device-relative DAI name.
      
      This patch allows the CPU side of a DAI link to be specified in the same
      way as the CODEC side, separating concepts of device and device-relative
      DAI name.
      
      I believe this will be important in multi-codec and/or dynamic PCM
      scenarios, where a single CPU driver provides multiple DAIs, while also
      booting using device tree, with accompanying desire not to hard-code the
      CPU side device's name into the original .cpu_dai_name field.
      
      Ideally, both the CPU DAI and CODEC DAI loops in soc_bind_dai_link()
      would now be identical. However, two things prevent that at present:
      
      1) The need to save rtd->codec for the CODEC side, which means we have
      to search for the CODEC explicitly, and not just the CODEC side DAI.
      
      2) Since we know the CODEC side DAI is part of a codec, and not just
      a standalone DAI, it's slightly more efficient to convert .codec_name/
      .codec_of_node into a codec first, and then compare each DAI's .codec
      field, since this avoids strcmp() on each DAI's CODEC's name within
      the loop.
      
      However, the two loops are essentially semantically equivalent.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      bc92657a
  14. 12 5月, 2012 4 次提交
  15. 10 5月, 2012 1 次提交
  16. 27 3月, 2012 1 次提交
  17. 21 3月, 2012 1 次提交
  18. 02 3月, 2012 1 次提交
  19. 22 2月, 2012 2 次提交
  20. 20 2月, 2012 1 次提交
  21. 11 2月, 2012 1 次提交
  22. 21 1月, 2012 1 次提交
    • F
      ASoC: mxs: Fix mxs-saif timeout · 6b35f924
      Fabio Estevam 提交于
      On a mx28evk board the following errors happens on mxs-sgtl5000 probe:
      
      [    0.660000] saif0_clk_set_rate: divider writing timeout
      [    0.670000] mxs-sgtl5000: probe of mxs-sgtl5000.0 failed with error -110
      [    0.670000] ALSA device list:
      [    0.680000]   No soundcards found.
      
      This timeout happens because clk_set_rate will result in writing to the DIV bits
      of register HW_CLKCTRL_SAIF0 with the saif clock gated (CLKGATE bit set to one).
      
      MX28 Reference states the following about CLKGATE:
      
      "The DIV field can change ONLY when this clock gate bit field is low."
      
      So call clk_prepare_enable prior to clk_set_rate to fix this problem.
      
      After this change the mxs-saif driver can be correctly probed and audio is functional.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      6b35f924
  23. 29 12月, 2011 1 次提交
  24. 28 12月, 2011 1 次提交
  25. 24 12月, 2011 1 次提交
  26. 22 12月, 2011 1 次提交
  27. 20 12月, 2011 1 次提交
  28. 11 12月, 2011 2 次提交
  29. 02 12月, 2011 1 次提交
  30. 24 11月, 2011 1 次提交
  31. 23 11月, 2011 1 次提交
    • L
      ASoC: Constify snd_soc_dai_ops structs · 85e7652d
      Lars-Peter Clausen 提交于
      Commit 1ee46ebd("ASoC: Make the DAI ops constant in the DAI structure")
      introduced the possibility to have constant DAI ops structures, yet this is
      barley used in both existing drivers and also new drivers being submitted,
      although none of them modifies its DAI ops structure. The later is not
      surprising since existing drivers are often used as templates for new drivers.
      So this patch just constifies all existing snd_soc_dai_ops structs to eliminate
      the issue altogether.
      
      The patch was generated with the following coccinelle semantic patch:
      // <smpl>
      @@
      identifier ops;
      @@
      -struct snd_soc_dai_ops ops =
      +const struct snd_soc_dai_ops ops =
      { ... };
      // </smpl>
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      85e7652d
  32. 22 10月, 2011 1 次提交
    • J
      ASoC: keep pointer to resource so it can be freed · 226d0f22
      Julia Lawall 提交于
      Add a new variable for storing resources accessed subsequent to the one
      accessed using request_mem_region, so the one accessed using
      request_mem_region can be released if needed.
      
      The resource variable names are also changed to be more descriptive.
      
      This code is also missing some calls to iounmap.
      
      The semantic match that finds this problem is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      expression E, E1;
      identifier f;
      statement S1,S2,S3;
      @@
      
      if (E == NULL)
      {
        ... when != if (E == NULL || ...) S1 else S2
            when != E = E1
      *E->f
        ... when any
        return ...;
      }
      else S3
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      226d0f22
  33. 20 9月, 2011 1 次提交
  34. 23 8月, 2011 1 次提交