1. 23 Feb, 2012 1 commit
    • Mark Brown's avatar
      ASoC: dapm: Check for bias level when powering down · 7679e42e
      Mark Brown authored
      Recent enhancements in the bias management means that we might not be
      in standby when the CODEC is idle and can have active widgets without
      being in full power mode but the shutdown functionality assumes these
      things. Add checks for the bias level at each stage so that we don't
      do transitions other than the ON->PREPARE->STANDBY->OFF ones that the
      drivers are expecting.
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@kernel.org
      7679e42e
  2. 21 Feb, 2012 1 commit
  3. 14 Feb, 2012 1 commit
  4. 09 Feb, 2012 1 commit
  5. 08 Feb, 2012 2 commits
  6. 06 Feb, 2012 1 commit
  7. 01 Feb, 2012 3 commits
  8. 31 Jan, 2012 3 commits
  9. 30 Jan, 2012 1 commit
  10. 27 Jan, 2012 1 commit
  11. 26 Jan, 2012 1 commit
  12. 25 Jan, 2012 5 commits
  13. 24 Jan, 2012 1 commit
    • Jesper Juhl's avatar
      ASoC: wm2000: Fix use-after-free - don't release_firmware() twice on error · c83f1d7e
      Jesper Juhl authored
      In wm2000_i2c_probe(), if we take the true branch in
      
      "
        ret = snd_soc_register_codec(&i2c->dev, &soc_codec_dev_wm2000,
                                     NULL, 0);
        if (ret != 0)
                goto err_fw;
      "
      
      then we'll release_firmware(fw) at the 'err_fw' label. But we've already
      done that just a few lines above. That's a use-after-free bug.
      
      This patch restructures the code so that we always call
      release_firmware(fw) before leaving the function, but only ever call
      it once.
      This means that we have to initialize 'fw' to NULL since some paths
      may now end up calling it without having called request_firmware(),
      but since request_firmware() deals gracefully with NULL pointers, we
      are fine if we just NULL initialize it.
      Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      c83f1d7e
  14. 23 Jan, 2012 1 commit
  15. 22 Jan, 2012 1 commit
  16. 20 Jan, 2012 7 commits
  17. 19 Jan, 2012 9 commits