aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/clock.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-11-23 09:53:25 +0100
committerTakashi Iwai <tiwai@suse.de>2020-11-23 15:14:18 +0100
commit953a446b50fd6c68f0a40f0cd79a2a903faf3243 (patch)
treeab6a1f042250a84f64b2acc1ff0c53ecb3a5d1da /sound/usb/clock.h
parentALSA: usb-audio: Pass snd_usb_audio object to quirk functions (diff)
downloadlinux-dev-953a446b50fd6c68f0a40f0cd79a2a903faf3243.tar.xz
linux-dev-953a446b50fd6c68f0a40f0cd79a2a903faf3243.zip
ALSA: usb-audio: Simplify snd_usb_init_sample_rate() arguments
A preliminary change for the later big changes. This is a minor code refactoring to drop the unnecessary arguments that can be retrieved in a different way. Tested-by: Keith Milner <kamilner@superlative.org> Tested-by: Dylan Robinson <dylan_robinson@motu.com> Link: https://lore.kernel.org/r/20201123085347.19667-20-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/clock.h')
-rw-r--r--sound/usb/clock.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/usb/clock.h b/sound/usb/clock.h
index 97597f5a3c18..8d406ed294d6 100644
--- a/sound/usb/clock.h
+++ b/sound/usb/clock.h
@@ -2,8 +2,7 @@
#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,
+int snd_usb_init_sample_rate(struct snd_usb_audio *chip,
struct audioformat *fmt, int rate);
int snd_usb_clock_find_source(struct snd_usb_audio *chip,