1. 30 10月, 2012 2 次提交
    • T
      ALSA: usb-audio: Use rwsem for disconnect protection · 34f3c89f
      Takashi Iwai 提交于
      Replace mutex with rwsem for codec->shutdown protection so that
      concurrent accesses are allowed.
      
      Also add the protection to snd_usb_autosuspend() and
      snd_usb_autoresume(), too.
      Reported-by: NMatthieu CASTET <matthieu.castet@parrot.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      34f3c89f
    • T
      ALSA: usb-audio: Fix races at disconnection · 978520b7
      Takashi Iwai 提交于
      Close some races at disconnection of a USB audio device by adding the
      chip->shutdown_mutex and chip->shutdown check at appropriate places.
      
      The spots to put bandaids are:
      - PCM prepare, hw_params and hw_free
      - where the usb device is accessed for communication or get speed, in
       mixer.c and others; the device speed is now cached in subs->speed
       instead of accessing to chip->dev
      
      The accesses in PCM open and close don't need the mutex protection
      because these are already handled in the core PCM disconnection code.
      
      The autosuspend/autoresume codes are still uncovered by this patch
      because of possible mutex deadlocks.  They'll be covered by the
      upcoming change to rwsem.
      
      Also the mixer codes are untouched, too.  These will be fixed in
      another patch, too.
      Reported-by: NMatthieu CASTET <matthieu.castet@parrot.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      978520b7
  2. 20 9月, 2012 1 次提交
  3. 15 5月, 2012 1 次提交
  4. 24 4月, 2012 2 次提交
  5. 15 4月, 2012 1 次提交
  6. 09 11月, 2011 2 次提交
  7. 13 10月, 2011 1 次提交
  8. 27 9月, 2011 1 次提交
  9. 19 8月, 2011 2 次提交
    • T
      ALSA: usb-audio - Check the dB-range validity in the later read, too · 9fcd0ab1
      Takashi Iwai 提交于
      When the initial check of dB-range failed due to the read error, try to
      check again at the later read, too.  When an invalid dB range is found,
      remove TLV flags and notify the mixer info change.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9fcd0ab1
    • T
      ALSA: usb-audio - Fix missing mixer dB information · 38b65190
      Takashi Iwai 提交于
      The recent fix for testing dB range at the mixer creation time seems
      to cause regressions in some devices.  In such devices, reading the dB
      info at probing time gives an error, thus both dBmin and dBmax are still
      zero, and TLV flag isn't set although the later read of dB info succeeds.
      
      This patch adds a workaround for such a case by assuming that the later
      read will succeed.  In future, a similar test should be performed in a
      case where a wrong dB range is seen even in the later read.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Cc: <stable@kernel.org>
      38b65190
  10. 04 8月, 2011 2 次提交
  11. 25 5月, 2011 2 次提交
  12. 28 4月, 2011 1 次提交
  13. 31 3月, 2011 1 次提交
  14. 11 3月, 2011 2 次提交
  15. 10 3月, 2011 2 次提交
  16. 08 2月, 2011 1 次提交
  17. 10 1月, 2011 1 次提交
  18. 17 9月, 2010 1 次提交
  19. 16 9月, 2010 1 次提交
  20. 04 9月, 2010 1 次提交
    • C
      ALSA: usb-audio: fix detection of vendor-specific device protocol settings · a2acad82
      Clemens Ladisch 提交于
      The Audio Class v2 support code in 2.6.35 added checks for the
      bInterfaceProtocol field.  However, there are devices (usually those
      detected by vendor-specific quirks) that do not have one of the
      predefined values in this field, which made the driver reject them.
      
      To fix this regression, restore the old behaviour, i.e., assume that
      a device with an unknown bInterfaceProtocol field (other than
      UAC_VERSION_2) has more or less UAC-v1-compatible descriptors.
      
      [compile warning fixes by tiwai]
      Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
      Cc: Daniel Mack <daniel@caiaq.de>
      Cc: <stable@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a2acad82
  21. 24 6月, 2010 1 次提交
  22. 23 6月, 2010 4 次提交
  23. 12 6月, 2010 1 次提交
  24. 01 6月, 2010 6 次提交