• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/usb/

Lines Matching refs:alts

109 			 struct usb_host_interface *alts,
117 ep = get_endpoint(alts, 0)->bEndpointAddress;
133 struct usb_host_interface *alts,
141 ep = get_endpoint(alts, 0)->bEndpointAddress;
160 struct usb_host_interface *alts,
163 struct usb_interface_descriptor *altsd = get_iface_desc(alts);
172 return init_pitch_v1(chip, iface, alts, fmt);
175 return init_pitch_v2(chip, iface, alts, fmt);
185 struct usb_host_interface *alts;
195 alts = &iface->altsetting[fmt->altset_idx];
196 altsd = get_iface_desc(alts);
250 if ((get_endpoint(alts, 1)->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != 0x01 ||
251 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
252 get_endpoint(alts, 1)->bSynchAddress != 0)) {
257 ep = get_endpoint(alts, 1)->bEndpointAddress;
258 if (get_endpoint(alts, 0)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
259 (( is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) ||
260 (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) {
270 if (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
271 get_endpoint(alts, 1)->bRefresh >= 1 &&
272 get_endpoint(alts, 1)->bRefresh <= 9)
273 subs->syncinterval = get_endpoint(alts, 1)->bRefresh;
276 else if (get_endpoint(alts, 1)->bInterval >= 1 &&
277 get_endpoint(alts, 1)->bInterval <= 16)
278 subs->syncinterval = get_endpoint(alts, 1)->bInterval - 1;
287 if ((err = snd_usb_init_pitch(subs->stream->chip, subs->interface, alts, fmt)) < 0)
338 struct usb_host_interface *alts;
341 alts = &iface->altsetting[fmt->altset_idx];
342 ret = snd_usb_init_sample_rate(subs->stream->chip, subs->interface, alts, fmt, rate);