blob: ed9fc2dc051031aa28b5b5fd04d2723ab488d2a5 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Daniel Mack79f920f2010-05-31 14:51:31 +02002#ifndef __USBAUDIO_CLOCK_H
3#define __USBAUDIO_CLOCK_H
4
Takashi Iwai953a4462020-11-23 09:53:25 +01005int snd_usb_init_sample_rate(struct snd_usb_audio *chip,
Takashi Iwaicab941b2020-11-23 09:53:33 +01006 const struct audioformat *fmt, int rate);
Daniel Mack79f920f2010-05-31 14:51:31 +02007
Alexander Tsoy9f35a312020-02-13 02:54:50 +03008int snd_usb_clock_find_source(struct snd_usb_audio *chip,
Takashi Iwaicab941b2020-11-23 09:53:33 +01009 const struct audioformat *fmt, bool validate);
Daniel Mack79f920f2010-05-31 14:51:31 +020010
Takashi Iwai93db51d2020-11-23 09:53:09 +010011int snd_usb_set_sample_rate_v2v3(struct snd_usb_audio *chip,
12 const struct audioformat *fmt,
13 int clock, int rate);
14
Daniel Mack79f920f2010-05-31 14:51:31 +020015#endif /* __USBAUDIO_CLOCK_H */