1. 10 3月, 2011 2 次提交
  2. 23 2月, 2011 1 次提交
    • T
      ALSA: usb-audio: fix oops due to cleanup race when disconnecting · 382225e6
      Takashi Iwai 提交于
      When a USB audio device is disconnected, snd_usb_audio_disconnect()
      kills all audio URBs.  At the same time, the application, after being
      notified of the disconnection, might close the device, in which case
      ALSA calls the .hw_free callback, which should free the URBs too.
      
      Commit de1b8b93 "[ALSA] Fix hang-up at disconnection of usb-audio"
      prevented snd_usb_hw_free() from freeing the URBs to avoid a hang that
      resulted from this race, but this introduced another race because the
      URB callbacks could now be executed after snd_usb_hw_free() has
      returned, and try to access already freed data.
      
      Fix the first race by introducing a mutex to serialize the disconnect
      callback and all PCM callbacks that manage URBs (hw_free and hw_params).
      Reported-and-tested-by: NPierre-Louis Bossart <pierre-louis.bossart@intel.com>
      Cc: <stable@kernel.org>
      [CL: also serialize hw_params callback]
      Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      382225e6
  3. 15 2月, 2011 4 次提交
  4. 08 2月, 2011 2 次提交
  5. 25 1月, 2011 1 次提交
  6. 12 1月, 2011 2 次提交
  7. 10 1月, 2011 2 次提交
  8. 02 11月, 2010 1 次提交
    • M
      ALSA: usb-audio - Support for Power/Status LED on Creative USB X-Fi S51 · ca8dc34e
      Mandar Joshi 提交于
      This patch adds support for Power/Status LED on Creative USB X-Fi S51.
      There is just one LED on the device. The LED can either be On or it
      can be set to Blink. There doesn't seem to be a way to switch it off.
      The control message to change LED status is similar to that of
      audigy2nx except that the index is to be set to 0 and value is 1 for
      Blink and 0 for On.
      
      The 'Power LED' control in alsamixer when muted will cause the LED to
      Blink continuously. When unmuted  the LED will stay On. The Creative
      driver under Windows sets the LED to blink whenever audio is muted.
      This LED can be treated as the CMSS LED but I figured since there is
      just one LED, it should be treated as the Power LED. Is that alright?
      
      I've also changed the comment "Usb X-Fi" to "Usb X-Fi S51" as there
      are other external X-Fi devices from Creative like Usb X-Fi Go and
      Xmod. The volume knob and LED support patch doesn't apply to them.
      Signed-off-by: NMandar Joshi <emailmandar@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ca8dc34e
  9. 01 11月, 2010 1 次提交
  10. 27 10月, 2010 1 次提交
    • C
      ALSA: usb-audio: automatically detect feedback format · 89e1e66d
      Clemens Ladisch 提交于
      There are two USB Audio Class specifications (v1 and v2), but neither of
      them clearly defines the feedback format for high-speed UAC v1 devices.
      Add to this whatever the Creative and M-Audio firmware writers have been
      smoking, and it becomes impossible to predict the exact feedback format
      used by a particular device.
      
      Therefore, automatically detect the feedback format by looking at the
      magnitude of the first received feedback value.
      
      Also, this allows us to get rid of some special cases for E-Mu devices.
      Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      89e1e66d
  11. 24 10月, 2010 1 次提交
  12. 23 10月, 2010 1 次提交
  13. 17 10月, 2010 1 次提交
  14. 11 10月, 2010 1 次提交
  15. 06 10月, 2010 1 次提交
  16. 17 9月, 2010 1 次提交
  17. 16 9月, 2010 1 次提交
  18. 10 9月, 2010 2 次提交
  19. 08 9月, 2010 1 次提交
  20. 04 9月, 2010 4 次提交
  21. 02 9月, 2010 2 次提交
  22. 15 8月, 2010 1 次提交
    • D
      ALSA: sound/usb/format: silence uninitialized variable warnings · 38d7b08f
      Dan Carpenter 提交于
      Gcc complains that ret might be used uninitialized:
      
      sound/usb/format.c: In function ‘snd_usb_parse_audio_format’:
      sound/usb/format.c:354: warning: ‘ret’ may be used uninitialized in this function
      sound/usb/format.c:354: note: ‘ret’ was declared here
      sound/usb/format.c:414: warning: ‘ret’ may be used uninitialized in this function
      sound/usb/format.c:414: note: ‘ret’ was declared here
      
      I suppose it could be uninitialized if there is ever a UAC_VERSION_3
      released. Anyway this patch is worthwhile if only to silence the gcc
      warning.
      Signed-off-by: NDan Carpenter <error27@gmail.com>
      Acked-by: NDaniel Mack <daniel@caiaq.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      38d7b08f
  23. 14 8月, 2010 1 次提交
    • P
      ALSA: usb: USB3 SuperSpeed sound support · 4f4e8f69
      Paul Zimmerman 提交于
      This is V2 of the patch, after feedback from Clemens and Daniel.
      
      This patch adds SuperSpeed support to the USB drivers under sound/. It adds
      tests for USB_SPEED_SUPER to the appropriate places that check for the USB
      speed.
      
      This patch has been tested with our SS USB3 device emulating a set of Yamaha
      speakers and a Logitech microphone, but with the descriptors modified to add
      USB3 support. It has also been tested with the real speakers and microphone,
      to make sure that USB2 devices still work.
      Signed-off-by: NPaul Zimmerman <paulz@synopsys.com>
      Cc: Clemens Ladisch <clemens@ladisch.de>
      Cc: Daniel Mack <daniel@caiaq.de>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4f4e8f69
  24. 02 8月, 2010 1 次提交
  25. 13 7月, 2010 1 次提交
  26. 09 7月, 2010 1 次提交
  27. 24 6月, 2010 1 次提交
  28. 23 6月, 2010 1 次提交