Home | History | Annotate | Download | only in sound

Lines Matching refs:card

78 	struct snd_card *card;		/* card which holds this device */
102 char id[16]; /* id string of this card */
107 char components[80]; /* card components delimited with
112 void (*private_free) (struct snd_card *card); /* callback for freeing of
121 struct list_head controls; /* all controls for this card */
125 struct snd_info_entry *proc_id; /* the card id */
128 struct snd_monitor_file *files; /* all files associated to this card */
131 spinlock_t files_lock; /* lock the files for this card */
132 int shutdown; /* this card is going down */
135 struct device *dev; /* device assigned to this card */
153 static inline void snd_power_lock(struct snd_card *card)
155 mutex_lock(&card->power_lock);
158 static inline void snd_power_unlock(struct snd_card *card)
160 mutex_unlock(&card->power_lock);
163 static inline unsigned int snd_power_get_state(struct snd_card *card)
165 return card->power_state;
168 static inline void snd_power_change_state(struct snd_card *card, unsigned int state)
170 card->power_state = state;
171 wake_up(&card->power_sleep);
175 int snd_power_wait(struct snd_card *card, unsigned int power_state);
179 #define snd_power_lock(card) do { (void)(card); } while (0)
180 #define snd_power_unlock(card) do { (void)(card); } while (0)
181 static inline int snd_power_wait(struct snd_card *card, unsigned int state) { return 0; }
182 #define snd_power_get_state(card) SNDRV_CTL_POWER_D0
183 #define snd_power_change_state(card, state) do { (void)(card); } while (0)
189 int card; /* card number */
197 static inline struct device *snd_card_get_device_link(struct snd_card *card)
200 return card ? card->dev : NULL;
202 return card ? card->card_dev : NULL;
212 void snd_request_card(int card);
214 int snd_register_device_for_dev(int type, struct snd_card *card,
222 * snd_register_device - Register the ALSA device file for the card
224 * @card: the card instance
230 * Registers an ALSA device file for the given card.
233 * This function uses the card's device pointer to link to the
238 static inline int snd_register_device(int type, struct snd_card *card, int dev,
243 return snd_register_device_for_dev(type, card, dev, f_ops,
245 snd_card_get_device_link(card));
248 int snd_unregister_device(int type, struct snd_card *card, int dev);
250 int snd_add_device_sysfs_file(int type, struct snd_card *card, int dev,
254 int snd_register_oss_device(int type, struct snd_card *card, int dev,
257 int snd_unregister_oss_device(int type, struct snd_card *card, int dev);
282 int snd_card_locked(int card);
287 extern int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int cmd);
292 int snd_card_disconnect(struct snd_card *card);
293 int snd_card_free(struct snd_card *card);
294 int snd_card_free_when_closed(struct snd_card *card);
295 int snd_card_register(struct snd_card *card);
298 int snd_component_add(struct snd_card *card, const char *component);
299 int snd_card_file_add(struct snd_card *card, struct file *file);
300 int snd_card_file_remove(struct snd_card *card, struct file *file);
303 #define snd_card_set_dev(card,devptr) ((card)->dev = (devptr))
308 int snd_device_new(struct snd_card *card, snd_device_type_t type,
310 int snd_device_register(struct snd_card *card, void *device_data);
311 int snd_device_register_all(struct snd_card *card);
312 int snd_device_disconnect(struct snd_card *card, void *device_data);
313 int snd_device_disconnect_all(struct snd_card *card);
314 int snd_device_free(struct snd_card *card, void *device_data);
315 int snd_device_free_all(struct snd_card *card, snd_device_cmd_t cmd);