diff options
author | Daniel Mack <daniel@caiaq.de> | 2010-03-04 13:46:17 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-05 02:19:17 -0500 |
commit | 767d75ad1c08c31646498a13837a5c59db90ccad (patch) | |
tree | 2f9196d65f63e7da72904f98a46039946e575401 /sound/usb/endpoint.c | |
parent | 29088fef3e3f62147c1dd53d764da4f04bf3188d (diff) |
ALSA: usb-audio: add support for samplerate setting on v2 devices
Sample rate setting is done with a 4-byte long class request that
addresses the interface.
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/endpoint.c')
-rw-r--r-- | sound/usb/endpoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index d65235c0106a..91850f84cad6 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c | |||
@@ -350,8 +350,8 @@ int snd_usb_parse_audio_endpoints(struct snd_usb_audio *chip, int iface_no) | |||
350 | } | 350 | } |
351 | /* try to set the interface... */ | 351 | /* try to set the interface... */ |
352 | usb_set_interface(chip->dev, iface_no, altno); | 352 | usb_set_interface(chip->dev, iface_no, altno); |
353 | snd_usb_init_pitch(chip->dev, iface_no, alts, fp); | 353 | snd_usb_init_pitch(chip, iface_no, alts, fp); |
354 | snd_usb_init_sample_rate(chip->dev, iface_no, alts, fp, fp->rate_max); | 354 | snd_usb_init_sample_rate(chip, iface_no, alts, fp, fp->rate_max); |
355 | } | 355 | } |
356 | return 0; | 356 | return 0; |
357 | } | 357 | } |