usbaudio.h (3eb66e91a25497065c5322b1268cbc3953642227) | usbaudio.h (66354f18fe5fbb65f7b10a519654013d6df09f80) |
---|---|
1#ifndef __USBAUDIO_H 2#define __USBAUDIO_H 3/* 4 * (Tentative) USB Audio Driver for ALSA 5 * 6 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> 7 * 8 * --- 16 unchanged lines hidden (view full) --- 25#define USB_ID(vendor, product) (((vendor) << 16) | (product)) 26#define USB_ID_VENDOR(id) ((id) >> 16) 27#define USB_ID_PRODUCT(id) ((u16)(id)) 28 29/* 30 * 31 */ 32 | 1#ifndef __USBAUDIO_H 2#define __USBAUDIO_H 3/* 4 * (Tentative) USB Audio Driver for ALSA 5 * 6 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> 7 * 8 * --- 16 unchanged lines hidden (view full) --- 25#define USB_ID(vendor, product) (((vendor) << 16) | (product)) 26#define USB_ID_VENDOR(id) ((id) >> 16) 27#define USB_ID_PRODUCT(id) ((u16)(id)) 28 29/* 30 * 31 */ 32 |
33struct media_device; 34struct media_intf_devnode; 35 |
|
33struct snd_usb_audio { 34 int index; 35 struct usb_device *dev; 36 struct snd_card *card; 37 struct usb_interface *pm_intf; 38 u32 usb_id; 39 struct mutex mutex; 40 unsigned int autosuspended:1; --- 20 unchanged lines hidden (view full) --- 61 62 int setup; /* from the 'device_setup' module param */ 63 bool autoclock; /* from the 'autoclock' module param */ 64 bool keep_iface; /* keep interface/altset after closing 65 * or parameter change 66 */ 67 68 struct usb_host_interface *ctrl_intf; /* the audio control interface */ | 36struct snd_usb_audio { 37 int index; 38 struct usb_device *dev; 39 struct snd_card *card; 40 struct usb_interface *pm_intf; 41 u32 usb_id; 42 struct mutex mutex; 43 unsigned int autosuspended:1; --- 20 unchanged lines hidden (view full) --- 64 65 int setup; /* from the 'device_setup' module param */ 66 bool autoclock; /* from the 'autoclock' module param */ 67 bool keep_iface; /* keep interface/altset after closing 68 * or parameter change 69 */ 70 71 struct usb_host_interface *ctrl_intf; /* the audio control interface */ |
72 struct media_device *media_dev; 73 struct media_intf_devnode *ctl_intf_media_devnode; |
|
69}; 70 71#define usb_audio_err(chip, fmt, args...) \ 72 dev_err(&(chip)->dev->dev, fmt, ##args) 73#define usb_audio_warn(chip, fmt, args...) \ 74 dev_warn(&(chip)->dev->dev, fmt, ##args) 75#define usb_audio_info(chip, fmt, args...) \ 76 dev_info(&(chip)->dev->dev, fmt, ##args) --- 35 unchanged lines hidden (view full) --- 112}; 113 114struct snd_usb_audio_quirk { 115 const char *vendor_name; 116 const char *product_name; 117 const char *profile_name; /* override the card->longname */ 118 int16_t ifnum; 119 uint16_t type; | 74}; 75 76#define usb_audio_err(chip, fmt, args...) \ 77 dev_err(&(chip)->dev->dev, fmt, ##args) 78#define usb_audio_warn(chip, fmt, args...) \ 79 dev_warn(&(chip)->dev->dev, fmt, ##args) 80#define usb_audio_info(chip, fmt, args...) \ 81 dev_info(&(chip)->dev->dev, fmt, ##args) --- 35 unchanged lines hidden (view full) --- 117}; 118 119struct snd_usb_audio_quirk { 120 const char *vendor_name; 121 const char *product_name; 122 const char *profile_name; /* override the card->longname */ 123 int16_t ifnum; 124 uint16_t type; |
125 bool shares_media_device; |
|
120 const void *data; 121}; 122 123#define combine_word(s) ((*(s)) | ((unsigned int)(s)[1] << 8)) 124#define combine_triple(s) (combine_word(s) | ((unsigned int)(s)[2] << 16)) 125#define combine_quad(s) (combine_triple(s) | ((unsigned int)(s)[3] << 24)) 126 127int snd_usb_lock_shutdown(struct snd_usb_audio *chip); 128void snd_usb_unlock_shutdown(struct snd_usb_audio *chip); 129 130extern bool snd_usb_use_vmalloc; 131 132#endif /* __USBAUDIO_H */ | 126 const void *data; 127}; 128 129#define combine_word(s) ((*(s)) | ((unsigned int)(s)[1] << 8)) 130#define combine_triple(s) (combine_word(s) | ((unsigned int)(s)[2] << 16)) 131#define combine_quad(s) (combine_triple(s) | ((unsigned int)(s)[3] << 24)) 132 133int snd_usb_lock_shutdown(struct snd_usb_audio *chip); 134void snd_usb_unlock_shutdown(struct snd_usb_audio *chip); 135 136extern bool snd_usb_use_vmalloc; 137 138#endif /* __USBAUDIO_H */ |