Lines Matching refs:snd_card
83 struct snd_card *card; /* card which holds this device */
94 struct snd_card { struct
108 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 void snd_power_lock(struct snd_card *card) in snd_power_lock()
158 static inline void snd_power_unlock(struct snd_card *card) in snd_power_unlock()
163 static inline unsigned int snd_power_get_state(struct snd_card *card) in snd_power_get_state()
168 static inline void snd_power_change_state(struct snd_card *card, unsigned int state) in snd_power_change_state()
175 int snd_power_wait(struct snd_card *card, unsigned int power_state);
181 static inline int snd_power_wait(struct snd_card *card, unsigned int state) { return 0; } in snd_power_wait()
194 struct snd_card *card_ptr; /* assigned card instance */
198 static inline struct device *snd_card_get_device_link(struct snd_card *card) in snd_card_get_device_link()
211 void snd_device_initialize(struct device *dev, struct snd_card *card);
213 int snd_register_device(int type, struct snd_card *card, int dev,
220 int snd_register_oss_device(int type, struct snd_card *card, int dev,
222 int snd_unregister_oss_device(int type, struct snd_card *card, int dev);
246 extern struct snd_card *snd_cards[SNDRV_CARDS];
252 extern int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int cmd);
257 struct snd_card **card_ret);
259 int snd_card_disconnect(struct snd_card *card);
260 int snd_card_free(struct snd_card *card);
261 int snd_card_free_when_closed(struct snd_card *card);
262 void snd_card_set_id(struct snd_card *card, const char *id);
263 int snd_card_register(struct snd_card *card);
266 int snd_card_add_dev_attr(struct snd_card *card,
268 int snd_component_add(struct snd_card *card, const char *component);
269 int snd_card_file_add(struct snd_card *card, struct file *file);
270 int snd_card_file_remove(struct snd_card *card, struct file *file);
277 int snd_device_new(struct snd_card *card, enum snd_device_type type,
279 int snd_device_register(struct snd_card *card, void *device_data);
280 int snd_device_register_all(struct snd_card *card);
281 void snd_device_disconnect(struct snd_card *card, void *device_data);
282 void snd_device_disconnect_all(struct snd_card *card);
283 void snd_device_free(struct snd_card *card, void *device_data);
284 void snd_device_free_all(struct snd_card *card);