1. 09 5月, 2012 1 次提交
    • T
      ALSA: hda - Always resume the codec immediately · 7f30830b
      Takashi Iwai 提交于
      This is a fix for the problem in commit 785f857d, the pop noise
      issue on some machines with ALC269.  The problem was the uninitialized
      state after the resume due to the delayed resume of the codec chips.
      In that commit, we tried to fix by forcibly putting the codec to D3 at
      suspend.  But, this still also leaves the uninitialized state after
      resume, and it _might_ be still problematic with some BIOS.  Since the
      commit turned out to regress another issues, we reverted it in the
      end.
      
      Now, in this fix, try to fix by turning on the codec immediately at
      the resume path.  We need to take care of the power-saving in this
      case.  When the device is woken up at the power-saved state, it should
      go power-saving again after the resume.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7f30830b
  2. 08 5月, 2012 6 次提交
  3. 07 5月, 2012 2 次提交
  4. 06 5月, 2012 1 次提交
    • M
      ALSA: echoaudio: Remove incorrect part of assertion · c914f55f
      Mark Hills 提交于
      This assertion seems to imply that chip->dsp_code_to_load is a pointer.
      It's actually an integer handle on the actual firmware, and 0 has no
      special meaning.
      
      The assertion prevents initialisation of a Darla20 card, but would also
      affect other models. It seems it was introduced in commit dd7b254d.
      
      ALSA sound/pci/echoaudio/echoaudio.c:2061 Echoaudio driver starting...
      ALSA sound/pci/echoaudio/echoaudio.c:1969 chip=ebe4e000
      ALSA sound/pci/echoaudio/echoaudio.c:2007 pci=ed568000 irq=19 subdev=0010 Init hardware...
      ALSA sound/pci/echoaudio/darla20_dsp.c:36 init_hw() - Darla20
      ------------[ cut here ]------------
      WARNING: at sound/pci/echoaudio/echoaudio_dsp.c:478 init_hw+0x1d1/0x86c [snd_darla20]()
      Hardware name: Dell DM051
      BUG? (!chip->dsp_code_to_load || !chip->comm_page)
      Signed-off-by: NMark Hills <mark@pogo.org.uk>
      Cc: <stable@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      c914f55f
  5. 05 5月, 2012 3 次提交
  6. 04 5月, 2012 1 次提交
  7. 01 5月, 2012 2 次提交
  8. 30 4月, 2012 1 次提交
    • E
      ASoC: tlv312aic23: unbreak resume · e875c1e3
      Eric Bénard 提交于
      * commit f9dfbf91 "ASoC: tlv320aic23: convert to soc-cache" leads to
      a bug preventing resumeof the codec as regmap expects a 9 bits data
      register but 0xFFFF is passed in tlv320aic23_set_bias_level and this
      values gets cached preventing any write to the TLV320AIC23_PWR
      register as the final value produced by regmap is (register << 9) | value
      
      * this patch solves the problem by only working on the 9 bits the
      register contains.
      Signed-off-by: NEric Bénard <eric@eukrea.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@vger.kernel.org
      e875c1e3
  9. 25 4月, 2012 1 次提交
  10. 24 4月, 2012 4 次提交
  11. 23 4月, 2012 1 次提交
  12. 20 4月, 2012 4 次提交
  13. 19 4月, 2012 7 次提交
  14. 18 4月, 2012 3 次提交
  15. 13 4月, 2012 3 次提交
    • J
      ASoC: cs42l73: don't use negative array index · 86fc4998
      Jesper Juhl 提交于
      If cs42l73_get_mclkx_coeff() returns < 0 (which it can) in
      sound/soc/codecs/cs42l73.c::cs42l73_set_mclk(), then we'll be using
      the (negative) return value as array index on the very next line of
      code - that's bad.
      
      Catch the negative return value and propagate it to the caller (which
      checks for it) and things are a bit more sane :-)
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      86fc4998
    • J
      ALSA: hda/realtek - Fix mem leak (and rid us of trailing whitespace). · 7d7eb9ea
      Jesper Juhl 提交于
      In sound/pci/hda/patch_realtek.c::alc_auto_fill_dac_nids(), in the
      'for (;;)' loop, if the 'badness' value returned from
      fill_and_eval_dacs() is negative, then we'll return from the function
      without freeing the memory we allocated for 'best_cfg', thus leaking.
      Fix the leak by kfree()'ing the memory when badness is negative.
      
      While I was there I also noticed some trailing whitespace in the
      function that I removed (along with all other trailing whitespace in
      the file) - it didn't seem worth-while to do that as two patches, so I
      hope it's OK that I just did it all as one patch.
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7d7eb9ea
    • M
      ASoC: dapm: Ensure power gets managed for line widgets · 7e1f7c8a
      Mark Brown 提交于
      Line widgets had not been included in either the power up or power down
      sequences so if a widget had an event associated with it that event would
      never be run. Fix this minimally by adding them to the sequences, we
      should probably be doing away with the specific widget types as they all
      have the same priority anyway.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@vger.kernel.org
      7e1f7c8a