mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 16:07:39 +00:00
8f898e92ae
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>
9 lines
292 B
C
9 lines
292 B
C
#ifndef __USBAUDIO_FORMAT_H
|
|
#define __USBAUDIO_FORMAT_H
|
|
|
|
int snd_usb_parse_audio_format(struct snd_usb_audio *chip,
|
|
struct audioformat *fp, unsigned int format,
|
|
struct uac_format_type_i_continuous_descriptor *fmt,
|
|
int stream);
|
|
|
|
#endif /* __USBAUDIO_FORMAT_H */
|