| /linux/include/sound/ |
| H A D | core.h | 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); [all …]
|
| H A D | control.h | 107 struct snd_card *card; 120 void (*lregister)(struct snd_card *card); 121 void (*ldisconnect)(struct snd_card *card); 122 …void (*lnotify)(struct snd_card *card, unsigned int mask, struct snd_kcontrol *kctl, unsigned int … 127 typedef int (*snd_kctl_ioctl_func_t) (struct snd_card * card, 131 void snd_ctl_notify(struct snd_card * card, unsigned int mask, struct snd_ctl_elem_id * id); 132 void snd_ctl_notify_one(struct snd_card * card, unsigned int mask, struct snd_kcontrol * kctl, unsi… 136 int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol); 137 int snd_ctl_remove(struct snd_card * card, struct snd_kcontrol * kcontrol); 138 int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace); [all …]
|
| H A D | info.h | 117 struct snd_info_entry *snd_info_create_card_entry(struct snd_card *card, 122 int snd_info_card_create(struct snd_card *card); 123 int snd_info_card_register(struct snd_card *card); 124 int snd_info_card_free(struct snd_card *card); 125 void snd_info_card_disconnect(struct snd_card *card); 126 void snd_info_card_id_change(struct snd_card *card); 130 static inline int snd_card_proc_new(struct snd_card *card, const char *name, in snd_card_proc_new() 145 int snd_card_rw_proc_new(struct snd_card *card, const char *name, 166 static inline struct snd_info_entry *snd_info_create_card_entry(struct snd_card *card, const char *… in snd_info_create_card_entry() 169 static inline int snd_info_card_create(struct snd_card *card) { return 0; } in snd_info_card_create() [all …]
|
| H A D | es1688.h | 20 struct snd_card *card; 96 int snd_es1688_create(struct snd_card *card, 104 int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device); 105 int snd_es1688_mixer(struct snd_card *card, struct snd_es1688 *chip);
|
| H A D | mixer_oss.h | 38 struct snd_card *card; 57 struct snd_card *card; 61 int snd_mixer_oss_ioctl_card(struct snd_card *card,
|
| H A D | jack.h | 63 struct snd_card *card; 80 int snd_jack_new(struct snd_card *card, const char *id, int type, 90 static inline int snd_jack_new(struct snd_card *card, const char *id, int type, in snd_jack_new()
|
| /linux/sound/core/ |
| H A D | init.c | 39 static struct snd_card *snd_cards[SNDRV_CARDS]; 85 int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag); 127 int snd_device_alloc(struct device **dev_p, struct snd_card *card) in snd_device_alloc() 145 static int snd_card_init(struct snd_card *card, struct device *parent, 148 static int snd_card_do_free(struct snd_card *card); 173 struct snd_card **card_ret) in snd_card_new() 175 struct snd_card *card; in snd_card_new() 229 struct snd_card **card_ret) in snd_devm_card_new() 231 struct snd_card *card; in snd_devm_card_new() 265 struct snd_card *card; in snd_card_free_on_error() [all …]
|
| H A D | device.c | 29 int snd_device_new(struct snd_card *card, enum snd_device_type type, in snd_device_new() 82 static struct snd_device *look_for_dev(struct snd_card *card, void *device_data) in look_for_dev() 106 void snd_device_disconnect(struct snd_card *card, void *device_data) in snd_device_disconnect() 130 void snd_device_free(struct snd_card *card, void *device_data) in snd_device_free() 171 int snd_device_register(struct snd_card *card, void *device_data) in snd_device_register() 189 int snd_device_register_all(struct snd_card *card) in snd_device_register_all() 208 void snd_device_disconnect_all(struct snd_card *card) in snd_device_disconnect_all() 222 void snd_device_free_all(struct snd_card *card) in snd_device_free_all()
|
| H A D | control.c | 42 static int snd_ctl_remove_locked(struct snd_card *card, 47 struct snd_card *card; in snd_ctl_open() 111 struct snd_card *card; in snd_ctl_release() 149 void snd_ctl_notify(struct snd_card *card, unsigned int mask, in snd_ctl_notify() 200 void snd_ctl_notify_one(struct snd_card *card, unsigned int mask, in snd_ctl_notify_one() 333 static bool snd_ctl_remove_numid_conflict(struct snd_card *card, in snd_ctl_remove_numid_conflict() 352 static int snd_ctl_find_hole(struct snd_card *card, unsigned int count) in snd_ctl_find_hole() 400 static void add_hash_entries(struct snd_card *card, in add_hash_entries() 423 static void remove_hash_entries(struct snd_card *card, in remove_hash_entries() 443 static inline void add_hash_entries(struct snd_card *card, in add_hash_entries() [all …]
|
| H A D | pcm_memory.c | 33 static void __update_allocated_size(struct snd_card *card, ssize_t bytes) in __update_allocated_size() 38 static void update_allocated_size(struct snd_card *card, ssize_t bytes) in update_allocated_size() 44 static void decrease_allocated_size(struct snd_card *card, size_t bytes) in decrease_allocated_size() 51 static int do_alloc_pages(struct snd_card *card, int type, struct device *dev, in do_alloc_pages() 83 static void do_free_pages(struct snd_card *card, struct snd_dma_buffer *dmab) in do_free_pages() 102 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages() 184 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_preallocate_proc_write() 422 struct snd_card *card; in snd_pcm_lib_malloc_pages() 492 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_free_pages()
|
| H A D | control_led.c | 48 struct snd_card *card; 72 static void snd_ctl_led_sysfs_add(struct snd_card *card); 73 static void snd_ctl_led_sysfs_remove(struct snd_card *card); 138 static void snd_ctl_led_set_state(struct snd_card *card, unsigned int access, in snd_ctl_led_set_state() 216 static void snd_ctl_led_notify(struct snd_card *card, unsigned int mask, in snd_ctl_led_notify() 243 DEFINE_FREE(snd_card_unref, struct snd_card *, if (_T) snd_card_unref(_T)) in DEFINE_FREE() argument 248 struct snd_card *card __free(snd_card_unref) = NULL; in DEFINE_FREE() 289 static void snd_ctl_led_clean(struct snd_card *card) in snd_ctl_led_clean() 305 struct snd_card *card __free(snd_card_unref) = NULL; in snd_ctl_led_reset() 332 static void snd_ctl_led_register(struct snd_card *card) in snd_ctl_led_register() [all …]
|
| H A D | control_compat.c | 22 static int snd_ctl_elem_list_compat(struct snd_card *card, in snd_ctl_elem_list_compat() 82 struct snd_card *card = ctl->card; in snd_ctl_elem_info_compat() 168 static int get_ctl_type(struct snd_card *card, struct snd_ctl_elem_id *id, in get_ctl_type() 207 static int copy_ctl_value_from_user(struct snd_card *card, in copy_ctl_value_from_user() 280 static int __ctl_elem_read_user(struct snd_card *card, in __ctl_elem_read_user() 301 static int ctl_elem_read_user(struct snd_card *card, in ctl_elem_read_user() 318 struct snd_card *card = file->card; in __ctl_elem_write_user() 339 struct snd_card *card = file->card; in ctl_elem_write_user() 350 static int snd_ctl_elem_read_user_compat(struct snd_card *card, in snd_ctl_elem_read_user_compat() 363 static int snd_ctl_elem_read_user_x32(struct snd_card *card, in snd_ctl_elem_read_user_x32()
|
| H A D | ctljack.c | 30 static int get_available_index(struct snd_card *card, const char *name) in get_available_index() 63 snd_kctl_jack_new(const char *name, struct snd_card *card) in snd_kctl_jack_new() 77 void snd_kctl_jack_report(struct snd_card *card, in snd_kctl_jack_report()
|
| /linux/sound/pci/cs5535audio/ |
| H A D | cs5535audio.h | 86 struct snd_card *card; 101 void olpc_prequirks(struct snd_card *card, 103 int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97); 124 static inline void olpc_prequirks(struct snd_card *card, in olpc_prequirks() 126 static inline int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) in olpc_quirks()
|
| /linux/drivers/media/pci/solo6x10/ |
| H A D | solo6x10-g723.c | 292 struct snd_card *card = solo_dev->snd_card; in solo_snd_pcm_init() 328 struct snd_card *card; in solo_g723_init() 340 &solo_dev->snd_card); in solo_g723_init() 344 card = solo_dev->snd_card; in solo_g723_init() 385 if (!solo_dev->snd_card) in solo_g723_exit() 391 snd_card_free(solo_dev->snd_card); in solo_g723_exit() 392 solo_dev->snd_card = NULL; in solo_g723_exit()
|
| /linux/sound/hda/controllers/ |
| H A D | cix-ipbloq.c | 104 struct snd_card *card = chip->card; in cix_ipbloq_hda_init() 181 struct snd_card *card, in cix_ipbloq_hda_create() 240 struct snd_card *card; in cix_ipbloq_hda_probe() 314 struct snd_card *card = dev_get_drvdata(&pdev->dev); in cix_ipbloq_hda_remove() 325 struct snd_card *card = dev_get_drvdata(&pdev->dev); in cix_ipbloq_hda_shutdown() 338 struct snd_card *card = dev_get_drvdata(dev); in cix_ipbloq_hda_suspend() 351 struct snd_card *card = dev_get_drvdata(dev); in cix_ipbloq_hda_resume() 364 struct snd_card *card = dev_get_drvdata(dev); in cix_ipbloq_hda_runtime_suspend() 380 struct snd_card *card = dev_get_drvdata(dev); in cix_ipbloq_hda_runtime_resume()
|
| H A D | tegra.c | 134 struct snd_card *card = dev_get_drvdata(dev); in hda_tegra_suspend() 147 struct snd_card *card = dev_get_drvdata(dev); in hda_tegra_resume() 160 struct snd_card *card = dev_get_drvdata(dev); in hda_tegra_runtime_suspend() 179 struct snd_card *card = dev_get_drvdata(dev); in hda_tegra_runtime_resume() 269 struct snd_card *card = chip->card; in hda_tegra_first_init() 410 static int hda_tegra_create(struct snd_card *card, in hda_tegra_create() 515 struct snd_card *card; in hda_tegra_probe() 629 struct snd_card *card = dev_get_drvdata(&pdev->dev); in hda_tegra_shutdown()
|
| /linux/sound/synth/emux/ |
| H A D | emux_voice.h | 18 int snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index); 28 int snd_emux_init_virmidi(struct snd_emux *emu, struct snd_card *card); 73 void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device); 77 struct snd_card *card, int device) {} in snd_emux_proc_init()
|
| /linux/drivers/media/pci/cobalt/ |
| H A D | cobalt-alsa-main.c | 35 static void snd_cobalt_card_private_free(struct snd_card *sc) in snd_cobalt_card_private_free() 45 struct snd_card *sc, in snd_cobalt_card_create() 65 struct snd_card *sc = cobsc->sc; in snd_cobalt_card_set_names() 85 struct snd_card *sc = NULL; in cobalt_alsa_init()
|
| H A D | cobalt-alsa.h | 9 struct snd_card; 13 struct snd_card *sc;
|
| /linux/sound/isa/es1688/ |
| H A D | es1688.c | 78 static int snd_es1688_legacy_create(struct snd_card *card, in snd_es1688_legacy_create() 117 static int snd_es1688_probe(struct snd_card *card, unsigned int n) in snd_es1688_probe() 166 struct snd_card *card; in snd_es1688_isa_probe() 202 static int snd_card_es968_pnp(struct snd_card *card, unsigned int n, in snd_card_es968_pnp() 230 struct snd_card *card; in snd_es968_pnp_detect() 269 struct snd_card *card = pnp_get_card_drvdata(pcard); in snd_es968_pnp_suspend() 277 struct snd_card *card = pnp_get_card_drvdata(pcard); in snd_es968_pnp_resume()
|
| /linux/drivers/media/pci/tw686x/ |
| H A D | tw686x-audio.c | 268 struct snd_card *card = dev->snd_card; in tw686x_snd_pcm_init() 356 if (!dev->snd_card) in tw686x_audio_free() 358 snd_card_free(dev->snd_card); in tw686x_audio_free() 359 dev->snd_card = NULL; in tw686x_audio_free() 365 struct snd_card *card; in tw686x_audio_init() 377 dev->snd_card = card; in tw686x_audio_init() 411 dev->snd_card = NULL; in tw686x_audio_init()
|
| /linux/drivers/media/pci/cx18/ |
| H A D | cx18-alsa-main.c | 67 static void snd_cx18_card_private_free(struct snd_card *sc) in snd_cx18_card_private_free() 77 struct snd_card *sc, in snd_cx18_card_create() 96 struct snd_card *sc = cxsc->sc; in snd_cx18_card_set_names() 116 struct snd_card *sc = NULL; in snd_cx18_init()
|
| /linux/sound/pci/asihpi/ |
| H A D | hpios.h | 136 struct snd_card; 141 struct snd_card *snd_card; member
|
| /linux/drivers/media/pci/ivtv/ |
| H A D | ivtv-alsa-main.c | 64 static void snd_ivtv_card_private_free(struct snd_card *sc) in snd_ivtv_card_private_free() 74 struct snd_card *sc, in snd_ivtv_card_create() 93 struct snd_card *sc = itvsc->sc; in snd_ivtv_card_set_names() 113 struct snd_card *sc = NULL; in snd_ivtv_init()
|