1. 18 1月, 2015 1 次提交
  2. 21 11月, 2014 2 次提交
    • T
      ALSA: usb-audio: Allow quirks to handle own resume and proc dump · 3360b84b
      Takashi Iwai 提交于
      So far, we blindly assumed that the all usb-audio mixer elements
      follow the standard and apply the standard resume method for the
      registered elements in the id_elems[] list.  However, some quirks
      really need the own resume and it's incomplete for now.
      
      This patch enhances the resume handling in two folds:
      - split some fields in struct usb_mixer_elem_info into a smaller
        header struct (usb_mixer_elem_list) for keeping the minimal
        information in the linked-list; the usb_mixer_elem_info embeds this
        header struct instead
      - add resume and dump callbacks to usb_mixer_elem_list struct to allow
        quirks providing the own methods
      
      For the standard mixer elements, these new callbacks are set to the
      standard ones as default, thus there is no functional change by this
      patch yet.
      
      The dump and resume callbacks are typedef'ed for ease of later patches
      using arrays of such function pointers.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3360b84b
    • T
      ALSA: usb-audio: Refactor ignore_ctl_error checks · 5aeee342
      Takashi Iwai 提交于
      Introduce an internal helper macro for avoiding many open codes.
      
      The only slight behavior change is in a couple of get ballcks where
      the value is reset at error no matter whether ignore_ctl_error is set
      or not.  Actually this is even safer than before.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5aeee342
  3. 17 11月, 2014 1 次提交
  4. 13 11月, 2014 1 次提交
  5. 04 11月, 2014 1 次提交
  6. 19 10月, 2014 1 次提交
  7. 04 8月, 2014 1 次提交
  8. 25 5月, 2014 2 次提交
  9. 28 4月, 2014 1 次提交
  10. 05 3月, 2014 1 次提交
  11. 26 2月, 2014 1 次提交
    • T
      ALSA: usb-audio: Use standard printk helpers · 0ba41d91
      Takashi Iwai 提交于
      Convert with dev_err() and co from snd_printk(), etc.
      As there are too deep indirections (e.g. ep->chip->dev->dev),
      a few new local macros, usb_audio_err() & co, are introduced.
      
      Also, the device numbers in some messages are dropped, as they are
      shown in the prefix automatically.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      0ba41d91
  12. 14 2月, 2014 1 次提交
  13. 03 2月, 2014 1 次提交
  14. 26 9月, 2013 1 次提交
  15. 12 8月, 2013 1 次提交
  16. 17 6月, 2013 1 次提交
  17. 05 6月, 2013 1 次提交
  18. 20 3月, 2013 3 次提交
  19. 11 2月, 2013 1 次提交
  20. 27 1月, 2013 1 次提交
  21. 29 11月, 2012 4 次提交
  22. 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
  23. 20 9月, 2012 1 次提交
  24. 15 5月, 2012 1 次提交
  25. 24 4月, 2012 2 次提交
  26. 15 4月, 2012 1 次提交
  27. 09 11月, 2011 2 次提交
  28. 13 10月, 2011 1 次提交
  29. 27 9月, 2011 1 次提交
  30. 19 8月, 2011 1 次提交