1. 04 4月, 2013 1 次提交
  2. 03 4月, 2013 1 次提交
    • T
      ALSA: usb: Work around CM6631 sample rate change bug · 690a863f
      Torstein Hegge 提交于
      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: NTorstein Hegge <hegge@resisty.net>
      Acked-by: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      690a863f
  3. 20 3月, 2013 3 次提交
  4. 18 3月, 2013 5 次提交
  5. 12 3月, 2013 1 次提交
  6. 07 3月, 2013 1 次提交
  7. 04 3月, 2013 2 次提交
  8. 18 2月, 2013 1 次提交
  9. 11 2月, 2013 1 次提交
  10. 01 2月, 2013 1 次提交
  11. 29 1月, 2013 2 次提交
  12. 27 1月, 2013 1 次提交
  13. 26 1月, 2013 1 次提交
    • T
      ALSA: Make snd_printd() and snd_printdd() inline · 86b27237
      Takashi Iwai 提交于
      Because currently snd_printd() and snd_printdd() macros are expanded
      to empty when CONFIG_SND_DEBUG=n, a compile warning like below
      appears sometimes, and we had to covert it by ugly ifdefs:
        sound/pci/hda/patch_sigmatel.c: In function ‘stac92hd71bxx_fixup_hp’:
        sound/pci/hda/patch_sigmatel.c:2434:24: warning: unused variable ‘spec’ [-Wunused-variable]
      
      For "fixing" these issues better, this patch replaces snd_printd() and
      snd_printdd() definitions with empty inline functions instead of
      macros.  This should have the same effect but shut up warnings like
      above.
      
      But since we had already put ifdefs, changing to inline functions
      would trigger compile errors.  So, such ifdefs is removed in this
      patch.
      
      In addition, snd_pci_quirk name field is defined only when
      CONFIG_SND_DEBUG_VERBOSE is set, and the reference to it in
      snd_printdd() argument triggers the build errors, too.  For avoiding
      these errors, introduce a new macro snd_pci_quirk_name() that is
      defined no matter how the debug option is set.
      Reported-by: NStratos Karafotis <stratosk@semaphore.gr>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      86b27237
  14. 14 1月, 2013 4 次提交
  15. 11 1月, 2013 1 次提交
  16. 10 1月, 2013 1 次提交
  17. 04 1月, 2013 1 次提交
  18. 03 1月, 2013 1 次提交
    • A
      ALSA: usb-audio: Add support for Creative BT-D1 via usb sound quirks · 8f7f3ab1
      Alexander Schremmer 提交于
      Support the Creative BT-D1 Bluetooth USB audio device. Before this
      patch, Linux had trouble finding the correct USB descriptors and bailed
      out with these messages:
      
       no or invalid class specific endpoint descriptor
      
      Now it still prints these messages on hotplug:
      
       snd-usb-audio: probe of ...:1.0 failed with error -5
       snd-usb-audio: probe of ...:1.2 failed with error -5
       snd-usb-audio: probe of ...:1.3 failed with error -5
      
      But the device works correctly, including the HID support.
      
      The patch is diff'ed against 3.8-rc1 but should apply to older kernels
      as well.
      Signed-off-by: NAlexander Schremmer <alex@alexanderweb.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      8f7f3ab1
  19. 24 12月, 2012 1 次提交
  20. 19 12月, 2012 1 次提交
    • D
      ALSA: usb-audio: Support for Digidesign Mbox 2 USB sound card: · cb99864d
      Damien Zammit 提交于
      This patch is the result of a lot of trial and error, since there are no specs
      available for the device.
      
      Full duplex support is provided, i.e. playback and recording in stereo.
      The format is hardcoded at 48000Hz @ 24 bit, which is the maximum that the
      device supports.  Also, MIDI in and MIDI out both work.
      
      Users will notice that the S/PDIF light also flashes when playback or recording
      is active.  I believe this means that S/PDIF input/output is simultaneously
      activated with the analogue i/o during use.
      But this particular functionality remains untested.
      
      Note that this particular version of the patch is so far untested on the
      physical hardware because I have not compiled a full kernel with the changes.
      However, extensive testing has been done by many users of the hardware
      who believe other versions of my patch have worked since circa 2009.
      
      [Modified to make a function static by tiwai]
      Signed-off-by: NDamien Zammit <damien@zamaudio.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      cb99864d
  21. 15 12月, 2012 1 次提交
  22. 12 12月, 2012 1 次提交
  23. 07 12月, 2012 3 次提交
  24. 04 12月, 2012 3 次提交
    • E
      ALSA: usb-audio: sync ep init fix for audioformat mismatch · 0d9741c0
      Eldad Zack 提交于
      Commit 947d2996 , "ALSA: snd-usb:
      properly initialize the sync endpoint", while correcting the
      initialization of the sync endpoint when opening just the data
      endpoint, prevents devices that has a sync endpoint, with a channel
      number different than that of the data endpoint, from functioning.
      Due to a different channel and period bytes count, attempting to
      initialize the sync endpoint will fail at the usb host driver.
      For example, when using xhci:
      
       cannot submit urb 0, error -90: internal error
      
      With this patch, if a sync endpoint has multiple audioformats, a
      matching audioformat is preferred. An audioformat must be found
      with at least one channel and support the requested sample rate
      and PCM format, otherwise the stream will not be opened.
      
      If the number of channels differ between the selected audioformat
      and the requested format, adjust the period bytes count accordingly.
      It is safe to perform the calculation on the basis of the channel
      count, since the requested PCM audio format and the rate must be
      supported by the selected audioformat.
      
      Cc: Jeffrey Barish <jeff_barish@earthlink.net>
      Cc: Daniel Mack <zonque@gmail.com>
      Signed-off-by: NEldad Zack <eldad@fogrefinery.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      0d9741c0
    • T
      ALSA: usb-audio: Fix missing autopm for MIDI input · f5f16541
      Takashi Iwai 提交于
      The commit [88a8516a: ALSA: usbaudio: implement USB autosuspend] added
      the support of autopm for USB MIDI output, but it didn't take the MIDI
      input into account.
      
      This patch adds the following for fixing the autopm:
      - Manage the URB start at the first MIDI input stream open, instead of
        the time of instance creation
      - Move autopm code to the common substream_open()
      - Make snd_usbmidi_input_start/_stop() more robust and add the running
        state check
      Reviewd-by: NClemens Ladisch <clemens@ladisch.de>
      Tested-by: NClemens Ladisch <clemens@ladisch.de>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f5f16541
    • T
      ALSA: usb-audio: Avoid autopm calls after disconnection · 59866da9
      Takashi Iwai 提交于
      Add a similar protection against the disconnection race and the
      invalid use of usb instance after disconnection, as well as we've done
      for the USB audio PCM.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=51201Reviewd-by: NClemens Ladisch <clemens@ladisch.de>
      Tested-by: NClemens Ladisch <clemens@ladisch.de>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      59866da9
  25. 29 11月, 2012 1 次提交