Home
last modified time | relevance | path

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

12345678910>>...28

/sound/core/
Dinit.c83 int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag);
125 void snd_device_initialize(struct device *dev, struct snd_card *card) in snd_device_initialize() argument
128 if (card) in snd_device_initialize()
129 dev->parent = &card->card_dev; in snd_device_initialize()
135 static int snd_card_do_free(struct snd_card *card);
164 struct snd_card *card; in snd_card_new() local
173 card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL); in snd_card_new()
174 if (!card) in snd_card_new()
177 card->private_data = (char *)card + sizeof(struct snd_card); in snd_card_new()
179 strlcpy(card->id, xid, sizeof(card->id)); in snd_card_new()
[all …]
Dcontrol.c38 struct snd_card *card; in snd_ctl_open() local
46 card = snd_lookup_minor_data(iminor(inode), SNDRV_DEVICE_TYPE_CONTROL); in snd_ctl_open()
47 if (!card) { in snd_ctl_open()
51 err = snd_card_file_add(card, file); in snd_ctl_open()
56 if (!try_module_get(card->module)) { in snd_ctl_open()
68 ctl->card = card; in snd_ctl_open()
73 write_lock_irqsave(&card->ctl_files_rwlock, flags); in snd_ctl_open()
74 list_add_tail(&ctl->list, &card->ctl_files); in snd_ctl_open()
75 write_unlock_irqrestore(&card->ctl_files_rwlock, flags); in snd_ctl_open()
76 snd_card_unref(card); in snd_ctl_open()
[all …]
Ddevice.c29 int snd_device_new(struct snd_card *card, enum snd_device_type type, in snd_device_new() argument
35 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new()
41 dev->card = card; in snd_device_new()
48 list_for_each_prev(p, &card->devices) { in snd_device_new()
64 dev_err(dev->card->dev, "device disconnect failure\n"); in __snd_device_disconnect()
77 dev_err(dev->card->dev, "device free failure\n"); in __snd_device_free()
82 static struct snd_device *look_for_dev(struct snd_card *card, void *device_data) in look_for_dev() argument
86 list_for_each_entry(dev, &card->devices, list) in look_for_dev()
106 void snd_device_disconnect(struct snd_card *card, void *device_data) in snd_device_disconnect() argument
110 if (snd_BUG_ON(!card || !device_data)) in snd_device_disconnect()
[all …]
/sound/soc/
Dsoc-core.c152 if (!component->card->debugfs_card_root) in soc_init_component_debugfs()
162 component->card->debugfs_card_root); in soc_init_component_debugfs()
167 component->card->debugfs_card_root); in soc_init_component_debugfs()
214 static void soc_init_card_debugfs(struct snd_soc_card *card) in soc_init_card_debugfs() argument
216 card->debugfs_card_root = debugfs_create_dir(card->name, in soc_init_card_debugfs()
219 debugfs_create_u32("dapm_pop_time", 0644, card->debugfs_card_root, in soc_init_card_debugfs()
220 &card->pop_time); in soc_init_card_debugfs()
222 snd_soc_dapm_debugfs_init(&card->dapm, card->debugfs_card_root); in soc_init_card_debugfs()
225 static void soc_cleanup_card_debugfs(struct snd_soc_card *card) in soc_cleanup_card_debugfs() argument
227 debugfs_remove_recursive(card->debugfs_card_root); in soc_cleanup_card_debugfs()
[all …]
/sound/ppc/
Dsnd_ps3.c107 static int snd_ps3_verify_dma_stop(struct snd_ps3_card_info *card, in snd_ps3_verify_dma_stop() argument
149 static void snd_ps3_wait_for_dma_stop(struct snd_ps3_card_info *card) in snd_ps3_wait_for_dma_stop() argument
161 stop_forced = snd_ps3_verify_dma_stop(card, 700, 1); in snd_ps3_wait_for_dma_stop()
178 static void snd_ps3_kick_dma(struct snd_ps3_card_info *card) in snd_ps3_kick_dma() argument
189 static dma_addr_t v_to_bus(struct snd_ps3_card_info *card, void *paddr, int ch) in v_to_bus() argument
191 return card->dma_start_bus_addr[ch] + in v_to_bus()
192 (paddr - card->dma_start_vaddr[ch]); in v_to_bus()
200 static void snd_ps3_bump_buffer(struct snd_ps3_card_info *card, in snd_ps3_bump_buffer() argument
205 card->dma_last_transfer_vaddr[ch] = in snd_ps3_bump_buffer()
206 card->dma_next_transfer_vaddr[ch]; in snd_ps3_bump_buffer()
[all …]
Dpowermac.c43 struct snd_card *card; in snd_pmac_probe() local
48 err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); in snd_pmac_probe()
52 if ((err = snd_pmac_new(card, &chip)) < 0) in snd_pmac_probe()
54 card->private_data = chip; in snd_pmac_probe()
58 strcpy(card->driver, "PMac Burgundy"); in snd_pmac_probe()
59 strcpy(card->shortname, "PowerMac Burgundy"); in snd_pmac_probe()
60 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
61 card->shortname, chip->device_id, chip->subframe); in snd_pmac_probe()
66 strcpy(card->driver, "PMac DACA"); in snd_pmac_probe()
67 strcpy(card->shortname, "PowerMac DACA"); in snd_pmac_probe()
[all …]
/sound/soc/meson/
Daxg-card.c14 struct snd_soc_card card; member
52 links = krealloc(priv->card.dai_link, in axg_card_reallocate_links()
53 num_links * sizeof(*priv->card.dai_link), in axg_card_reallocate_links()
60 dev_err(priv->card.dev, "failed to allocate links\n"); in axg_card_reallocate_links()
64 priv->card.dai_link = links; in axg_card_reallocate_links()
66 priv->card.num_links = num_links; in axg_card_reallocate_links()
70 static int axg_card_parse_dai(struct snd_soc_card *card, in axg_card_parse_dai() argument
85 dev_err(card->dev, "can't parse dai %d\n", ret); in axg_card_parse_dai()
93 static int axg_card_set_link_name(struct snd_soc_card *card, in axg_card_set_link_name() argument
98 char *name = devm_kasprintf(card->dev, GFP_KERNEL, "%s.%s", in axg_card_set_link_name()
[all …]
/sound/arm/
Dpxa2xx-ac97.c82 platform_ops = substream->pcm->card->dev->platform_data; in pxa2xx_ac97_pcm_open()
96 platform_ops = substream->pcm->card->dev->platform_data; in pxa2xx_ac97_pcm_close()
119 static int pxa2xx_ac97_do_suspend(struct snd_card *card) in pxa2xx_ac97_do_suspend() argument
121 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; in pxa2xx_ac97_do_suspend()
123 snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); in pxa2xx_ac97_do_suspend()
131 static int pxa2xx_ac97_do_resume(struct snd_card *card) in pxa2xx_ac97_do_resume() argument
133 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; in pxa2xx_ac97_do_resume()
143 snd_power_change_state(card, SNDRV_CTL_POWER_D0); in pxa2xx_ac97_do_resume()
150 struct snd_card *card = dev_get_drvdata(dev); in pxa2xx_ac97_suspend() local
153 if (card) in pxa2xx_ac97_suspend()
[all …]
/sound/isa/es1688/
Des1688.c83 static int snd_es1688_legacy_create(struct snd_card *card, in snd_es1688_legacy_create() argument
86 struct snd_es1688 *chip = card->private_data; in snd_es1688_legacy_create()
109 return snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_es1688_legacy_create()
115 error = snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_es1688_legacy_create()
122 static int snd_es1688_probe(struct snd_card *card, unsigned int n) in snd_es1688_probe() argument
124 struct snd_es1688 *chip = card->private_data; in snd_es1688_probe()
128 error = snd_es1688_pcm(card, chip, 0); in snd_es1688_probe()
132 error = snd_es1688_mixer(card, chip); in snd_es1688_probe()
136 strlcpy(card->driver, "ES1688", sizeof(card->driver)); in snd_es1688_probe()
137 strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); in snd_es1688_probe()
[all …]
/sound/pci/lx6464es/
Dlx6464es.c107 dev_dbg(chip->card->dev, "allocating pipe for %d channels\n", channels); in lx_hardware_open()
110 dev_err(chip->card->dev, LXP "allocating pipe failed\n"); in lx_hardware_open()
116 dev_err(chip->card->dev, "setting granularity to %ld failed\n", in lx_hardware_open()
131 dev_dbg(chip->card->dev, "setting stream format\n"); in lx_hardware_start()
134 dev_err(chip->card->dev, "setting stream format failed\n"); in lx_hardware_start()
138 dev_dbg(chip->card->dev, "starting pipe\n"); in lx_hardware_start()
141 dev_err(chip->card->dev, "starting pipe failed\n"); in lx_hardware_start()
145 dev_dbg(chip->card->dev, "waiting for pipe to start\n"); in lx_hardware_start()
148 dev_err(chip->card->dev, "waiting for pipe failed\n"); in lx_hardware_start()
162 dev_dbg(chip->card->dev, "pausing pipe\n"); in lx_hardware_stop()
[all …]
/sound/pci/
Dcs5530.c54 struct snd_card *card; member
96 static int snd_cs5530_create(struct snd_card *card, in snd_cs5530_create() argument
122 chip->card = card; in snd_cs5530_create()
154 dev_info(card->dev, "XpressAudio at 0x%lx\n", sb_base); in snd_cs5530_create()
156 dev_err(card->dev, "Could not find XpressAudio!\n"); in snd_cs5530_create()
162 dev_info(card->dev, "MPU at 0x300\n"); in snd_cs5530_create()
164 dev_info(card->dev, "MPU at 0x330\n"); in snd_cs5530_create()
176 dev_err(card->dev, "No 16bit DMA enabled\n"); in snd_cs5530_create()
188 dev_err(card->dev, "No 8bit DMA enabled\n"); in snd_cs5530_create()
202 dev_err(card->dev, "SoundBlaster IRQ not set\n"); in snd_cs5530_create()
[all …]
/sound/isa/ad1816a/
Dad1816a.c85 static int snd_card_ad1816a_pnp(int dev, struct pnp_card_link *card, in snd_card_ad1816a_pnp() argument
91 pdev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_ad1816a_pnp()
107 pdev = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_card_ad1816a_pnp()
130 struct snd_card *card; in snd_card_ad1816a_probe() local
134 error = snd_card_new(&pcard->card->dev, in snd_card_ad1816a_probe()
136 sizeof(struct snd_ad1816a), &card); in snd_card_ad1816a_probe()
139 chip = card->private_data; in snd_card_ad1816a_probe()
142 snd_card_free(card); in snd_card_ad1816a_probe()
146 if ((error = snd_ad1816a_create(card, port[dev], in snd_card_ad1816a_probe()
151 snd_card_free(card); in snd_card_ad1816a_probe()
[all …]
/sound/firewire/
Diso-resources.c64 static int current_bandwidth_overhead(struct fw_card *card) in current_bandwidth_overhead() argument
76 return card->gap_count < 63 ? card->gap_count * 97 / 10 + 89 : 512; in current_bandwidth_overhead()
79 static int wait_isoch_resource_delay_after_bus_reset(struct fw_card *card) in wait_isoch_resource_delay_after_bus_reset() argument
82 s64 delay = (card->reset_jiffies + HZ) - get_jiffies_64(); in wait_isoch_resource_delay_after_bus_reset()
108 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_allocate() local
117 spin_lock_irq(&card->lock); in fw_iso_resources_allocate()
118 r->generation = card->generation; in fw_iso_resources_allocate()
119 r->bandwidth_overhead = current_bandwidth_overhead(card); in fw_iso_resources_allocate()
120 spin_unlock_irq(&card->lock); in fw_iso_resources_allocate()
122 err = wait_isoch_resource_delay_after_bus_reset(card); in fw_iso_resources_allocate()
[all …]
/sound/usb/hiface/
Dchip.c68 struct snd_card *card = NULL; in hiface_chip_create() local
77 sizeof(*chip), &card); in hiface_chip_create()
83 strlcpy(card->driver, DRIVER_NAME, sizeof(card->driver)); in hiface_chip_create()
86 strlcpy(card->shortname, quirk->device_name, sizeof(card->shortname)); in hiface_chip_create()
88 strlcpy(card->shortname, "M2Tech generic audio", sizeof(card->shortname)); in hiface_chip_create()
90 strlcat(card->longname, card->shortname, sizeof(card->longname)); in hiface_chip_create()
91 len = strlcat(card->longname, " at ", sizeof(card->longname)); in hiface_chip_create()
92 if (len < sizeof(card->longname)) in hiface_chip_create()
93 usb_make_path(device, card->longname + len, in hiface_chip_create()
94 sizeof(card->longname) - len); in hiface_chip_create()
[all …]
/sound/isa/
Dals100.c109 struct pnp_card_link *card, in snd_card_als100_pnp() argument
115 acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_als100_pnp()
119 acard->devmpu = pnp_request_card_device(card, id->devs[1].id, acard->dev); in snd_card_als100_pnp()
120 acard->devopl = pnp_request_card_device(card, id->devs[2].id, acard->dev); in snd_card_als100_pnp()
180 struct snd_card *card; in snd_card_als100_probe() local
184 error = snd_card_new(&pcard->card->dev, in snd_card_als100_probe()
186 sizeof(struct snd_card_als100), &card); in snd_card_als100_probe()
189 acard = card->private_data; in snd_card_als100_probe()
192 snd_card_free(card); in snd_card_als100_probe()
199 error = snd_sbdsp_create(card, port[dev], irq[dev], in snd_card_als100_probe()
[all …]
Dazt2320.c91 struct pnp_card_link *card, in snd_card_azt2320_pnp() argument
97 acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_azt2320_pnp()
101 acard->devmpu = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_card_azt2320_pnp()
170 struct snd_card *card; in snd_card_azt2320_probe() local
175 error = snd_card_new(&pcard->card->dev, in snd_card_azt2320_probe()
177 sizeof(struct snd_card_azt2320), &card); in snd_card_azt2320_probe()
180 acard = card->private_data; in snd_card_azt2320_probe()
183 snd_card_free(card); in snd_card_azt2320_probe()
188 snd_card_free(card); in snd_card_azt2320_probe()
192 error = snd_wss_create(card, wss_port[dev], -1, in snd_card_azt2320_probe()
[all …]
/sound/isa/wavefront/
Dwavefront.c89 snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, in snd_wavefront_pnp() argument
99 acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_wavefront_pnp()
115 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_wavefront_pnp()
122 acard->synth = pnp_request_card_device(card, id->devs[3].id, NULL); in snd_wavefront_pnp()
221 static struct snd_hwdep *snd_wavefront_new_synth(struct snd_card *card, in snd_wavefront_new_synth() argument
235 if (snd_hwdep_new(card, "WaveFront", hw_dev, &wavefront_synth) < 0) in snd_wavefront_new_synth()
246 static struct snd_hwdep *snd_wavefront_new_fx(struct snd_card *card, in snd_wavefront_new_fx() argument
259 if (snd_hwdep_new (card, "YSS225", hw_dev, &fx_processor) < 0) in snd_wavefront_new_fx()
272 static struct snd_rawmidi *snd_wavefront_new_midi(struct snd_card *card, in snd_wavefront_new_midi() argument
291 if (snd_rawmidi_new (card, "WaveFront MIDI", midi_dev, 1, 1, &rmidi) < 0) in snd_wavefront_new_midi()
[all …]
/sound/pci/au88x0/
Dau88x0.c141 snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip) in snd_vortex_create() argument
156 dev_err(card->dev, "error to set DMA mask\n"); in snd_vortex_create()
167 chip->card = card; in snd_vortex_create()
174 chip->card = card; in snd_vortex_create()
185 dev_err(card->dev, "MMIO area remap failed.\n"); in snd_vortex_create()
194 dev_err(card->dev, "hw core init failed\n"); in snd_vortex_create()
201 dev_err(card->dev, "cannot grab irq\n"); in snd_vortex_create()
210 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { in snd_vortex_create()
239 struct snd_card *card; in snd_vortex_probe() local
252 0, &card); in snd_vortex_probe()
[all …]
/sound/usb/usx2y/
Dusbusx2y.c157 static void snd_usX2Y_card_private_free(struct snd_card *card);
332 struct snd_card * card; in usX2Y_create_card() local
341 sizeof(struct usX2Ydev), &card); in usX2Y_create_card()
344 snd_usX2Y_card_used[usX2Y(card)->card_index = dev] = 1; in usX2Y_create_card()
345 card->private_free = snd_usX2Y_card_private_free; in usX2Y_create_card()
346 usX2Y(card)->dev = device; in usX2Y_create_card()
347 init_waitqueue_head(&usX2Y(card)->prepare_wait_queue); in usX2Y_create_card()
348 mutex_init(&usX2Y(card)->pcm_mutex); in usX2Y_create_card()
349 INIT_LIST_HEAD(&usX2Y(card)->midi_list); in usX2Y_create_card()
350 strcpy(card->driver, "USB "NAME_ALLCAPS""); in usX2Y_create_card()
[all …]
Dus122l.c41 static int us122l_create_usbmidi(struct snd_card *card) in us122l_create_usbmidi() argument
56 struct usb_device *dev = US122L(card)->dev; in us122l_create_usbmidi()
59 return snd_usbmidi_create(card, iface, in us122l_create_usbmidi()
60 &US122L(card)->midi_list, &quirk); in us122l_create_usbmidi()
63 static int us144_create_usbmidi(struct snd_card *card) in us144_create_usbmidi() argument
78 struct usb_device *dev = US122L(card)->dev; in us144_create_usbmidi()
81 return snd_usbmidi_create(card, iface, in us144_create_usbmidi()
82 &US122L(card)->midi_list, &quirk); in us144_create_usbmidi()
408 snd_power_wait(hw->card, SNDRV_CTL_POWER_D0); in usb_stream_hwdep_ioctl()
436 static int usb_stream_hwdep_new(struct snd_card *card) in usb_stream_hwdep_new() argument
[all …]
/sound/soc/qcom/
Dstorm.c23 struct snd_soc_card *card = soc_runtime->card; in storm_ops_hw_params() local
31 dev_err(card->dev, "invalid bit width given: %d\n", bitwidth); in storm_ops_hw_params()
44 dev_err(card->dev, "error setting sysclk to %u: %d\n", in storm_ops_hw_params()
68 static int storm_parse_of(struct snd_soc_card *card) in storm_parse_of() argument
70 struct snd_soc_dai_link *dai_link = card->dai_link; in storm_parse_of()
71 struct device_node *np = card->dev->of_node; in storm_parse_of()
75 dev_err(card->dev, "error getting cpu phandle\n"); in storm_parse_of()
82 dev_err(card->dev, "error getting codec phandle\n"); in storm_parse_of()
91 struct snd_soc_card *card; in storm_platform_probe() local
94 card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); in storm_platform_probe()
[all …]
/sound/soc/tegra/
Dtegra_wm8903.c49 struct snd_soc_card *card = rtd->card; in tegra_wm8903_hw_params() local
50 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_hw_params()
71 dev_err(card->dev, "Can't configure clocks\n"); in tegra_wm8903_hw_params()
78 dev_err(card->dev, "codec_dai clock not set\n"); in tegra_wm8903_hw_params()
118 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_int_spk() local
119 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_int_spk()
134 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_hp() local
135 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_hp()
160 struct snd_soc_card *card = rtd->card; in tegra_wm8903_init() local
161 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_init()
[all …]
/sound/soc/ti/
Drx51.c47 struct snd_soc_card *card = dapm->card; in rx51_ext_control() local
48 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_ext_control()
94 struct snd_soc_card *card = rtd->card; in rx51_startup() local
97 rx51_ext_control(&card->dapm); in rx51_startup()
129 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in rx51_set_spk() local
135 rx51_ext_control(&card->dapm); in rx51_set_spk()
144 struct snd_soc_card *card = dapm->card; in rx51_spk_event() local
145 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_spk_event()
164 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in rx51_set_input() local
170 rx51_ext_control(&card->dapm); in rx51_set_input()
[all …]
/sound/pci/ctxfi/
Dxfi.c60 struct snd_card *card; in ct_card_probe() local
72 0, &card); in ct_card_probe()
76 dev_err(card->dev, in ct_card_probe()
79 dev_err(card->dev, in ct_card_probe()
84 dev_err(card->dev, "Invalid multiple value %u!!!\n", in ct_card_probe()
86 dev_err(card->dev, in ct_card_probe()
90 err = ct_atc_create(card, pci, reference_rate, multiple, in ct_card_probe()
95 card->private_data = atc; in ct_card_probe()
102 strcpy(card->driver, "SB-XFi"); in ct_card_probe()
103 strcpy(card->shortname, "Creative X-Fi"); in ct_card_probe()
[all …]
/sound/soc/sunxi/
Dsun4i-codec.c290 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); in sun4i_codec_trigger()
322 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); in sun4i_codec_prepare_capture()
364 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); in sun4i_codec_prepare_playback()
577 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); in sun4i_codec_hw_params()
618 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); in sun4i_codec_startup()
638 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); in sun4i_codec_shutdown()
1264 struct snd_soc_card *card = snd_soc_dai_get_drvdata(dai); in sun4i_codec_dai_probe() local
1265 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(card); in sun4i_codec_dai_probe()
1328 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(w->dapm->card); in sun4i_codec_spk_event()
1356 struct snd_soc_card *card; in sun4i_codec_create_card() local
[all …]

12345678910>>...28