mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
9fddc15e80
The code dealing with the implicit feedback mode grew recently, and it's becoming messy. As we receive more and more devices that need the similar handling, it's better to be processed through a table instead of the open code. This patch moves the code that is relevant with parsing the implicit feedback mode and some helpers into another file, implicit.c. The detection and the setup of the implicit feedback sync EPs are rewritten to use the ID/class matching table instead. There should be no functional changes. Tested-by: Keith Milner <kamilner@superlative.org> Tested-by: Dylan Robinson <dylan_robinson@motu.com> Link: https://lore.kernel.org/r/20201123085347.19667-38-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 lines
478 B
C
14 lines
478 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef __USBAUDIO_IMPLICIT_H
|
|
#define __USBAUDIO_IMPLICIT_H
|
|
|
|
int snd_usb_parse_implicit_fb_quirk(struct snd_usb_audio *chip,
|
|
struct audioformat *fmt,
|
|
struct usb_host_interface *alts);
|
|
const struct audioformat *
|
|
snd_usb_find_implicit_fb_sync_format(struct snd_usb_audio *chip,
|
|
const struct audioformat *target,
|
|
const struct snd_pcm_hw_params *params,
|
|
int stream);
|
|
|
|
#endif /* __USBAUDIO_IMPLICIT_H */
|