mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Takashi Iwai](/assets/img/avatar_default.png)
The audioformat is referred in many places but most of usages are read-only. Let's add const prefix in the possible places. Tested-by: Keith Milner <kamilner@superlative.org> Tested-by: Dylan Robinson <dylan_robinson@motu.com> Link: https://lore.kernel.org/r/20201123085347.19667-28-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 lines
474 B
C
15 lines
474 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __USBAUDIO_CLOCK_H
|
|
#define __USBAUDIO_CLOCK_H
|
|
|
|
int snd_usb_init_sample_rate(struct snd_usb_audio *chip,
|
|
const struct audioformat *fmt, int rate);
|
|
|
|
int snd_usb_clock_find_source(struct snd_usb_audio *chip,
|
|
const struct audioformat *fmt, bool validate);
|
|
|
|
int snd_usb_set_sample_rate_v2v3(struct snd_usb_audio *chip,
|
|
const struct audioformat *fmt,
|
|
int clock, int rate);
|
|
|
|
#endif /* __USBAUDIO_CLOCK_H */
|