This project is mirrored from Pull mirroring updated .
  1. 23 Nov, 2020 4 commits
  2. 09 Jul, 2020 1 commit
  3. 06 Mar, 2020 1 commit
  4. 13 Feb, 2020 1 commit
  5. 30 Oct, 2019 1 commit
  6. 22 Aug, 2019 1 commit
  7. 30 May, 2019 1 commit
  8. 19 Jul, 2018 1 commit
  9. 28 May, 2018 1 commit
  10. 13 May, 2018 1 commit
    • Ruslan Bilovol's avatar
      ALSA: usb: add UAC3 BADD profiles support · 17156f23
      Ruslan Bilovol authored
      Recently released USB Audio Class 3.0 specification
      contains BADD (Basic Audio Device Definition) document
      which describes pre-defined UAC3 configurations.
      BADD support is mandatory for UAC3 devices, it should be
      implemented as a separate USB device configuration.
      As per BADD document, class-specific descriptors
      shall not be included in the Device’s Configuration
      descriptor ("inferred"), but host can guess them
      from BADD profile number, number of endpoints and
      their max packed sizes.
      This patch adds support of all BADD profiles from the spec
      Signed-off-by: default avatarRuslan Bilovol <>
      Tested-by: default avatarJorge Sanjuan <>
      Signed-off-by: default avatarTakashi Iwai <>
  11. 07 Apr, 2018 3 commits
  12. 23 Mar, 2018 1 commit
    • Andrew Chant's avatar
      ALSA: usb-audio: fix uac control query argument · 21e9b3e9
      Andrew Chant authored
      This patch fixes code readability and should have no functional change.
      Correct uac control query functions to account for the 1-based indexing
      of USB Audio Class control identifiers.
      The function parameter, u8 control, should be the
      constant defined in audio-v2.h to identify the control to be checked for
      readability or writeability.
      This patch fixes all callers that had adjusted, and makes explicit
      the mapping between audio_feature_info[] array index and the associated
      control identifier.
      Signed-off-by: default avatarAndrew Chant <>
      Signed-off-by: default avatarTakashi Iwai <>
  13. 21 Mar, 2018 1 commit
    • Ruslan Bilovol's avatar
      ALSA: usb: initial USB Audio Device Class 3.0 support · 9a2fe9b8
      Ruslan Bilovol authored
      Recently released USB Audio Class 3.0 specification
      introduces many significant changes comparing to
      previous versions, like
       - new Power Domains, support for LPM/L1
       - new Cluster descriptor
       - changed layout of all class-specific descriptors
       - new High Capability descriptors
       - New class-specific String descriptors
       - new and removed units
       - additional sources for interrupts
       - removed Type II Audio Data Formats
       - ... and many other things (check spec)
      It also provides backward compatibility through
      multiple configurations, as well as requires
      mandatory support for BADD (Basic Audio Device
      Definition) on each ADC3.0 compliant device
      This patch adds initial support of UAC3 specification
      that is enough for Generic I/O Profile (BAOF, BAIF)
      device support from BADD document.
      Signed-off-by: default avatarRuslan Bilovol <>
      Reviewed-by: default avatarGreg Kroah-Hartman <>
      Signed-off-by: default avatarTakashi Iwai <>
  14. 21 Nov, 2017 1 commit
  15. 29 Apr, 2016 1 commit
    • Takashi Iwai's avatar
      ALSA: usb-audio: Limit retrying sample rate reads · 57dd5414
      Takashi Iwai authored
      There are many USB audio devices with buggy firmware that don't react
      with the sample rate reading properly.  This often results in the
      flood of error messages and slowing down the operation.
      The sample rate read back is basically only for confirming the sample
      rate setup, and it's not critically important.  As a compromise, in
      this patch, we stop the sample rate read back once when the device
      gives errors more than tolerance (twice, as of now).  This should
      improve most of error cases while we still can catch the firmware
      Signed-off-by: default avatarTakashi Iwai <>
  16. 16 Mar, 2016 1 commit
  17. 17 Feb, 2015 1 commit
    • Joe Turner's avatar
      ALSA: usb-audio: Don't attempt to get Lifecam HD-5000 sample rate · b62b9980
      Joe Turner authored
      Adds a quirk to disable the check that the sample rate has been set correctly, as the Lifecam does not support getting the sample rate.
      This means that we don't need to wait for the USB timeout when attempting to get the sample rate. Waiting for the timeout causes problems in some applications, which give up on the device acquisition process before it has had time to complete, resulting in no sound.
      [minor tidy up by tiwai]
      Signed-off-by: default avatarJoe Turner <>
      Signed-off-by: default avatarTakashi Iwai <>
  18. 26 Feb, 2014 1 commit
    • Takashi Iwai's avatar
      ALSA: usb-audio: Use standard printk helpers · 0ba41d91
      Takashi Iwai authored
      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: default avatarTakashi Iwai <>
  19. 27 Jun, 2013 1 commit
  20. 26 Apr, 2013 1 commit
  21. 10 Apr, 2013 1 commit
  22. 04 Apr, 2013 6 commits
  23. 03 Apr, 2013 2 commits
    • Takashi Iwai's avatar
      ALSA: usb-audio: Clean up the code in set_sample_rate_v2() · 7c517465
      Takashi Iwai authored
      Just for cleaning up, introduce a new function get_sample_rate_v2()
      for replacing two identical calls in set_sample_rate_v2().
      No functional change.
      Signed-off-by: default avatarTakashi Iwai <>
    • Torstein Hegge's avatar
      ALSA: usb: Work around CM6631 sample rate change bug · 690a863f
      Torstein Hegge authored
      The C-Media CM6631 USB receiver doesn't respond to changes in sample rate
      while the interface is active. The same behavior is observed in other UAC2
      hardware like the VIA VT1731.
      Reset the interface after setting the sampling frequency on sample rate
      changes, to ensure that the sample rate set by snd_usb_init_sample_rate() is
      used. Otherwise, the device will try to use the sample rate of the previous
      stream, causing distorted sound on sample rate changes.
      The reset is performed for all UAC2 devices, as it should not affect a
      standards compliant device, but it is only necessary for C-Media CM6631,
      VIA VT1731 and possibly others.
      Failure to read sample rate from the device is not handled as an error in
      set_sample_rate_v2(), as (permanent or intermittent) failure to read sample
      rate isn't essential for a successful sample rate set.
      Signed-off-by: default avatarTorstein Hegge <>
      Acked-by: default avatarClemens Ladisch <>
      Signed-off-by: default avatarTakashi Iwai <>
  24. 01 Aug, 2012 1 commit
  25. 27 Sep, 2011 1 commit
  26. 18 May, 2011 1 commit
  27. 03 Sep, 2010 1 commit
    • Clemens Ladisch's avatar
      ALSA: usb-audio: fix detection of vendor-specific device protocol settings · a2acad82
      Clemens Ladisch authored
      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: default avatarClemens Ladisch <>
      Cc: Daniel Mack <>
      Cc: <>
      Signed-off-by: default avatarTakashi Iwai <>
  28. 09 Jul, 2010 1 commit
  29. 23 Jun, 2010 1 commit