mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41: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>
10 lines
292 B
C
10 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 */
|