#ifndef __USBAUDIO_HELPER_H #define __USBAUDIO_HELPER_H unsigned int snd_usb_combine_bytes(unsigned char *bytes, int size); void *snd_usb_find_desc(void *descstart, int desclen, void *after, u8 dtype); void *snd_usb_find_csint_desc(void *descstart, int desclen, void *after, u8 dsubtype); int snd_usb_ctl_msg(struct usb_device *dev, unsigned int pipe, __u8 request, __u8 requesttype, __u16 value, __u16 index, void *data, __u16 size); unsigned char snd_usb_parse_datainterval(struct snd_usb_audio *chip, struct usb_host_interface *alts); /* * retrieve usb_interface descriptor from the host interface * (conditional for compatibility with the older API) */ #ifndef get_iface_desc #define get_iface_desc(iface) (&(iface)->desc) #define get_endpoint(alt,ep) (&(alt)->endpoint[ep].desc) #define get_ep_desc(ep) (&(ep)->desc) #define get_cfg_desc(cfg) (&(cfg)->desc) #endif #ifndef snd_usb_get_speed #define snd_usb_get_speed(dev) ((dev)->speed) #endif static inline int snd_usb_ctrl_intf(struct snd_usb_audio *chip) { return get_iface_desc(chip->ctrl_intf)->bInterfaceNumber; } #endif /* __USBAUDIO_HELPER_H */ emove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=55601a880690cdeccdb5923c2493f0e3736f8f6b'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/pci/maestro3.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/pci/maestro3.c?id=55601a880690cdeccdb5923c2493f0e3736f8f6b'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/pci/maestro3.c?id=55601a880690cdeccdb5923c2493f0e3736f8f6b'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/pci/maestro3.c?id=55601a880690cdeccdb5923c2493f0e3736f8f6b'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/pci/maestro3.c'> <input type='hidden' name='id' value='55601a880690cdeccdb5923c2493f0e3736f8f6b'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=55601a880690cdeccdb5923c2493f0e3736f8f6b'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?id=55601a880690cdeccdb5923c2493f0e3736f8f6b'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci?id=55601a880690cdeccdb5923c2493f0e3736f8f6b'>pci</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/maestro3.c?id=55601a880690cdeccdb5923c2493f0e3736f8f6b'>maestro3.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/maestro3.c?id=55601a880690cdeccdb5923c2493f0e3736f8f6b&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>