Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 637) sorted by relevance

12345678910>>...26

/sound/i2c/
Di2c.c35 static int snd_i2c_bit_sendbytes(struct snd_i2c_device *device,
37 static int snd_i2c_bit_readbytes(struct snd_i2c_device *device,
51 struct snd_i2c_device *device; in snd_i2c_bus_free() local
56 device = snd_i2c_device(bus->devices.next); in snd_i2c_bus_free()
57 snd_i2c_device_free(device); in snd_i2c_bus_free()
73 static int snd_i2c_bus_dev_free(struct snd_device *device) in snd_i2c_bus_dev_free() argument
75 struct snd_i2c_bus *bus = device->device_data; in snd_i2c_bus_dev_free()
116 struct snd_i2c_device *device; in snd_i2c_device_create() local
121 device = kzalloc(sizeof(*device), GFP_KERNEL); in snd_i2c_device_create()
122 if (device == NULL) in snd_i2c_device_create()
[all …]
Dcs8427.c60 int snd_cs8427_reg_write(struct snd_i2c_device *device, unsigned char reg, in snd_cs8427_reg_write() argument
68 if ((err = snd_i2c_sendbytes(device, buf, 2)) != 2) { in snd_cs8427_reg_write()
78 static int snd_cs8427_reg_read(struct snd_i2c_device *device, unsigned char reg) in snd_cs8427_reg_read() argument
83 if ((err = snd_i2c_sendbytes(device, &reg, 1)) != 1) { in snd_cs8427_reg_read()
88 if ((err = snd_i2c_readbytes(device, &buf, 1)) != 1) { in snd_cs8427_reg_read()
96 static int snd_cs8427_select_corudata(struct snd_i2c_device *device, int udata) in snd_cs8427_select_corudata() argument
98 struct cs8427 *chip = device->private_data; in snd_cs8427_select_corudata()
105 err = snd_cs8427_reg_write(device, CS8427_REG_CSDATABUF, in snd_cs8427_select_corudata()
113 static int snd_cs8427_send_corudata(struct snd_i2c_device *device, in snd_cs8427_send_corudata() argument
118 struct cs8427 *chip = device->private_data; in snd_cs8427_send_corudata()
[all …]
Dtea6330t.c49 struct snd_i2c_device *device; member
133 if ((err = snd_i2c_sendbytes(tea->device, bytes, count)) < 0) in snd_tea6330t_put_master_volume()
178 if ((err = snd_i2c_sendbytes(tea->device, bytes, 3)) < 0) in snd_tea6330t_put_master_switch()
225 if ((err = snd_i2c_sendbytes(tea->device, bytes, 2)) < 0) in snd_tea6330t_put_bass()
272 if ((err = snd_i2c_sendbytes(tea->device, bytes, 2)) < 0) in snd_tea6330t_put_treble()
285 static void snd_tea6330_free(struct snd_i2c_device *device) in snd_tea6330_free() argument
287 kfree(device->private_data); in snd_tea6330_free()
294 struct snd_i2c_device *device; in snd_tea6330t_update_mixer() local
305 if ((err = snd_i2c_device_create(bus, "TEA6330T", TEA6330T_ADDR, &device)) < 0) { in snd_tea6330t_update_mixer()
309 tea->device = device; in snd_tea6330t_update_mixer()
[all …]
/sound/soc/intel/atom/
Dsst-mfld-platform.h104 int (*open)(struct device *dev,
106 int (*stream_start)(struct device *dev, unsigned int str_id);
107 int (*stream_drop)(struct device *dev, unsigned int str_id);
108 int (*stream_drain)(struct device *dev, unsigned int str_id);
109 int (*stream_partial_drain)(struct device *dev, unsigned int str_id);
110 int (*stream_pause)(struct device *dev, unsigned int str_id);
111 int (*stream_pause_release)(struct device *dev, unsigned int str_id);
113 int (*tstamp)(struct device *dev, unsigned int str_id,
115 int (*ack)(struct device *dev, unsigned int str_id,
117 int (*close)(struct device *dev, unsigned int str_id);
[all …]
/sound/core/
Dhwdep.c41 static int snd_hwdep_dev_free(struct snd_device *device);
42 static int snd_hwdep_dev_register(struct snd_device *device);
43 static int snd_hwdep_dev_disconnect(struct snd_device *device);
46 static struct snd_hwdep *snd_hwdep_search(struct snd_card *card, int device) in snd_hwdep_search() argument
51 if (hwdep->card == card && hwdep->device == device) in snd_hwdep_search()
277 int device; in snd_hwdep_control_ioctl() local
279 if (get_user(device, (int __user *)arg)) in snd_hwdep_control_ioctl()
283 if (device < 0) in snd_hwdep_control_ioctl()
284 device = 0; in snd_hwdep_control_ioctl()
285 else if (device < SNDRV_MINOR_HWDEPS) in snd_hwdep_control_ioctl()
[all …]
Dpcm_trace.h16 __field( unsigned int, device )
28 __entry->device = (substream)->pcm->device;
38 __entry->card, __entry->device,
54 __field( unsigned int, device )
64 __entry->device = (substream)->pcm->device;
73 __entry->card, __entry->device,
87 __field( unsigned int, device )
94 __entry->device = (substream)->pcm->device;
100 __entry->card, __entry->device,
Dcompress_offload.c134 data->stream.device = compr; in snd_compr_open()
305 mutex_lock(&stream->device->lock); in snd_compr_write()
313 mutex_unlock(&stream->device->lock); in snd_compr_write()
339 mutex_unlock(&stream->device->lock); in snd_compr_write()
356 mutex_lock(&stream->device->lock); in snd_compr_read()
390 mutex_unlock(&stream->device->lock); in snd_compr_read()
419 mutex_lock(&stream->device->lock); in snd_compr_poll()
454 mutex_unlock(&stream->device->lock); in snd_compr_poll()
726 mutex_lock(&stream->device->lock); in error_delayed_work()
731 mutex_unlock(&stream->device->lock); in error_delayed_work()
[all …]
Dmemalloc.c83 static void *snd_malloc_dev_pages(struct device *dev, size_t size, dma_addr_t *dma) in snd_malloc_dev_pages()
99 static void snd_free_dev_pages(struct device *dev, size_t size, void *ptr, in snd_free_dev_pages()
120 struct device *dev = dmab->dev.dev; in snd_malloc_dev_iram()
172 int snd_dma_alloc_pages(int type, struct device *device, size_t size, in snd_dma_alloc_pages() argument
181 dmab->dev.dev = device; in snd_dma_alloc_pages()
186 (__force gfp_t)(unsigned long)device); in snd_dma_alloc_pages()
201 dmab->area = snd_malloc_dev_pages(device, size, &dmab->addr); in snd_dma_alloc_pages()
206 snd_malloc_sgbuf_pages(device, size, dmab, NULL); in snd_dma_alloc_pages()
236 int snd_dma_alloc_pages_fallback(int type, struct device *device, size_t size, in snd_dma_alloc_pages_fallback() argument
241 while ((err = snd_dma_alloc_pages(type, device, size, dmab)) < 0) { in snd_dma_alloc_pages_fallback()
Dpcm.c44 static int snd_pcm_dev_free(struct snd_device *device);
45 static int snd_pcm_dev_register(struct snd_device *device);
46 static int snd_pcm_dev_disconnect(struct snd_device *device);
48 static struct snd_pcm *snd_pcm_get(struct snd_card *card, int device) in snd_pcm_get() argument
53 if (pcm->card == card && pcm->device == device) in snd_pcm_get()
59 static int snd_pcm_next(struct snd_card *card, int device) in snd_pcm_next() argument
64 if (pcm->card == card && pcm->device > device) in snd_pcm_next()
65 return pcm->device; in snd_pcm_next()
80 if (pcm->card == newpcm->card && pcm->device == newpcm->device) in snd_pcm_add()
84 pcm->device > newpcm->device)) { in snd_pcm_add()
[all …]
/sound/soc/
Dsoc-devres.c17 static void devm_component_release(struct device *dev, void *res) in devm_component_release()
19 snd_soc_unregister_component(*(struct device **)res); in devm_component_release()
32 int devm_snd_soc_register_component(struct device *dev, in devm_snd_soc_register_component()
36 struct device **ptr; in devm_snd_soc_register_component()
55 static void devm_platform_release(struct device *dev, void *res) in devm_platform_release()
57 snd_soc_unregister_platform(*(struct device **)res); in devm_platform_release()
68 int devm_snd_soc_register_platform(struct device *dev, in devm_snd_soc_register_platform()
71 struct device **ptr; in devm_snd_soc_register_platform()
90 static void devm_card_release(struct device *dev, void *res) in devm_card_release()
103 int devm_snd_soc_register_card(struct device *dev, struct snd_soc_card *card) in devm_snd_soc_register_card()
[all …]
/sound/usb/6fire/
Dfirmware.c162 static int usb6fire_fw_ezusb_write(struct usb_device *device, in usb6fire_fw_ezusb_write() argument
167 ret = usb_control_msg(device, usb_sndctrlpipe(device, 0), type, in usb6fire_fw_ezusb_write()
177 static int usb6fire_fw_ezusb_read(struct usb_device *device, in usb6fire_fw_ezusb_read() argument
180 int ret = usb_control_msg(device, usb_rcvctrlpipe(device, 0), type, in usb6fire_fw_ezusb_read()
190 static int usb6fire_fw_fpga_write(struct usb_device *device, in usb6fire_fw_fpga_write() argument
196 ret = usb_bulk_msg(device, usb_sndbulkpipe(device, FPGA_EP), data, len, in usb6fire_fw_fpga_write()
211 struct usb_device *device = interface_to_usbdev(intf); in usb6fire_fw_ezusb_upload() local
219 ret = request_firmware(&fw, fwname, &device->dev); in usb6fire_fw_ezusb_upload()
236 ret = usb6fire_fw_ezusb_write(device, 0xa0, 0xe600, &data, 1); in usb6fire_fw_ezusb_upload()
247 ret = usb6fire_fw_ezusb_write(device, 0xa0, rec->address, in usb6fire_fw_ezusb_upload()
[all …]
/sound/core/seq/
Dseq_midi.c55 int device; member
168 int device, in snd_seq_midisynth_new() argument
174 msynth->device = device; in snd_seq_midisynth_new()
188 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_subscribe()
230 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_use()
276 snd_seq_midisynth_probe(struct device *_dev) in snd_seq_midisynth_probe()
288 int device = dev->device; in snd_seq_midisynth_probe() local
291 if (snd_BUG_ON(!card || device < 0 || device >= SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
296 info->device = device; in snd_seq_midisynth_probe()
345 if (snd_seq_midisynth_new(ms, card, device, p) < 0) in snd_seq_midisynth_probe()
[all …]
Dseq_device.c58 static int snd_seq_bus_match(struct device *dev, struct device_driver *drv) in snd_seq_bus_match()
78 static int print_dev_info(struct device *dev, void *data) in print_dev_info()
104 static int request_seq_drv(struct device *dev, void *data) in request_seq_drv()
160 static int snd_seq_device_dev_free(struct snd_device *device) in snd_seq_device_dev_free() argument
162 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_free()
169 static int snd_seq_device_dev_register(struct snd_device *device) in snd_seq_device_dev_register() argument
171 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_register()
182 static int snd_seq_device_dev_disconnect(struct snd_device *device) in snd_seq_device_dev_disconnect() argument
184 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_disconnect()
190 static void snd_seq_dev_release(struct device *dev) in snd_seq_dev_release()
[all …]
/sound/drivers/mpu401/
Dmpu401.c67 static int snd_mpu401_create(struct device *devptr, int dev, in snd_mpu401_create()
158 static int snd_mpu401_pnp(int dev, struct pnp_dev *device, in snd_mpu401_pnp() argument
161 if (!pnp_port_valid(device, 0) || in snd_mpu401_pnp()
162 pnp_port_flags(device, 0) & IORESOURCE_DISABLED) { in snd_mpu401_pnp()
166 if (pnp_port_len(device, 0) < IO_EXTENT) { in snd_mpu401_pnp()
168 (unsigned long long)pnp_port_len(device, 0), in snd_mpu401_pnp()
172 port[dev] = pnp_port_start(device, 0); in snd_mpu401_pnp()
174 if (!pnp_irq_valid(device, 0) || in snd_mpu401_pnp()
175 pnp_irq_flags(device, 0) & IORESOURCE_DISABLED) { in snd_mpu401_pnp()
179 irq[dev] = pnp_irq(device, 0); in snd_mpu401_pnp()
[all …]
/sound/soc/atmel/
Datmel-pcm.h88 int atmel_pcm_pdc_platform_register(struct device *dev);
89 void atmel_pcm_pdc_platform_unregister(struct device *dev);
91 static inline int atmel_pcm_pdc_platform_register(struct device *dev) in atmel_pcm_pdc_platform_register()
95 static inline void atmel_pcm_pdc_platform_unregister(struct device *dev) in atmel_pcm_pdc_platform_unregister()
102 int atmel_pcm_dma_platform_register(struct device *dev);
103 void atmel_pcm_dma_platform_unregister(struct device *dev);
105 static inline int atmel_pcm_dma_platform_register(struct device *dev) in atmel_pcm_dma_platform_register()
109 static inline void atmel_pcm_dma_platform_unregister(struct device *dev) in atmel_pcm_dma_platform_unregister()
/sound/usb/caiaq/
Dmidi.c69 struct device *dev = caiaqdev_to_dev(cdev); in snd_usb_caiaq_midi_send()
128 int snd_usb_caiaq_midi_init(struct snd_usb_caiaqdev *device) in snd_usb_caiaq_midi_init() argument
133 ret = snd_rawmidi_new(device->chip.card, device->product_name, 0, in snd_usb_caiaq_midi_init()
134 device->spec.num_midi_out, in snd_usb_caiaq_midi_init()
135 device->spec.num_midi_in, in snd_usb_caiaq_midi_init()
141 strlcpy(rmidi->name, device->product_name, sizeof(rmidi->name)); in snd_usb_caiaq_midi_init()
144 rmidi->private_data = device; in snd_usb_caiaq_midi_init()
146 if (device->spec.num_midi_out > 0) { in snd_usb_caiaq_midi_init()
152 if (device->spec.num_midi_in > 0) { in snd_usb_caiaq_midi_init()
158 device->rmidi = rmidi; in snd_usb_caiaq_midi_init()
/sound/soc/intel/skylake/
Dskl-sst-dsp.h151 int (*alloc_dma_buf)(struct device *dev,
153 int (*free_dma_buf)(struct device *dev,
155 int (*prepare)(struct device *dev, unsigned int format,
158 int (*trigger)(struct device *dev, bool start, int stream_tag);
160 int (*cleanup)(struct device *dev, struct snd_dma_buffer *dmab,
180 struct sst_dsp *skl_dsp_ctx_init(struct device *dev,
203 int skl_sst_dsp_init(struct device *dev, void __iomem *mmio_base, int irq,
206 int bxt_sst_dsp_init(struct device *dev, void __iomem *mmio_base, int irq,
209 int skl_sst_init_fw(struct device *dev, struct skl_sst *ctx);
210 int bxt_sst_init_fw(struct device *dev, struct skl_sst *ctx);
[all …]
Dskl.h104 int (*init)(struct device *dev, void __iomem *mmio_base,
108 int (*init_fw)(struct device *dev, struct skl_sst *ctx);
109 void (*cleanup)(struct device *dev, struct skl_sst *ctx);
112 int skl_platform_unregister(struct device *dev);
113 int skl_platform_register(struct device *dev);
115 struct nhlt_acpi_table *skl_nhlt_init(struct device *dev);
/sound/soc/codecs/
Dadau17x1.h40 void (*switch_mode)(struct device *dev);
57 int adau17x1_probe(struct device *dev, struct regmap *regmap,
58 enum adau17x1_type type, void (*switch_mode)(struct device *dev),
60 void adau17x1_remove(struct device *dev);
63 bool adau17x1_readable_register(struct device *dev, unsigned int reg);
64 bool adau17x1_volatile_register(struct device *dev, unsigned int reg);
65 bool adau17x1_precious_register(struct device *dev, unsigned int reg);
/sound/usb/hiface/
Dchip.c68 struct usb_device *device, int idx, in hiface_chip_create() argument
83 dev_err(&device->dev, "cannot create alsa card.\n"); in hiface_chip_create()
97 usb_make_path(device, card->longname + len, in hiface_chip_create()
101 chip->dev = device; in hiface_chip_create()
115 struct usb_device *device = interface_to_usbdev(intf); in hiface_chip_probe() local
117 ret = usb_set_interface(device, 0, 0); in hiface_chip_probe()
119 dev_err(&device->dev, "can't set first interface for " CARD_NAME " device.\n"); in hiface_chip_probe()
132 dev_err(&device->dev, "no available " CARD_NAME " audio device\n"); in hiface_chip_probe()
137 ret = hiface_chip_create(intf, device, i, quirk, &chip); in hiface_chip_probe()
147 dev_err(&device->dev, "cannot register " CARD_NAME " card\n"); in hiface_chip_probe()
Dpcm.c118 struct usb_device *device = rt->chip->dev; in hiface_pcm_set_rate() local
151 dev_err(&device->dev, "Unsupported rate %d\n", rate); in hiface_pcm_set_rate()
163 ret = usb_control_msg(device, usb_sndctrlpipe(device, 0), in hiface_pcm_set_rate()
168 dev_err(&device->dev, "Error setting samplerate %d.\n", rate); in hiface_pcm_set_rate()
179 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream() local
184 dev_err(device, "Error getting pcm substream slot.\n"); in hiface_pcm_get_substream()
238 struct device *device = &rt->chip->dev->dev; in hiface_pcm_stream_start() local
239 dev_dbg(device, "%s: Stream is running wakeup event\n", in hiface_pcm_stream_start()
264 struct device *device = &urb->chip->dev->dev; in hiface_pcm_playback() local
273 dev_dbg(device, "%s: (1) buffer_size %#x dma_offset %#x\n", __func__, in hiface_pcm_playback()
[all …]
/sound/soc/intel/atom/sst/
Dsst_drv_interface.c143 static int sst_power_control(struct device *dev, bool state) in sst_power_control()
182 static int sst_open_pcm_stream(struct device *dev, in sst_open_pcm_stream()
200 static int sst_cdev_open(struct device *dev, in sst_cdev_open()
229 static int sst_cdev_close(struct device *dev, unsigned int str_id) in sst_cdev_close()
262 static int sst_cdev_ack(struct device *dev, unsigned int str_id, in sst_cdev_ack()
295 static int sst_cdev_set_metadata(struct device *dev, in sst_cdev_set_metadata()
317 static int sst_cdev_stream_pause(struct device *dev, unsigned int str_id) in sst_cdev_stream_pause()
324 static int sst_cdev_stream_pause_release(struct device *dev, in sst_cdev_stream_pause_release()
332 static int sst_cdev_stream_start(struct device *dev, unsigned int str_id) in sst_cdev_stream_start()
345 static int sst_cdev_stream_drop(struct device *dev, unsigned int str_id) in sst_cdev_stream_drop()
[all …]
/sound/pci/emu10k1/
Demu10k1_main.c1343 static int snd_emu10k1_dev_free(struct snd_device *device) in snd_emu10k1_dev_free() argument
1345 struct snd_emu10k1 *emu = device->device_data; in snd_emu10k1_dev_free()
1358 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10241102,
1404 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10211102,
1422 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10011102,
1461 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x20011102,
1471 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x42011102,
1481 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40041102,
1490 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40071102,
1499 {.vendor = 0x1102, .device = 0x0004, .subsystem = 0x40011102,
[all …]
/sound/firewire/fireworks/
Dfireworks_transaction.c105 dev_err(&t.unit->device, "EFW transaction timed out\n"); in snd_efw_transaction_run()
169 struct fw_device *device; in handle_resp_for_user() local
179 device = fw_parent_device(efw->unit); in handle_resp_for_user()
180 if ((device->card != card) || in handle_resp_for_user()
181 (device->generation != generation)) in handle_resp_for_user()
184 if (device->node_id != source) in handle_resp_for_user()
201 struct fw_device *device; in handle_resp_for_kernel() local
207 device = fw_parent_device(t->unit); in handle_resp_for_kernel()
208 if ((device->card != card) || in handle_resp_for_kernel()
209 (device->generation != generation)) in handle_resp_for_kernel()
[all …]
/sound/pci/trident/
Dtrident.c99 ((pci->vendor << 16) | pci->device) == TRIDENT_DEVICE_ID_SI7018 ? 1 : 2, in snd_trident_probe()
107 switch (trident->device) { in snd_trident_probe()
121 if (trident->device == TRIDENT_DEVICE_ID_SI7018) { in snd_trident_probe()
134 switch (trident->device) { in snd_trident_probe()
143 if (trident->device == TRIDENT_DEVICE_ID_NX || trident->device == TRIDENT_DEVICE_ID_SI7018) { in snd_trident_probe()
149 if (trident->device != TRIDENT_DEVICE_ID_SI7018 && in snd_trident_probe()

12345678910>>...26