1. 09 4月, 2015 1 次提交
  2. 21 11月, 2014 9 次提交
  3. 13 11月, 2014 2 次提交
    • C
      ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 · 76b188c4
      Chris J Arges 提交于
      This code contains the Scarlett mixer interface code that was originally
      written by Tobias Hoffman and Robin Gareus. Because the device doesn't
      properly implement UAC2 this code adds a mixer quirk for the device.
      
      Changes from the original code include removing the metering code along with
      dead code and comments. Compiler warnings were fixed. The code to initialize
      the sampling rate was causing a crash this was fixed as discussed on the
      mailing list. Error, and info messages were convered to dev_err and dev_info
      interfaces. The custom scarlett_mixer_elem_info struct was replaced with the
      more generic usb_mixer_elem_info to be able to recycle more code from mixer.c.
      
      This patch also makes additional modifications based on upstream comments.
      Individual control creation functions are removed and a generic
      function is no used. Macros for function calls are removed to improve
      readability. Hardcoded control initialization is removed. Save to HW
      functionality has been removed. Strings for enums are created dynamically for
      the mixer. Strings used for controls are now SNDRV_CTL_ELEM_ID_NAME_MAXLEN
      length.
      Signed-off-by: NChris J Arges <chris.j.arges@canonical.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      76b188c4
    • C
      ALSA: usb-audio: make set_*_mix_values functions public · eef90451
      Chris J Arges 提交于
      Make the functions set_cur_mix_value and get_cur_mix_value accessible by files
      that include mixer.h. In addition make usb_mixer_elem_free accessible.
      This allows reuse of these functions by mixers that may require quirks.
      
      The following summarizes the renamed functions:
        - set_cur_mix_value -> snd_usb_set_cur_mix_value
        - get_cur_mix_value -> snd_usb_get_cur_mix_value
        - usb_mixer_elem_free -> snd_usb_mixer_elem_free
      Signed-off-by: NChris J Arges <chris.j.arges@canonical.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      eef90451
  4. 12 11月, 2014 1 次提交
  5. 11 11月, 2014 1 次提交
  6. 21 10月, 2014 1 次提交
  7. 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
  8. 06 12月, 2013 1 次提交
  9. 14 11月, 2013 1 次提交
  10. 28 6月, 2013 1 次提交
  11. 07 4月, 2013 1 次提交
    • E
      ALSA: usb-audio: fix endianness bug in snd_nativeinstruments_* · 889d6684
      Eldad Zack 提交于
      The usb_control_msg() function expects __u16 types and performs
      the endianness conversions by itself.
      However, in three places, a conversion is performed before it is
      handed over to usb_control_msg(), which leads to a double conversion
      (= no conversion):
      * snd_usb_nativeinstruments_boot_quirk()
      * snd_nativeinstruments_control_get()
      * snd_nativeinstruments_control_put()
      
      Caught by sparse:
      
      sound/usb/mixer_quirks.c:512:38: warning: incorrect type in argument 6 (different base types)
      sound/usb/mixer_quirks.c:512:38:    expected unsigned short [unsigned] [usertype] index
      sound/usb/mixer_quirks.c:512:38:    got restricted __le16 [usertype] <noident>
      sound/usb/mixer_quirks.c:543:35: warning: incorrect type in argument 5 (different base types)
      sound/usb/mixer_quirks.c:543:35:    expected unsigned short [unsigned] [usertype] value
      sound/usb/mixer_quirks.c:543:35:    got restricted __le16 [usertype] <noident>
      sound/usb/mixer_quirks.c:543:56: warning: incorrect type in argument 6 (different base types)
      sound/usb/mixer_quirks.c:543:56:    expected unsigned short [unsigned] [usertype] index
      sound/usb/mixer_quirks.c:543:56:    got restricted __le16 [usertype] <noident>
      sound/usb/quirks.c:502:35: warning: incorrect type in argument 5 (different base types)
      sound/usb/quirks.c:502:35:    expected unsigned short [unsigned] [usertype] value
      sound/usb/quirks.c:502:35:    got restricted __le16 [usertype] <noident>
      Signed-off-by: NEldad Zack <eldad@fogrefinery.com>
      Acked-by: NDaniel Mack <zonque@gmail.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      889d6684
  12. 11 2月, 2013 1 次提交
  13. 10 1月, 2013 1 次提交
  14. 12 12月, 2012 1 次提交
  15. 29 11月, 2012 3 次提交
  16. 30 10月, 2012 1 次提交
  17. 11 6月, 2012 2 次提交
  18. 12 5月, 2012 1 次提交
  19. 24 4月, 2012 5 次提交
  20. 15 4月, 2012 1 次提交
  21. 27 9月, 2011 1 次提交
  22. 25 5月, 2011 1 次提交
  23. 18 5月, 2011 2 次提交