mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 17:26:40 +07:00
06ffc1ebdd
Move the check that parse_audio_format_rates_v2() do after receiving the clock source entity ID directly into the find function and add a validation flag to the function. This patch does not introduce any logic flow change. It is provided to allow introducing automatic clock switching easier later. By moving this uac_clock_source_is_valid callsite, 2 additional callsites can be avoided. Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 lines
339 B
C
12 lines
339 B
C
#ifndef __USBAUDIO_CLOCK_H
|
|
#define __USBAUDIO_CLOCK_H
|
|
|
|
int snd_usb_init_sample_rate(struct snd_usb_audio *chip, int iface,
|
|
struct usb_host_interface *alts,
|
|
struct audioformat *fmt, int rate);
|
|
|
|
int snd_usb_clock_find_source(struct snd_usb_audio *chip, int entity_id,
|
|
bool validate);
|
|
|
|
#endif /* __USBAUDIO_CLOCK_H */
|