Home
last modified time | relevance | path

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

12345678910>>...25

/sound/core/
Dinit.c99 int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag);
107 snd_iprintf(buffer, "%s\n", entry->card->id); in snd_card_id_read()
110 static int init_info_for_card(struct snd_card *card) in init_info_for_card() argument
114 entry = snd_info_create_card_entry(card, "id", card->proc_root); in init_info_for_card()
116 dev_dbg(card->dev, "unable to create card entry\n"); in init_info_for_card()
120 card->proc_id = entry; in init_info_for_card()
122 return snd_info_card_register(card); in init_info_for_card()
125 #define init_info_for_card(card) argument
166 void snd_device_initialize(struct device *dev, struct snd_card *card) in snd_device_initialize() argument
169 if (card) in snd_device_initialize()
[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, enum snd_device_type type, in snd_device_new() argument
50 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new()
56 dev->card = card; in snd_device_new()
63 list_for_each_prev(p, &card->devices) { in snd_device_new()
79 dev_err(dev->card->dev, "device disconnect failure\n"); in __snd_device_disconnect()
92 dev_err(dev->card->dev, "device free failure\n"); in __snd_device_free()
97 static struct snd_device *look_for_dev(struct snd_card *card, void *device_data) in look_for_dev() argument
101 list_for_each_entry(dev, &card->devices, list) in look_for_dev()
121 void snd_device_disconnect(struct snd_card *card, void *device_data) in snd_device_disconnect() argument
125 if (snd_BUG_ON(!card || !device_data)) in snd_device_disconnect()
[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_new(&devptr->dev, 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/soc/
Dsoc-core.c287 if (!component->card->debugfs_card_root) in soc_init_component_debugfs()
297 component->card->debugfs_card_root); in soc_init_component_debugfs()
302 component->card->debugfs_card_root); in soc_init_component_debugfs()
451 static void soc_init_card_debugfs(struct snd_soc_card *card) in soc_init_card_debugfs() argument
456 card->debugfs_card_root = debugfs_create_dir(card->name, in soc_init_card_debugfs()
458 if (!card->debugfs_card_root) { in soc_init_card_debugfs()
459 dev_warn(card->dev, in soc_init_card_debugfs()
464 card->debugfs_pop_time = debugfs_create_u32("dapm_pop_time", 0644, in soc_init_card_debugfs()
465 card->debugfs_card_root, in soc_init_card_debugfs()
466 &card->pop_time); in soc_init_card_debugfs()
[all …]
/sound/arm/
Dpxa2xx-ac97.c88 platform_ops = substream->pcm->card->dev->platform_data; in pxa2xx_ac97_pcm_startup()
99 platform_ops = substream->pcm->card->dev->platform_data; in pxa2xx_ac97_pcm_shutdown()
122 static int pxa2xx_ac97_do_suspend(struct snd_card *card) in pxa2xx_ac97_do_suspend() argument
124 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; in pxa2xx_ac97_do_suspend()
126 snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); in pxa2xx_ac97_do_suspend()
135 static int pxa2xx_ac97_do_resume(struct snd_card *card) in pxa2xx_ac97_do_resume() argument
137 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; in pxa2xx_ac97_do_resume()
147 snd_power_change_state(card, SNDRV_CTL_POWER_D0); in pxa2xx_ac97_do_resume()
154 struct snd_card *card = dev_get_drvdata(dev); in pxa2xx_ac97_suspend() local
157 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()
143 error = snd_es1688_pcm(card, chip, 0); in snd_es1688_probe()
147 error = snd_es1688_mixer(card, chip); in snd_es1688_probe()
151 strlcpy(card->driver, "ES1688", sizeof(card->driver)); in snd_es1688_probe()
152 strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); in snd_es1688_probe()
[all …]
/sound/soc/qcom/
Dstorm.c31 struct snd_soc_card *card = soc_runtime->card; in storm_ops_hw_params() local
39 dev_err(card->dev, "%s() invalid bit width given: %d\n", in storm_ops_hw_params()
53 dev_err(card->dev, "%s() error setting sysclk to %u: %d\n", in storm_ops_hw_params()
72 static int storm_parse_of(struct snd_soc_card *card) in storm_parse_of() argument
74 struct snd_soc_dai_link *dai_link = card->dai_link; in storm_parse_of()
75 struct device_node *np = card->dev->of_node; in storm_parse_of()
79 dev_err(card->dev, "%s() error getting cpu phandle\n", in storm_parse_of()
87 dev_err(card->dev, "%s() error getting codec phandle\n", in storm_parse_of()
97 struct snd_soc_card *card; in storm_platform_probe() local
100 card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); in storm_platform_probe()
[all …]
Dapq8016_sbc.c41 struct snd_soc_card *card = rtd->card; in apq8016_sbc_dai_init() local
42 struct apq8016_sbc_data *pdata = snd_soc_card_get_drvdata(card); in apq8016_sbc_dai_init()
65 dev_err(card->dev, "unsupported cpu dai configuration\n"); in apq8016_sbc_dai_init()
74 static struct apq8016_sbc_data *apq8016_sbc_parse_of(struct snd_soc_card *card) in apq8016_sbc_parse_of() argument
76 struct device *dev = card->dev; in apq8016_sbc_parse_of()
82 ret = snd_soc_of_parse_card_name(card, "qcom,model"); in apq8016_sbc_parse_of()
90 ret = snd_soc_of_parse_audio_routing(card, in apq8016_sbc_parse_of()
106 card->dai_link = &data->dai_link[0]; in apq8016_sbc_parse_of()
107 card->num_links = num_links; in apq8016_sbc_parse_of()
122 dev_err(card->dev, "error getting cpu phandle\n"); in apq8016_sbc_parse_of()
[all …]
/sound/pci/lx6464es/
Dlx6464es.c115 dev_dbg(chip->card->dev, "allocating pipe for %d channels\n", channels); in lx_hardware_open()
118 dev_err(chip->card->dev, LXP "allocating pipe failed\n"); in lx_hardware_open()
124 dev_err(chip->card->dev, "setting granularity to %ld failed\n", in lx_hardware_open()
139 dev_dbg(chip->card->dev, "setting stream format\n"); in lx_hardware_start()
142 dev_err(chip->card->dev, "setting stream format failed\n"); in lx_hardware_start()
146 dev_dbg(chip->card->dev, "starting pipe\n"); in lx_hardware_start()
149 dev_err(chip->card->dev, "starting pipe failed\n"); in lx_hardware_start()
153 dev_dbg(chip->card->dev, "waiting for pipe to start\n"); in lx_hardware_start()
156 dev_err(chip->card->dev, "waiting for pipe failed\n"); in lx_hardware_start()
170 dev_dbg(chip->card->dev, "pausing pipe\n"); in lx_hardware_stop()
[all …]
/sound/pci/
Dcs5530.c63 struct snd_card *card; member
105 static int snd_cs5530_create(struct snd_card *card, in snd_cs5530_create() argument
131 chip->card = card; in snd_cs5530_create()
163 dev_info(card->dev, "XpressAudio at 0x%lx\n", sb_base); in snd_cs5530_create()
165 dev_err(card->dev, "Could not find XpressAudio!\n"); in snd_cs5530_create()
171 dev_info(card->dev, "MPU at 0x300\n"); in snd_cs5530_create()
173 dev_info(card->dev, "MPU at 0x330\n"); in snd_cs5530_create()
185 dev_err(card->dev, "No 16bit DMA enabled\n"); in snd_cs5530_create()
197 dev_err(card->dev, "No 8bit DMA enabled\n"); in snd_cs5530_create()
211 dev_err(card->dev, "SoundBlaster IRQ not set\n"); in snd_cs5530_create()
[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
146 error = snd_card_new(&pcard->card->dev, in snd_card_ad1816a_probe()
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()
158 if ((error = snd_ad1816a_create(card, port[dev], in snd_card_ad1816a_probe()
163 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.c72 struct snd_card *card = NULL; in hiface_chip_create() local
81 sizeof(*chip), &card); in hiface_chip_create()
87 strlcpy(card->driver, DRIVER_NAME, sizeof(card->driver)); in hiface_chip_create()
90 strlcpy(card->shortname, quirk->device_name, sizeof(card->shortname)); in hiface_chip_create()
92 strlcpy(card->shortname, "M2Tech generic audio", sizeof(card->shortname)); in hiface_chip_create()
94 strlcat(card->longname, card->shortname, sizeof(card->longname)); in hiface_chip_create()
95 len = strlcat(card->longname, " at ", sizeof(card->longname)); in hiface_chip_create()
96 if (len < sizeof(card->longname)) in hiface_chip_create()
97 usb_make_path(device, card->longname + len, in hiface_chip_create()
98 sizeof(card->longname) - len); in hiface_chip_create()
[all …]
/sound/soc/tegra/
Dtegra_wm8903.c63 struct snd_soc_card *card = rtd->card; in tegra_wm8903_hw_params() local
64 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_hw_params()
85 dev_err(card->dev, "Can't configure clocks\n"); in tegra_wm8903_hw_params()
92 dev_err(card->dev, "codec_dai clock not set\n"); in tegra_wm8903_hw_params()
132 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_int_spk() local
133 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_int_spk()
148 struct snd_soc_card *card = dapm->card; in tegra_wm8903_event_hp() local
149 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_hp()
174 struct snd_soc_card *card = rtd->card; in tegra_wm8903_init() local
175 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_init()
[all …]
/sound/soc/omap/
Drx51.c61 struct snd_soc_card *card = dapm->card; in rx51_ext_control() local
62 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_ext_control()
107 struct snd_soc_card *card = rtd->card; in rx51_startup() local
110 rx51_ext_control(&card->dapm); in rx51_startup()
142 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in rx51_set_spk() local
148 rx51_ext_control(&card->dapm); in rx51_set_spk()
157 struct snd_soc_card *card = dapm->card; in rx51_spk_event() local
158 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_spk_event()
177 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in rx51_set_input() local
183 rx51_ext_control(&card->dapm); in rx51_set_input()
[all …]
/sound/isa/
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
196 error = snd_card_new(&pcard->card->dev, in snd_card_als100_probe()
198 sizeof(struct snd_card_als100), &card); in snd_card_als100_probe()
201 acard = card->private_data; in snd_card_als100_probe()
204 snd_card_free(card); in snd_card_als100_probe()
211 error = snd_sbdsp_create(card, port[dev], irq[dev], in snd_card_als100_probe()
[all …]
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
187 error = snd_card_new(&pcard->card->dev, in snd_card_azt2320_probe()
189 sizeof(struct snd_card_azt2320), &card); in snd_card_azt2320_probe()
192 acard = card->private_data; in snd_card_azt2320_probe()
195 snd_card_free(card); 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 …]
/sound/pci/au88x0/
Dau88x0.c140 snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip) in snd_vortex_create() argument
155 dev_err(card->dev, "error to set DMA mask\n"); in snd_vortex_create()
166 chip->card = card; in snd_vortex_create()
173 chip->card = card; in snd_vortex_create()
184 dev_err(card->dev, "MMIO area remap failed.\n"); in snd_vortex_create()
193 dev_err(card->dev, "hw core init failed\n"); in snd_vortex_create()
200 dev_err(card->dev, "cannot grab irq\n"); in snd_vortex_create()
209 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { in snd_vortex_create()
238 struct snd_card *card; in snd_vortex_probe() local
251 0, &card); in snd_vortex_probe()
[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)->pcm_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 …]
/sound/pci/ctxfi/
Dxfi.c63 struct snd_card *card; in ct_card_probe() local
75 0, &card); in ct_card_probe()
79 dev_err(card->dev, in ct_card_probe()
82 dev_err(card->dev, in ct_card_probe()
87 dev_err(card->dev, "Invalid multiple value %u!!!\n", in ct_card_probe()
89 dev_err(card->dev, in ct_card_probe()
93 err = ct_atc_create(card, pci, reference_rate, multiple, in ct_card_probe()
98 card->private_data = atc; in ct_card_probe()
105 strcpy(card->driver, "SB-XFi"); in ct_card_probe()
106 strcpy(card->shortname, "Creative X-Fi"); in ct_card_probe()
[all …]
/sound/pci/trident/
Dtrident.c80 struct snd_card *card; in snd_trident_probe() local
93 0, &card); in snd_trident_probe()
97 if ((err = snd_trident_create(card, pci, in snd_trident_probe()
102 snd_card_free(card); in snd_trident_probe()
105 card->private_data = trident; in snd_trident_probe()
120 strcpy(card->driver, str); in snd_trident_probe()
122 strcpy(card->shortname, "SiS "); in snd_trident_probe()
124 strcpy(card->shortname, "Trident "); in snd_trident_probe()
126 strcat(card->shortname, card->driver); in snd_trident_probe()
127 sprintf(card->longname, "%s PCI Audio at 0x%lx, irq %d", in snd_trident_probe()
[all …]
/sound/pci/cs46xx/
Dcs46xx.c80 struct snd_card *card; in snd_card_cs46xx_probe() local
92 0, &card); in snd_card_cs46xx_probe()
95 if ((err = snd_cs46xx_create(card, pci, in snd_card_cs46xx_probe()
98 snd_card_free(card); in snd_card_cs46xx_probe()
101 card->private_data = chip; in snd_card_cs46xx_probe()
104 snd_card_free(card); in snd_card_cs46xx_probe()
109 snd_card_free(card); in snd_card_cs46xx_probe()
113 snd_card_free(card); in snd_card_cs46xx_probe()
118 snd_card_free(card); in snd_card_cs46xx_probe()
124 snd_card_free(card); in snd_card_cs46xx_probe()
[all …]

12345678910>>...25