1. 02 3月, 2010 2 次提交
  2. 23 2月, 2010 3 次提交
    • D
      ALSA: usbaudio: consolidate header files · de48c7bc
      Daniel Mack 提交于
      Use the definitions from linux/usb/audio.h all over the ALSA USB audio
      driver and add some missing definitions there as well.
      
      Use the endpoint attribute macros from linux/usb/ch9 and remove the own
      things from sound/usb/usbaudio.h.
      
      Now things are also nicely prefixed which makes understanding the code
      easier.
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      de48c7bc
    • D
      ALSA: usbaudio: implement basic set of class v2.0 parser · 53ee98fe
      Daniel Mack 提交于
      This adds a number of parsers for audio class v2.0. In particular, the
      following internals are different and now handled by the code:
      
      * the number of streaming interfaces is now reported by an interface
        association descriptor. The old approach using a proprietary
        descriptor is deprecated.
      
      * The number of channels per interface is now stored in the AS_GENERAL
        descriptor (used to be part of the FORMAT_TYPE descriptor).
      
      * The list of supported sample rates is no longer stored in a variable
        length appendix of the format_type descriptor but is retrieved from
        the device using a class specific GET_RANGE command.
      
      * Supported sample formats are now reported as 32bit bitmap rather than
        a fixed value. For now, this is worked around by choosing just one of
        them.
      
      * A devices needs to have at least one CLOCK_SOURCE descriptor which
        denotes a clockID that is needed im the class request command.
      
      * Many descriptors (format_type, ...) have changed their layout. Handle
        this by casting the descriptors to the appropriate structs.
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      53ee98fe
    • D
      ALSA: usbaudio: parse USB descriptors with structs · 28e1b773
      Daniel Mack 提交于
      In preparation of support for v2.0 audio class, use the structs from
      linux/usb/audio.h and add some new ones to describe the fields that are
      actually parsed by the descriptor decoders.
      
      Also, factor out code from usb_create_streams(). This makes it easier to
      adopt the new iteration logic needed for v2.0.
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      28e1b773
  3. 16 2月, 2010 1 次提交
    • S
      ALSA: USB MIDI support for Access Music VirusTI · d39e82db
      Sebastien Alaiwan 提交于
      Here's a patch that adds MIDI support through USB for one of the Access
      Music synths, the VirusTI.
      
      The synth uses standard USBMIDI protocol on its USB interface 3, although
      it does signal "vendor specific" class. A magic string has to be sent on
      interface 3 to enable the sending of MIDI from the synth (this string was
      found by sniffing usb communication of the Windows driver). This is all
      my patch does, and it works on my computer.
      
      Please note that the synth can also do standard usb audio I/O on its
      interfaces 2&3, which already works with the current snd-usb-audio driver,
      except for the audio input from the synth. I'm going to work on it when I
      have some time.
      Signed-off-by: NSebastien Alaiwan <sebastien.alaiwan@gmail.com>
      Signed-off-by: Clemens Ladisch <clemens@ladisch.de> (cosmetics, list terminator)
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      d39e82db
  4. 18 1月, 2010 1 次提交
  5. 28 12月, 2009 5 次提交
  6. 18 12月, 2009 2 次提交
  7. 15 12月, 2009 1 次提交
  8. 24 11月, 2009 1 次提交
  9. 08 9月, 2009 1 次提交
  10. 11 8月, 2009 1 次提交
  11. 10 8月, 2009 1 次提交
  12. 15 7月, 2009 1 次提交
  13. 09 6月, 2009 1 次提交
    • D
      ALSA: usb - Add boot quirk for C-Media 6206 USB Audio · 92a43793
      Dan Allongo 提交于
      Added boot quirk for C-Media CM6206 device in snd_usb_audio_probe.
      The function snd_usb_cm6206_boot_quirk sets up six internal 16-bit
      registers in order to initialize the device. Values for the registers
      came from sniffing USB traffic under Windows since only four of the six
      are documented in the datasheet for CM106 and some reserved bits were
      also being set.
      
      [Minor coding-style fixes by tiwai]
      Signed-off-by: NDan Allongo <gongo2k1@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      92a43793
  14. 27 5月, 2009 1 次提交
  15. 05 5月, 2009 1 次提交
  16. 07 4月, 2009 4 次提交
  17. 02 3月, 2009 2 次提交
  18. 20 2月, 2009 1 次提交
  19. 17 2月, 2009 2 次提交
  20. 06 2月, 2009 1 次提交
  21. 05 2月, 2009 1 次提交
  22. 27 1月, 2009 4 次提交
  23. 12 1月, 2009 1 次提交
  24. 02 1月, 2009 1 次提交
    • J
      ALSA: Use usb_set/get_intfdata · f4e9749f
      Julia Lawall 提交于
      Use the USB functions usb_get_intfdata and usb_set_intfdata instead of
      dev_get_drvdata and dev_set_drvdata, respectively.
      
      The semantic patch that makes this change for the usb_get_intfdata case is
      as follows: (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @header@
      @@
      
      #include <linux/usb.h>
      
      @same depends on header@
      position p;
      @@
      
      usb_get_intfdata@p(...) { ... }
      
      @depends on header@
      position _p!=same.p;
      identifier _f;
      struct usb_interface*intf;
      @@
      
      _f@_p(...) { <+...
      - dev_get_drvdata(&intf->dev)
      + usb_get_intfdata(intf)
      ...+> }
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f4e9749f