diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-28 17:25:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-28 17:25:01 -0400 |
commit | 68d99b2c8efcb6ed3807a55569300c53b5f88be5 (patch) | |
tree | f189c8f2132d3668a2f0e503f5c3f8695b26a1c8 /sound/usb/clock.c | |
parent | 0e59e7e7feb5a12938fbf9135147eeda3238c6c4 (diff) | |
parent | 8128c9f21509f9a8b6da94ac432d845dda458406 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (549 commits)
ALSA: hda - Fix ADC input-amp handling for Cx20549 codec
ALSA: hda - Keep EAPD turned on for old Conexant chips
ALSA: hda/realtek - Fix missing volume controls with ALC260
ASoC: wm8940: Properly set codec->dapm.bias_level
ALSA: hda - Fix pin-config for ASUS W90V
ALSA: hda - Fix surround/CLFE headphone and speaker pins order
ALSA: hda - Fix typo
ALSA: Update the sound git tree URL
ALSA: HDA: Add new revision for ALC662
ASoC: max98095: Convert codec->hw_write to snd_soc_write
ASoC: keep pointer to resource so it can be freed
ASoC: sgtl5000: Fix wrong mask in some snd_soc_update_bits calls
ASoC: wm8996: Fix wrong mask for setting WM8996_AIF_CLOCKING_2
ASoC: da7210: Add support for line out and DAC
ASoC: da7210: Add support for DAPM
ALSA: hda/realtek - Fix DAC assignments of multiple speakers
ASoC: Use SGTL5000_LINREG_VDDD_MASK instead of hardcoded mask value
ASoC: Set sgtl5000->ldo in ldo_regulator_register
ASoC: wm8996: Use SND_SOC_DAPM_AIF_OUT for AIF2 Capture
ASoC: wm8994: Use SND_SOC_DAPM_AIF_OUT for AIF3 Capture
...
Diffstat (limited to 'sound/usb/clock.c')
-rw-r--r-- | sound/usb/clock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/usb/clock.c b/sound/usb/clock.c index 075195e8661a..379baad3d5ad 100644 --- a/sound/usb/clock.c +++ b/sound/usb/clock.c | |||
@@ -91,7 +91,7 @@ static int uac_clock_selector_get_val(struct snd_usb_audio *chip, int selector_i | |||
91 | USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, | 91 | USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, |
92 | UAC2_CX_CLOCK_SELECTOR << 8, | 92 | UAC2_CX_CLOCK_SELECTOR << 8, |
93 | snd_usb_ctrl_intf(chip) | (selector_id << 8), | 93 | snd_usb_ctrl_intf(chip) | (selector_id << 8), |
94 | &buf, sizeof(buf), 1000); | 94 | &buf, sizeof(buf)); |
95 | 95 | ||
96 | if (ret < 0) | 96 | if (ret < 0) |
97 | return ret; | 97 | return ret; |
@@ -118,7 +118,7 @@ static bool uac_clock_source_is_valid(struct snd_usb_audio *chip, int source_id) | |||
118 | USB_TYPE_CLASS | USB_RECIP_INTERFACE | USB_DIR_IN, | 118 | USB_TYPE_CLASS | USB_RECIP_INTERFACE | USB_DIR_IN, |
119 | UAC2_CS_CONTROL_CLOCK_VALID << 8, | 119 | UAC2_CS_CONTROL_CLOCK_VALID << 8, |
120 | snd_usb_ctrl_intf(chip) | (source_id << 8), | 120 | snd_usb_ctrl_intf(chip) | (source_id << 8), |
121 | &data, sizeof(data), 1000); | 121 | &data, sizeof(data)); |
122 | 122 | ||
123 | if (err < 0) { | 123 | if (err < 0) { |
124 | snd_printk(KERN_WARNING "%s(): cannot get clock validity for id %d\n", | 124 | snd_printk(KERN_WARNING "%s(): cannot get clock validity for id %d\n", |
@@ -222,7 +222,7 @@ static int set_sample_rate_v1(struct snd_usb_audio *chip, int iface, | |||
222 | if ((err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), UAC_SET_CUR, | 222 | if ((err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), UAC_SET_CUR, |
223 | USB_TYPE_CLASS | USB_RECIP_ENDPOINT | USB_DIR_OUT, | 223 | USB_TYPE_CLASS | USB_RECIP_ENDPOINT | USB_DIR_OUT, |
224 | UAC_EP_CS_ATTR_SAMPLE_RATE << 8, ep, | 224 | UAC_EP_CS_ATTR_SAMPLE_RATE << 8, ep, |
225 | data, sizeof(data), 1000)) < 0) { | 225 | data, sizeof(data))) < 0) { |
226 | snd_printk(KERN_ERR "%d:%d:%d: cannot set freq %d to ep %#x\n", | 226 | snd_printk(KERN_ERR "%d:%d:%d: cannot set freq %d to ep %#x\n", |
227 | dev->devnum, iface, fmt->altsetting, rate, ep); | 227 | dev->devnum, iface, fmt->altsetting, rate, ep); |
228 | return err; | 228 | return err; |
@@ -231,7 +231,7 @@ static int set_sample_rate_v1(struct snd_usb_audio *chip, int iface, | |||
231 | if ((err = snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0), UAC_GET_CUR, | 231 | if ((err = snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0), UAC_GET_CUR, |
232 | USB_TYPE_CLASS | USB_RECIP_ENDPOINT | USB_DIR_IN, | 232 | USB_TYPE_CLASS | USB_RECIP_ENDPOINT | USB_DIR_IN, |
233 | UAC_EP_CS_ATTR_SAMPLE_RATE << 8, ep, | 233 | UAC_EP_CS_ATTR_SAMPLE_RATE << 8, ep, |
234 | data, sizeof(data), 1000)) < 0) { | 234 | data, sizeof(data))) < 0) { |
235 | snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq at ep %#x\n", | 235 | snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq at ep %#x\n", |
236 | dev->devnum, iface, fmt->altsetting, ep); | 236 | dev->devnum, iface, fmt->altsetting, ep); |
237 | return 0; /* some devices don't support reading */ | 237 | return 0; /* some devices don't support reading */ |
@@ -273,7 +273,7 @@ static int set_sample_rate_v2(struct snd_usb_audio *chip, int iface, | |||
273 | USB_TYPE_CLASS | USB_RECIP_INTERFACE | USB_DIR_OUT, | 273 | USB_TYPE_CLASS | USB_RECIP_INTERFACE | USB_DIR_OUT, |
274 | UAC2_CS_CONTROL_SAM_FREQ << 8, | 274 | UAC2_CS_CONTROL_SAM_FREQ << 8, |
275 | snd_usb_ctrl_intf(chip) | (clock << 8), | 275 | snd_usb_ctrl_intf(chip) | (clock << 8), |
276 | data, sizeof(data), 1000)) < 0) { | 276 | data, sizeof(data))) < 0) { |
277 | snd_printk(KERN_ERR "%d:%d:%d: cannot set freq %d (v2)\n", | 277 | snd_printk(KERN_ERR "%d:%d:%d: cannot set freq %d (v2)\n", |
278 | dev->devnum, iface, fmt->altsetting, rate); | 278 | dev->devnum, iface, fmt->altsetting, rate); |
279 | return err; | 279 | return err; |
@@ -283,7 +283,7 @@ static int set_sample_rate_v2(struct snd_usb_audio *chip, int iface, | |||
283 | USB_TYPE_CLASS | USB_RECIP_INTERFACE | USB_DIR_IN, | 283 | USB_TYPE_CLASS | USB_RECIP_INTERFACE | USB_DIR_IN, |
284 | UAC2_CS_CONTROL_SAM_FREQ << 8, | 284 | UAC2_CS_CONTROL_SAM_FREQ << 8, |
285 | snd_usb_ctrl_intf(chip) | (clock << 8), | 285 | snd_usb_ctrl_intf(chip) | (clock << 8), |
286 | data, sizeof(data), 1000)) < 0) { | 286 | data, sizeof(data))) < 0) { |
287 | snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq (v2)\n", | 287 | snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq (v2)\n", |
288 | dev->devnum, iface, fmt->altsetting); | 288 | dev->devnum, iface, fmt->altsetting); |
289 | return err; | 289 | return err; |