1. 18 3月, 2013 2 次提交
    • M
      ALSA: usb-audio: Trust fields given in the quirk · 59ea586f
      Mark Hills 提交于
      The maxpacksize field is given in some quirks, but it gets ignored (in
      favour of wMaxPacketSize from the first endpoint.) This patch favours
      the one in the quirk.
      
      Digidesign Mbox and Mbox 2 are the only affected quirks and the devices
      are assumed to be working without this patch. So for safety against the
      values in the quirk being incorrect, remove them.
      
      The datainterval is also ignored but there are not currently any quirks
      which choose to override this.
      
      Cc: Damien Zammit <damien@zamaudio.com>
      Cc: Chris J Arges <christopherarges@gmail.com>
      Signed-off-by: NMark Hills <mark@xwax.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      59ea586f
    • M
      ALSA: usb-audio: Playback and MIDI support for Novation Twitch DJ controller · 5e212332
      Mark Hills 提交于
      The hardware also has a PCM capture device which is not implemented in
      this patch.
      
      It may be possible to generalise this to Saffire 6 USB support and some
      of the other Focusrite interfaces, but as I don't have access to these
      devices we should wait until capture support is working first.
      
      Capture support is not implemented because the code assumes the endpoint
      to have its own interface (instead, it shares the interface with playback)
      and some thought will be needed to lift this limitation.
      Signed-off-by: NMark Hills <mark@xwax.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5e212332
  2. 07 3月, 2013 1 次提交
  3. 04 3月, 2013 2 次提交
  4. 18 2月, 2013 1 次提交
  5. 11 2月, 2013 1 次提交
  6. 01 2月, 2013 1 次提交
  7. 29 1月, 2013 2 次提交
  8. 27 1月, 2013 1 次提交
  9. 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
  10. 14 1月, 2013 4 次提交
  11. 11 1月, 2013 1 次提交
  12. 10 1月, 2013 1 次提交
  13. 04 1月, 2013 1 次提交
  14. 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
  15. 24 12月, 2012 1 次提交
  16. 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
  17. 15 12月, 2012 1 次提交
  18. 12 12月, 2012 1 次提交
  19. 07 12月, 2012 3 次提交
  20. 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
  21. 29 11月, 2012 10 次提交