Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Daniel Mack | 79f920f | 2010-05-31 14:51:31 +0200 | [diff] [blame] | 2 | #ifndef __USBAUDIO_CLOCK_H |
| 3 | #define __USBAUDIO_CLOCK_H |
| 4 | |
Takashi Iwai | 953a446 | 2020-11-23 09:53:25 +0100 | [diff] [blame] | 5 | int snd_usb_init_sample_rate(struct snd_usb_audio *chip, |
Takashi Iwai | cab941b | 2020-11-23 09:53:33 +0100 | [diff] [blame] | 6 | const struct audioformat *fmt, int rate); |
Daniel Mack | 79f920f | 2010-05-31 14:51:31 +0200 | [diff] [blame] | 7 | |
Alexander Tsoy | 9f35a31 | 2020-02-13 02:54:50 +0300 | [diff] [blame] | 8 | int snd_usb_clock_find_source(struct snd_usb_audio *chip, |
Takashi Iwai | cab941b | 2020-11-23 09:53:33 +0100 | [diff] [blame] | 9 | const struct audioformat *fmt, bool validate); |
Daniel Mack | 79f920f | 2010-05-31 14:51:31 +0200 | [diff] [blame] | 10 | |
Takashi Iwai | 93db51d | 2020-11-23 09:53:09 +0100 | [diff] [blame] | 11 | int snd_usb_set_sample_rate_v2v3(struct snd_usb_audio *chip, |
| 12 | const struct audioformat *fmt, |
| 13 | int clock, int rate); |
| 14 | |
Daniel Mack | 79f920f | 2010-05-31 14:51:31 +0200 | [diff] [blame] | 15 | #endif /* __USBAUDIO_CLOCK_H */ |