mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Clemens Ladisch](/assets/img/avatar_default.png)
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 */
|