Lines Matching refs:snd_card

69 	struct snd_card *card;		/* card which holds this device */
80 struct snd_card { struct
95 void (*private_free) (struct snd_card *card); /* callback for freeing of argument
150 #define dev_to_snd_card(p) container_of(p, struct snd_card, card_dev) argument
153 static inline unsigned int snd_power_get_state(struct snd_card *card) in snd_power_get_state()
158 static inline void snd_power_change_state(struct snd_card *card, unsigned int state) in snd_power_change_state()
172 static inline void snd_power_ref(struct snd_card *card) in snd_power_ref()
181 static inline void snd_power_unref(struct snd_card *card) in snd_power_unref()
194 static inline void snd_power_sync_ref(struct snd_card *card) in snd_power_sync_ref()
200 int snd_power_wait(struct snd_card *card);
201 int snd_power_ref_and_wait(struct snd_card *card);
205 static inline int snd_power_wait(struct snd_card *card) { return 0; } in snd_power_wait()
206 static inline void snd_power_ref(struct snd_card *card) {} in snd_power_ref()
207 static inline void snd_power_unref(struct snd_card *card) {} in snd_power_unref()
208 static inline int snd_power_ref_and_wait(struct snd_card *card) { return 0; } in snd_power_ref_and_wait()
209 static inline void snd_power_sync_ref(struct snd_card *card) {} in snd_power_sync_ref()
222 struct snd_card *card_ptr; /* assigned card instance */
226 static inline struct device *snd_card_get_device_link(struct snd_card *card) in snd_card_get_device_link()
242 void snd_device_initialize(struct device *dev, struct snd_card *card);
244 int snd_register_device(int type, struct snd_card *card, int dev,
251 int snd_register_oss_device(int type, struct snd_card *card, int dev,
253 int snd_unregister_oss_device(int type, struct snd_card *card, int dev);
279 extern int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int cmd);
284 struct snd_card **card_ret);
287 struct snd_card **card_ret);
289 int snd_card_disconnect(struct snd_card *card);
290 void snd_card_disconnect_sync(struct snd_card *card);
291 int snd_card_free(struct snd_card *card);
292 int snd_card_free_when_closed(struct snd_card *card);
294 void snd_card_set_id(struct snd_card *card, const char *id);
295 int snd_card_register(struct snd_card *card);
297 int snd_card_add_dev_attr(struct snd_card *card,
299 int snd_component_add(struct snd_card *card, const char *component);
300 int snd_card_file_add(struct snd_card *card, struct file *file);
301 int snd_card_file_remove(struct snd_card *card, struct file *file);
303 struct snd_card *snd_card_ref(int card);
312 static inline void snd_card_unref(struct snd_card *card) in snd_card_unref()
321 int snd_device_new(struct snd_card *card, enum snd_device_type type,
323 int snd_device_register(struct snd_card *card, void *device_data);
324 int snd_device_register_all(struct snd_card *card);
325 void snd_device_disconnect(struct snd_card *card, void *device_data);
326 void snd_device_disconnect_all(struct snd_card *card);
327 void snd_device_free(struct snd_card *card, void *device_data);
328 void snd_device_free_all(struct snd_card *card);
329 int snd_device_get_state(struct snd_card *card, void *device_data);