Home
last modified time | relevance | path

Searched refs:card (Results 1 – 25 of 450) sorted by relevance

12345678910>>...18

/sound/core/
Dinit.c97 int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag);
105 snd_iprintf(buffer, "%s\n", entry->card->id); in snd_card_id_read()
108 static inline int init_info_for_card(struct snd_card *card) in init_info_for_card() argument
113 if ((err = snd_info_card_register(card)) < 0) { in init_info_for_card()
117 if ((entry = snd_info_create_card_entry(card, "id", card->proc_root)) == NULL) { in init_info_for_card()
126 card->proc_id = entry; in init_info_for_card()
130 #define init_info_for_card(card) argument
153 struct snd_card *card; in snd_card_create() local
162 card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL); in snd_card_create()
163 if (!card) in snd_card_create()
[all …]
Dcontrol.c51 struct snd_card *card; in snd_ctl_open() local
59 card = snd_lookup_minor_data(iminor(inode), SNDRV_DEVICE_TYPE_CONTROL); in snd_ctl_open()
60 if (!card) { in snd_ctl_open()
64 err = snd_card_file_add(card, file); in snd_ctl_open()
69 if (!try_module_get(card->module)) { in snd_ctl_open()
81 ctl->card = card; in snd_ctl_open()
86 write_lock_irqsave(&card->ctl_files_rwlock, flags); in snd_ctl_open()
87 list_add_tail(&ctl->list, &card->ctl_files); in snd_ctl_open()
88 write_unlock_irqrestore(&card->ctl_files_rwlock, flags); in snd_ctl_open()
89 snd_card_unref(card); in snd_ctl_open()
[all …]
Ddevice.c44 int snd_device_new(struct snd_card *card, snd_device_type_t type, in snd_device_new() argument
49 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new()
56 dev->card = card; in snd_device_new()
61 list_add(&dev->list, &card->devices); /* add to the head of list */ in snd_device_new()
79 int snd_device_free(struct snd_card *card, void *device_data) in snd_device_free() argument
83 if (snd_BUG_ON(!card || !device_data)) in snd_device_free()
85 list_for_each_entry(dev, &card->devices, list) { in snd_device_free()
122 int snd_device_disconnect(struct snd_card *card, void *device_data) in snd_device_disconnect() argument
126 if (snd_BUG_ON(!card || !device_data)) in snd_device_disconnect()
128 list_for_each_entry(dev, &card->devices, list) { in snd_device_disconnect()
[all …]
Dsound.c69 void snd_request_card(int card) in snd_request_card() argument
71 if (snd_card_locked(card)) in snd_request_card()
73 if (card < 0 || card >= cards_limit) in snd_request_card()
75 request_module("snd-card-%i", card); in snd_request_card()
138 int card = SNDRV_MINOR_CARD(minor); in autoload_device() local
139 if (snd_cards[card] == NULL) in autoload_device()
140 snd_request_card(card); in autoload_device()
222 static int snd_kernel_minor(int type, struct snd_card *card, int dev) in snd_kernel_minor() argument
232 if (snd_BUG_ON(!card)) in snd_kernel_minor()
234 minor = SNDRV_MINOR(card->number, type); in snd_kernel_minor()
[all …]
/sound/ppc/
Dsnd_ps3.c119 static int snd_ps3_verify_dma_stop(struct snd_ps3_card_info *card, in snd_ps3_verify_dma_stop() argument
161 static void snd_ps3_wait_for_dma_stop(struct snd_ps3_card_info *card) in snd_ps3_wait_for_dma_stop() argument
173 stop_forced = snd_ps3_verify_dma_stop(card, 700, 1); in snd_ps3_wait_for_dma_stop()
190 static void snd_ps3_kick_dma(struct snd_ps3_card_info *card) in snd_ps3_kick_dma() argument
201 static dma_addr_t v_to_bus(struct snd_ps3_card_info *card, void *paddr, int ch) in v_to_bus() argument
203 return card->dma_start_bus_addr[ch] + in v_to_bus()
204 (paddr - card->dma_start_vaddr[ch]); in v_to_bus()
212 static void snd_ps3_bump_buffer(struct snd_ps3_card_info *card, in snd_ps3_bump_buffer() argument
217 card->dma_last_transfer_vaddr[ch] = in snd_ps3_bump_buffer()
218 card->dma_next_transfer_vaddr[ch]; in snd_ps3_bump_buffer()
[all …]
Dpowermac.c56 struct snd_card *card; in snd_pmac_probe() local
61 err = snd_card_create(index, id, THIS_MODULE, 0, &card); in snd_pmac_probe()
65 if ((err = snd_pmac_new(card, &chip)) < 0) in snd_pmac_probe()
67 card->private_data = chip; in snd_pmac_probe()
71 strcpy(card->driver, "PMac Burgundy"); in snd_pmac_probe()
72 strcpy(card->shortname, "PowerMac Burgundy"); in snd_pmac_probe()
73 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
74 card->shortname, chip->device_id, chip->subframe); in snd_pmac_probe()
79 strcpy(card->driver, "PMac DACA"); in snd_pmac_probe()
80 strcpy(card->shortname, "PowerMac DACA"); in snd_pmac_probe()
[all …]
/sound/arm/
Dpxa2xx-ac97.c77 platform_ops = substream->pcm->card->dev->platform_data; in pxa2xx_ac97_pcm_startup()
88 platform_ops = substream->pcm->card->dev->platform_data; in pxa2xx_ac97_pcm_shutdown()
111 static int pxa2xx_ac97_do_suspend(struct snd_card *card) in pxa2xx_ac97_do_suspend() argument
113 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; in pxa2xx_ac97_do_suspend()
115 snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); in pxa2xx_ac97_do_suspend()
124 static int pxa2xx_ac97_do_resume(struct snd_card *card) in pxa2xx_ac97_do_resume() argument
126 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; in pxa2xx_ac97_do_resume()
136 snd_power_change_state(card, SNDRV_CTL_POWER_D0); in pxa2xx_ac97_do_resume()
143 struct snd_card *card = dev_get_drvdata(dev); in pxa2xx_ac97_suspend() local
146 if (card) in pxa2xx_ac97_suspend()
[all …]
/sound/isa/es1688/
Des1688.c98 static int snd_es1688_legacy_create(struct snd_card *card, in snd_es1688_legacy_create() argument
101 struct snd_es1688 *chip = card->private_data; in snd_es1688_legacy_create()
124 return snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_es1688_legacy_create()
130 error = snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_es1688_legacy_create()
137 static int snd_es1688_probe(struct snd_card *card, unsigned int n) in snd_es1688_probe() argument
139 struct snd_es1688 *chip = card->private_data; in snd_es1688_probe()
144 error = snd_es1688_pcm(card, chip, 0, &pcm); in snd_es1688_probe()
148 error = snd_es1688_mixer(card, chip); in snd_es1688_probe()
152 strlcpy(card->driver, "ES1688", sizeof(card->driver)); in snd_es1688_probe()
153 strlcpy(card->shortname, pcm->name, sizeof(card->shortname)); in snd_es1688_probe()
[all …]
/sound/soc/
Dsoc-core.c270 struct dentry *debugfs_card_root = codec->card->debugfs_card_root; in soc_init_codec_debugfs()
302 struct dentry *debugfs_card_root = platform->card->debugfs_card_root; in soc_init_platform_debugfs()
421 static void soc_init_card_debugfs(struct snd_soc_card *card) in soc_init_card_debugfs() argument
423 card->debugfs_card_root = debugfs_create_dir(card->name, in soc_init_card_debugfs()
425 if (!card->debugfs_card_root) { in soc_init_card_debugfs()
426 dev_warn(card->dev, in soc_init_card_debugfs()
431 card->debugfs_pop_time = debugfs_create_u32("dapm_pop_time", 0644, in soc_init_card_debugfs()
432 card->debugfs_card_root, in soc_init_card_debugfs()
433 &card->pop_time); in soc_init_card_debugfs()
434 if (!card->debugfs_pop_time) in soc_init_card_debugfs()
[all …]
/sound/isa/ad1816a/
Dad1816a.c97 static int snd_card_ad1816a_pnp(int dev, struct pnp_card_link *card, in snd_card_ad1816a_pnp() argument
103 pdev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_ad1816a_pnp()
119 pdev = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_card_ad1816a_pnp()
142 struct snd_card *card; in snd_card_ad1816a_probe() local
148 sizeof(struct snd_ad1816a), &card); in snd_card_ad1816a_probe()
151 chip = card->private_data; in snd_card_ad1816a_probe()
154 snd_card_free(card); in snd_card_ad1816a_probe()
157 snd_card_set_dev(card, &pcard->card->dev); in snd_card_ad1816a_probe()
159 if ((error = snd_ad1816a_create(card, port[dev], in snd_card_ad1816a_probe()
164 snd_card_free(card); in snd_card_ad1816a_probe()
[all …]
/sound/isa/
Dazt2320.c103 struct pnp_card_link *card, in snd_card_azt2320_pnp() argument
109 acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_azt2320_pnp()
113 acard->devmpu = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_card_azt2320_pnp()
182 struct snd_card *card; in snd_card_azt2320_probe() local
188 sizeof(struct snd_card_azt2320), &card); in snd_card_azt2320_probe()
191 acard = card->private_data; in snd_card_azt2320_probe()
194 snd_card_free(card); in snd_card_azt2320_probe()
197 snd_card_set_dev(card, &pcard->card->dev); in snd_card_azt2320_probe()
200 snd_card_free(card); in snd_card_azt2320_probe()
204 error = snd_wss_create(card, wss_port[dev], -1, in snd_card_azt2320_probe()
[all …]
Dals100.c121 struct pnp_card_link *card, in snd_card_als100_pnp() argument
127 acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_als100_pnp()
131 acard->devmpu = pnp_request_card_device(card, id->devs[1].id, acard->dev); in snd_card_als100_pnp()
132 acard->devopl = pnp_request_card_device(card, id->devs[2].id, acard->dev); in snd_card_als100_pnp()
192 struct snd_card *card; in snd_card_als100_probe() local
197 sizeof(struct snd_card_als100), &card); in snd_card_als100_probe()
200 acard = card->private_data; in snd_card_als100_probe()
203 snd_card_free(card); in snd_card_als100_probe()
206 snd_card_set_dev(card, &pcard->card->dev); in snd_card_als100_probe()
211 error = snd_sbdsp_create(card, port[dev], irq[dev], in snd_card_als100_probe()
[all …]
Dcmi8330.c169 struct snd_card *card; member
309 static int snd_cmi8330_mixer(struct snd_card *card, struct snd_cmi8330 *acard) in snd_cmi8330_mixer() argument
314 strcpy(card->mixername, (acard->type == CMI8329) ? "CMI8329" : "CMI8330/C3D"); in snd_cmi8330_mixer()
317 err = snd_ctl_add(card, in snd_cmi8330_mixer()
333 struct pnp_card_link *card, in snd_cmi8330_pnp() argument
342 acard->cap = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_cmi8330_pnp()
346 acard->play = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_cmi8330_pnp()
350 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_cmi8330_pnp()
440 static int snd_cmi8330_pcm(struct snd_card *card, struct snd_cmi8330 *chip) in snd_cmi8330_pcm() argument
450 if ((err = snd_pcm_new(card, (chip->type == CMI8329) ? "CMI8329" : "CMI8330", 0, 1, 1, &pcm)) < 0) in snd_cmi8330_pcm()
[all …]
/sound/isa/wavefront/
Dwavefront.c102 snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, in snd_wavefront_pnp() argument
112 acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_wavefront_pnp()
128 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_wavefront_pnp()
135 acard->synth = pnp_request_card_device(card, id->devs[3].id, NULL); in snd_wavefront_pnp()
234 static struct snd_hwdep *snd_wavefront_new_synth(struct snd_card *card, in snd_wavefront_new_synth() argument
248 if (snd_hwdep_new(card, "WaveFront", hw_dev, &wavefront_synth) < 0) in snd_wavefront_new_synth()
259 static struct snd_hwdep *snd_wavefront_new_fx(struct snd_card *card, in snd_wavefront_new_fx() argument
272 if (snd_hwdep_new (card, "YSS225", hw_dev, &fx_processor) < 0) in snd_wavefront_new_fx()
285 static struct snd_rawmidi *snd_wavefront_new_midi(struct snd_card *card, in snd_wavefront_new_midi() argument
304 if (snd_rawmidi_new (card, "WaveFront MIDI", midi_dev, 1, 1, &rmidi) < 0) in snd_wavefront_new_midi()
[all …]
/sound/usb/usx2y/
Dusbusx2y.c170 static void snd_usX2Y_card_private_free(struct snd_card *card);
340 struct snd_card * card; in usX2Y_create_card() local
349 sizeof(struct usX2Ydev), &card); in usX2Y_create_card()
352 snd_usX2Y_card_used[usX2Y(card)->card_index = dev] = 1; in usX2Y_create_card()
353 card->private_free = snd_usX2Y_card_private_free; in usX2Y_create_card()
354 usX2Y(card)->dev = device; in usX2Y_create_card()
355 init_waitqueue_head(&usX2Y(card)->prepare_wait_queue); in usX2Y_create_card()
356 mutex_init(&usX2Y(card)->prepare_mutex); in usX2Y_create_card()
357 INIT_LIST_HEAD(&usX2Y(card)->midi_list); in usX2Y_create_card()
358 strcpy(card->driver, "USB "NAME_ALLCAPS""); in usX2Y_create_card()
[all …]
Dus122l.c52 static int us122l_create_usbmidi(struct snd_card *card) in us122l_create_usbmidi() argument
67 struct usb_device *dev = US122L(card)->dev; in us122l_create_usbmidi()
70 return snd_usbmidi_create(card, iface, in us122l_create_usbmidi()
71 &US122L(card)->midi_list, &quirk); in us122l_create_usbmidi()
74 static int us144_create_usbmidi(struct snd_card *card) in us144_create_usbmidi() argument
89 struct usb_device *dev = US122L(card)->dev; in us144_create_usbmidi()
92 return snd_usbmidi_create(card, iface, in us144_create_usbmidi()
93 &US122L(card)->midi_list, &quirk); in us144_create_usbmidi()
425 snd_power_wait(hw->card, SNDRV_CTL_POWER_D0); in usb_stream_hwdep_ioctl()
455 static int usb_stream_hwdep_new(struct snd_card *card) in usb_stream_hwdep_new() argument
[all …]
/sound/firewire/
Diso-resources.c65 static int current_bandwidth_overhead(struct fw_card *card) in current_bandwidth_overhead() argument
77 return card->gap_count < 63 ? card->gap_count * 97 / 10 + 89 : 512; in current_bandwidth_overhead()
80 static int wait_isoch_resource_delay_after_bus_reset(struct fw_card *card) in wait_isoch_resource_delay_after_bus_reset() argument
83 s64 delay = (card->reset_jiffies + HZ) - get_jiffies_64(); in wait_isoch_resource_delay_after_bus_reset()
109 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_allocate() local
118 spin_lock_irq(&card->lock); in fw_iso_resources_allocate()
119 r->generation = card->generation; in fw_iso_resources_allocate()
120 r->bandwidth_overhead = current_bandwidth_overhead(card); in fw_iso_resources_allocate()
121 spin_unlock_irq(&card->lock); in fw_iso_resources_allocate()
123 err = wait_isoch_resource_delay_after_bus_reset(card); in fw_iso_resources_allocate()
[all …]
/sound/drivers/mpu401/
Dmpu401.c69 struct snd_card *card; in snd_mpu401_create() local
76 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); in snd_mpu401_create()
79 strcpy(card->driver, "MPU-401 UART"); in snd_mpu401_create()
80 strcpy(card->shortname, card->driver); in snd_mpu401_create()
81 sprintf(card->longname, "%s at %#lx, ", card->shortname, port[dev]); in snd_mpu401_create()
83 sprintf(card->longname + strlen(card->longname), "irq %d", irq[dev]); in snd_mpu401_create()
85 strcat(card->longname, "polled"); in snd_mpu401_create()
88 err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, port[dev], 0, in snd_mpu401_create()
95 *rcard = card; in snd_mpu401_create()
99 snd_card_free(card); in snd_mpu401_create()
[all …]
/sound/pci/hda/
Dhda_trace.h20 __field( unsigned int, card )
26 __entry->card = (codec)->bus->card->number;
31 TP_printk("[%d:%d] val=%x", __entry->card, __entry->addr, __entry->val)
51 __field( unsigned int, card )
55 __entry->card = (bus)->card->number;
58 TP_printk("[%d]", __entry->card)
69 __field( unsigned int, card )
74 __entry->card = (codec)->bus->card->number;
78 TP_printk("[%d:%d]", __entry->card, __entry->addr)
95 __field( unsigned int, card )
[all …]
/sound/pci/cs46xx/
Dcs46xx.c80 struct snd_card *card; in snd_card_cs46xx_probe() local
91 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); in snd_card_cs46xx_probe()
94 if ((err = snd_cs46xx_create(card, pci, in snd_card_cs46xx_probe()
97 snd_card_free(card); in snd_card_cs46xx_probe()
100 card->private_data = chip; in snd_card_cs46xx_probe()
103 snd_card_free(card); in snd_card_cs46xx_probe()
108 snd_card_free(card); in snd_card_cs46xx_probe()
112 snd_card_free(card); in snd_card_cs46xx_probe()
117 snd_card_free(card); in snd_card_cs46xx_probe()
123 snd_card_free(card); in snd_card_cs46xx_probe()
[all …]
/sound/pci/trident/
Dtrident.c80 struct snd_card *card; in snd_trident_probe() local
92 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); in snd_trident_probe()
96 if ((err = snd_trident_create(card, pci, in snd_trident_probe()
101 snd_card_free(card); in snd_trident_probe()
104 card->private_data = trident; in snd_trident_probe()
119 strcpy(card->driver, str); in snd_trident_probe()
121 strcpy(card->shortname, "SiS "); in snd_trident_probe()
123 strcpy(card->shortname, "Trident "); in snd_trident_probe()
125 strcat(card->shortname, card->driver); in snd_trident_probe()
126 sprintf(card->longname, "%s PCI Audio at 0x%lx, irq %d", in snd_trident_probe()
[all …]
/sound/isa/cs423x/
Dcs4236.c321 struct pnp_card_link *card, in snd_card_cs423x_pnpc() argument
324 acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_cs423x_pnpc()
327 acard->ctrl = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_card_cs423x_pnpc()
331 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_card_cs423x_pnpc()
360 static void snd_card_cs4236_free(struct snd_card *card) in snd_card_cs4236_free() argument
362 struct snd_card_cs4236 *acard = card->private_data; in snd_card_cs4236_free()
369 struct snd_card *card; in snd_cs423x_card_new() local
373 sizeof(struct snd_card_cs4236), &card); in snd_cs423x_card_new()
376 card->private_free = snd_card_cs4236_free; in snd_cs423x_card_new()
377 *cardp = card; in snd_cs423x_card_new()
[all …]
/sound/soc/tegra/
Dtegra_wm8903.c64 struct snd_soc_card *card = codec->card; in tegra_wm8903_hw_params() local
65 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_hw_params()
86 dev_err(card->dev, "Can't configure clocks\n"); in tegra_wm8903_hw_params()
93 dev_err(card->dev, "codec_dai clock not set\n"); in tegra_wm8903_hw_params()
133 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_int_spk() local
134 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_int_spk()
149 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_hp() local
150 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_hp()
176 struct snd_soc_card *card = codec->card; in tegra_wm8903_init() local
177 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_init()
[all …]
/sound/usb/
Dcard.c179 int err = snd_usbmidi_create(chip->card, iface, in snd_usb_create_stream()
338 struct snd_card *card; in snd_usb_audio_create() local
359 err = snd_card_create(index[idx], id[idx], THIS_MODULE, 0, &card); in snd_usb_audio_create()
367 snd_card_free(card); in snd_usb_audio_create()
375 chip->card = card; in snd_usb_audio_create()
388 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { in snd_usb_audio_create()
390 snd_card_free(card); in snd_usb_audio_create()
394 strcpy(card->driver, "USB-Audio"); in snd_usb_audio_create()
397 snd_component_add(card, component); in snd_usb_audio_create()
401 strlcpy(card->shortname, quirk->product_name, sizeof(card->shortname)); in snd_usb_audio_create()
[all …]
/sound/core/oss/
Dmixer_oss.c43 struct snd_card *card; in snd_mixer_oss_open() local
51 card = snd_lookup_oss_minor_data(iminor(inode), in snd_mixer_oss_open()
53 if (card == NULL) in snd_mixer_oss_open()
55 if (card->mixer_oss == NULL) { in snd_mixer_oss_open()
56 snd_card_unref(card); in snd_mixer_oss_open()
59 err = snd_card_file_add(card, file); in snd_mixer_oss_open()
61 snd_card_unref(card); in snd_mixer_oss_open()
66 snd_card_file_remove(card, file); in snd_mixer_oss_open()
67 snd_card_unref(card); in snd_mixer_oss_open()
70 fmixer->card = card; in snd_mixer_oss_open()
[all …]

12345678910>>...18