Lines Matching refs:snd_card
68 struct snd_card *card; /* card which holds this device */
79 struct snd_card { struct
94 void (*private_free) (struct snd_card *card); /* callback for freeing of argument
133 #define dev_to_snd_card(p) container_of(p, struct snd_card, card_dev) argument
136 static inline unsigned int snd_power_get_state(struct snd_card *card) in snd_power_get_state()
141 static inline void snd_power_change_state(struct snd_card *card, unsigned int state) in snd_power_change_state()
148 int snd_power_wait(struct snd_card *card, unsigned int power_state);
152 static inline int snd_power_wait(struct snd_card *card, unsigned int state) { return 0; } in snd_power_wait()
165 struct snd_card *card_ptr; /* assigned card instance */
169 static inline struct device *snd_card_get_device_link(struct snd_card *card) in snd_card_get_device_link()
182 void snd_device_initialize(struct device *dev, struct snd_card *card);
184 int snd_register_device(int type, struct snd_card *card, int dev,
191 int snd_register_oss_device(int type, struct snd_card *card, int dev,
193 int snd_unregister_oss_device(int type, struct snd_card *card, int dev);
219 extern int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int cmd);
224 struct snd_card **card_ret);
226 int snd_card_disconnect(struct snd_card *card);
227 void snd_card_disconnect_sync(struct snd_card *card);
228 int snd_card_free(struct snd_card *card);
229 int snd_card_free_when_closed(struct snd_card *card);
230 void snd_card_set_id(struct snd_card *card, const char *id);
231 int snd_card_register(struct snd_card *card);
233 int snd_card_add_dev_attr(struct snd_card *card,
235 int snd_component_add(struct snd_card *card, const char *component);
236 int snd_card_file_add(struct snd_card *card, struct file *file);
237 int snd_card_file_remove(struct snd_card *card, struct file *file);
239 struct snd_card *snd_card_ref(int card);
248 static inline void snd_card_unref(struct snd_card *card) in snd_card_unref()
257 int snd_device_new(struct snd_card *card, enum snd_device_type type,
259 int snd_device_register(struct snd_card *card, void *device_data);
260 int snd_device_register_all(struct snd_card *card);
261 void snd_device_disconnect(struct snd_card *card, void *device_data);
262 void snd_device_disconnect_all(struct snd_card *card);
263 void snd_device_free(struct snd_card *card, void *device_data);
264 void snd_device_free_all(struct snd_card *card);