]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: store protocol version in struct audioformat
authorClemens Ladisch <clemens@ladisch.de>
Thu, 31 Jan 2013 20:39:17 +0000 (21:39 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Thu, 27 Jun 2013 19:59:47 +0000 (21:59 +0200)
commita93199d9bd988b164148ce1a3a2a91291578c856
tree6877a827d7541f0a3c779cd298bd65a69c550e06
parent9dd09e6de2d6786a50b589a77aeec22d46f3a4ab
ALSA: usb-audio: store protocol version in struct audioformat

Instead of reading bInterfaceProtocol from the descriptor whenever it's
needed, store this value in the audioformat structure.  Besides
simplifying some code, this will allow us to correctly handle vendor-
specific devices where the descriptors are marked with other values.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/card.h
sound/usb/clock.c
sound/usb/format.c
sound/usb/format.h
sound/usb/pcm.c
sound/usb/stream.c