1. 25 4月, 2013 2 次提交
    • T
      ALSA: usb-audio: Fix autopm error during probing · 60af3d03
      Takashi Iwai 提交于
      We've got strange errors in get_ctl_value() in mixer.c during
      probing, e.g. on Hercules RMX2 DJ Controller:
      
        ALSA mixer.c:352 cannot get ctl value: req = 0x83, wValue = 0x201, wIndex = 0xa00, type = 4
        ALSA mixer.c:352 cannot get ctl value: req = 0x83, wValue = 0x200, wIndex = 0xa00, type = 4
        ....
      
      It turned out that the culprit is autopm: snd_usb_autoresume() returns
      -ENODEV when called during card->probing = 1.
      
      Since the call itself during card->probing = 1 is valid, let's fix the
      return value of snd_usb_autoresume() as success.
      Reported-and-tested-by: NDaniel Schürmann <daschuer@mixxx.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      60af3d03
    • D
      ALSA: snd-usb: try harder to find USB_DT_CS_ENDPOINT · ebfc594c
      Daniel Mack 提交于
      The USB_DT_CS_ENDPOINT class-specific endpoint descriptor is usually
      stuffed directly after the standard USB endpoint descriptor, and this is
      where the driver currently expects it to be.
      
      There are, however, devices in the wild that have it the other way
      around in their descriptor sets, so the USB_DT_CS_ENDPOINT comes
      *before* the standard enpoint. Devices known to implement it that way
      are "Sennheiser BTD-500" and Plantronics USB headsets.
      
      When the driver can't find the USB_DT_CS_ENDPOINT, it won't be able to
      change sample rates, as the bitmask for the validity of this command is
      storen in bmAttributes of that descriptor.
      
      Fix this by searching the entire interface instead of just the extra
      bytes of the first endpoint, in case the latter fails.
      Signed-off-by: NDaniel Mack <zonque@gmail.com>
      Reported-and-tested-by: NTorstein Hegge <hegge@resisty.net>
      Reported-and-tested-by: NYves G <alsa-user@vivigatt.com>
      Cc: stable@kernel.org
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ebfc594c
  2. 24 4月, 2013 2 次提交
  3. 22 4月, 2013 4 次提交
  4. 21 4月, 2013 7 次提交
  5. 18 4月, 2013 15 次提交
  6. 17 4月, 2013 10 次提交