Home
last modified time | relevance | path

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

12345678910>>...32

/sound/i2c/
Di2c.c21 static int snd_i2c_bit_sendbytes(struct snd_i2c_device *device,
23 static int snd_i2c_bit_readbytes(struct snd_i2c_device *device,
37 struct snd_i2c_device *device; in snd_i2c_bus_free() local
42 device = snd_i2c_device(bus->devices.next); in snd_i2c_bus_free()
43 snd_i2c_device_free(device); in snd_i2c_bus_free()
59 static int snd_i2c_bus_dev_free(struct snd_device *device) in snd_i2c_bus_dev_free() argument
61 struct snd_i2c_bus *bus = device->device_data; in snd_i2c_bus_dev_free()
102 struct snd_i2c_device *device; in snd_i2c_device_create() local
107 device = kzalloc(sizeof(*device), GFP_KERNEL); in snd_i2c_device_create()
108 if (device == NULL) in snd_i2c_device_create()
[all …]
Dcs8427.c45 int snd_cs8427_reg_write(struct snd_i2c_device *device, unsigned char reg, in snd_cs8427_reg_write() argument
53 if ((err = snd_i2c_sendbytes(device, buf, 2)) != 2) { in snd_cs8427_reg_write()
63 static int snd_cs8427_reg_read(struct snd_i2c_device *device, unsigned char reg) in snd_cs8427_reg_read() argument
68 if ((err = snd_i2c_sendbytes(device, &reg, 1)) != 1) { in snd_cs8427_reg_read()
73 if ((err = snd_i2c_readbytes(device, &buf, 1)) != 1) { in snd_cs8427_reg_read()
81 static int snd_cs8427_select_corudata(struct snd_i2c_device *device, int udata) in snd_cs8427_select_corudata() argument
83 struct cs8427 *chip = device->private_data; in snd_cs8427_select_corudata()
90 err = snd_cs8427_reg_write(device, CS8427_REG_CSDATABUF, in snd_cs8427_select_corudata()
98 static int snd_cs8427_send_corudata(struct snd_i2c_device *device, in snd_cs8427_send_corudata() argument
103 struct cs8427 *chip = device->private_data; in snd_cs8427_send_corudata()
[all …]
Dtea6330t.c34 struct snd_i2c_device *device; member
118 if ((err = snd_i2c_sendbytes(tea->device, bytes, count)) < 0) in snd_tea6330t_put_master_volume()
163 if ((err = snd_i2c_sendbytes(tea->device, bytes, 3)) < 0) in snd_tea6330t_put_master_switch()
210 if ((err = snd_i2c_sendbytes(tea->device, bytes, 2)) < 0) in snd_tea6330t_put_bass()
257 if ((err = snd_i2c_sendbytes(tea->device, bytes, 2)) < 0) in snd_tea6330t_put_treble()
270 static void snd_tea6330_free(struct snd_i2c_device *device) in snd_tea6330_free() argument
272 kfree(device->private_data); in snd_tea6330_free()
279 struct snd_i2c_device *device; in snd_tea6330t_update_mixer() local
290 if ((err = snd_i2c_device_create(bus, "TEA6330T", TEA6330T_ADDR, &device)) < 0) { in snd_tea6330t_update_mixer()
294 tea->device = device; in snd_tea6330t_update_mixer()
[all …]
/sound/soc/intel/atom/
Dsst-mfld-platform.h98 int (*open)(struct device *dev,
100 int (*stream_start)(struct device *dev, unsigned int str_id);
101 int (*stream_drop)(struct device *dev, unsigned int str_id);
102 int (*stream_drain)(struct device *dev, unsigned int str_id);
103 int (*stream_partial_drain)(struct device *dev, unsigned int str_id);
104 int (*stream_pause)(struct device *dev, unsigned int str_id);
105 int (*stream_pause_release)(struct device *dev, unsigned int str_id);
107 int (*tstamp)(struct device *dev, unsigned int str_id,
109 int (*ack)(struct device *dev, unsigned int str_id,
111 int (*close)(struct device *dev, unsigned int str_id);
[all …]
/sound/core/
Dhwdep.c27 static int snd_hwdep_dev_free(struct snd_device *device);
28 static int snd_hwdep_dev_register(struct snd_device *device);
29 static int snd_hwdep_dev_disconnect(struct snd_device *device);
32 static struct snd_hwdep *snd_hwdep_search(struct snd_card *card, int device) in snd_hwdep_search() argument
37 if (hwdep->card == card && hwdep->device == device) in snd_hwdep_search()
263 int device; in snd_hwdep_control_ioctl() local
265 if (get_user(device, (int __user *)arg)) in snd_hwdep_control_ioctl()
269 if (device < 0) in snd_hwdep_control_ioctl()
270 device = 0; in snd_hwdep_control_ioctl()
271 else if (device < SNDRV_MINOR_HWDEPS) in snd_hwdep_control_ioctl()
[all …]
Dpcm_trace.h17 __field( unsigned int, device )
29 __entry->device = (substream)->pcm->device;
39 __entry->card, __entry->device,
55 __field( unsigned int, device )
65 __entry->device = (substream)->pcm->device;
74 __entry->card, __entry->device,
88 __field( unsigned int, device )
95 __entry->device = (substream)->pcm->device;
101 __entry->card, __entry->device,
111 __field( unsigned int, device )
[all …]
Dseq_device.c43 static int snd_seq_bus_match(struct device *dev, struct device_driver *drv) in snd_seq_bus_match()
63 static int print_dev_info(struct device *dev, void *data) in print_dev_info()
89 static int request_seq_drv(struct device *dev, void *data) in request_seq_drv()
145 static int snd_seq_device_dev_free(struct snd_device *device) in snd_seq_device_dev_free() argument
147 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_free()
156 static int snd_seq_device_dev_register(struct snd_device *device) in snd_seq_device_dev_register() argument
158 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_register()
169 static int snd_seq_device_dev_disconnect(struct snd_device *device) in snd_seq_device_dev_disconnect() argument
171 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_disconnect()
177 static void snd_seq_dev_release(struct device *dev) in snd_seq_dev_release()
[all …]
Dcompress_offload.c125 data->stream.device = compr; in snd_compr_open()
297 mutex_lock(&stream->device->lock); in snd_compr_write()
305 mutex_unlock(&stream->device->lock); in snd_compr_write()
331 mutex_unlock(&stream->device->lock); in snd_compr_write()
348 mutex_lock(&stream->device->lock); in snd_compr_read()
382 mutex_unlock(&stream->device->lock); in snd_compr_read()
411 mutex_lock(&stream->device->lock); in snd_compr_poll()
446 mutex_unlock(&stream->device->lock); in snd_compr_poll()
512 dev_err(&stream->device->dev, in snd_compr_allocate_buffer()
784 mutex_lock(&stream->device->lock); in error_delayed_work()
[all …]
Dmemalloc.c64 struct device *dev = dmab->dev.dev; in snd_malloc_dev_iram()
117 int snd_dma_alloc_pages(int type, struct device *device, size_t size, in snd_dma_alloc_pages() argument
124 if (WARN_ON(!device)) in snd_dma_alloc_pages()
129 dmab->dev.dev = device; in snd_dma_alloc_pages()
134 (__force gfp_t)(unsigned long)device); in snd_dma_alloc_pages()
157 snd_malloc_sgbuf_pages(device, size, dmab, NULL); in snd_dma_alloc_pages()
188 int snd_dma_alloc_pages_fallback(int type, struct device *device, size_t size, in snd_dma_alloc_pages_fallback() argument
193 while ((err = snd_dma_alloc_pages(type, device, size, dmab)) < 0) { in snd_dma_alloc_pages_fallback()
Dpcm.c34 static int snd_pcm_dev_free(struct snd_device *device);
35 static int snd_pcm_dev_register(struct snd_device *device);
36 static int snd_pcm_dev_disconnect(struct snd_device *device);
38 static struct snd_pcm *snd_pcm_get(struct snd_card *card, int device) in snd_pcm_get() argument
43 if (pcm->card == card && pcm->device == device) in snd_pcm_get()
49 static int snd_pcm_next(struct snd_card *card, int device) in snd_pcm_next() argument
54 if (pcm->card == card && pcm->device > device) in snd_pcm_next()
55 return pcm->device; in snd_pcm_next()
70 if (pcm->card == newpcm->card && pcm->device == newpcm->device) in snd_pcm_add()
74 pcm->device > newpcm->device)) { in snd_pcm_add()
[all …]
/sound/usb/6fire/
Dfirmware.c158 static int usb6fire_fw_ezusb_write(struct usb_device *device, in usb6fire_fw_ezusb_write() argument
163 ret = usb_control_msg(device, usb_sndctrlpipe(device, 0), type, in usb6fire_fw_ezusb_write()
173 static int usb6fire_fw_ezusb_read(struct usb_device *device, in usb6fire_fw_ezusb_read() argument
176 int ret = usb_control_msg(device, usb_rcvctrlpipe(device, 0), type, in usb6fire_fw_ezusb_read()
186 static int usb6fire_fw_fpga_write(struct usb_device *device, in usb6fire_fw_fpga_write() argument
192 ret = usb_bulk_msg(device, usb_sndbulkpipe(device, FPGA_EP), data, len, in usb6fire_fw_fpga_write()
207 struct usb_device *device = interface_to_usbdev(intf); in usb6fire_fw_ezusb_upload() local
215 ret = request_firmware(&fw, fwname, &device->dev); in usb6fire_fw_ezusb_upload()
232 ret = usb6fire_fw_ezusb_write(device, 0xa0, 0xe600, &data, 1); in usb6fire_fw_ezusb_upload()
243 ret = usb6fire_fw_ezusb_write(device, 0xa0, rec->address, in usb6fire_fw_ezusb_upload()
[all …]
/sound/soc/
Dsoc-devres.c12 static void devm_component_release(struct device *dev, void *res) in devm_component_release()
14 snd_soc_unregister_component(*(struct device **)res); in devm_component_release()
27 int devm_snd_soc_register_component(struct device *dev, in devm_snd_soc_register_component()
31 struct device **ptr; in devm_snd_soc_register_component()
50 static void devm_card_release(struct device *dev, void *res) in devm_card_release()
63 int devm_snd_soc_register_card(struct device *dev, struct snd_soc_card *card) in devm_snd_soc_register_card()
86 static void devm_dmaengine_pcm_release(struct device *dev, void *res) in devm_dmaengine_pcm_release()
88 snd_dmaengine_pcm_unregister(*(struct device **)res); in devm_dmaengine_pcm_release()
100 int devm_snd_dmaengine_pcm_register(struct device *dev, in devm_snd_dmaengine_pcm_register()
103 struct device **ptr; in devm_snd_dmaengine_pcm_register()
/sound/core/seq/
Dseq_midi.c41 int device; member
156 int device, in snd_seq_midisynth_new() argument
162 msynth->device = device; in snd_seq_midisynth_new()
176 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_subscribe()
218 if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_use()
264 snd_seq_midisynth_probe(struct device *_dev) in snd_seq_midisynth_probe()
276 int device = dev->device; in snd_seq_midisynth_probe() local
279 if (snd_BUG_ON(!card || device < 0 || device >= SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
284 info->device = device; in snd_seq_midisynth_probe()
333 if (snd_seq_midisynth_new(ms, card, device, p) < 0) in snd_seq_midisynth_probe()
[all …]
/sound/drivers/mpu401/
Dmpu401.c52 static int snd_mpu401_create(struct device *devptr, int dev, in snd_mpu401_create()
143 static int snd_mpu401_pnp(int dev, struct pnp_dev *device, in snd_mpu401_pnp() argument
146 if (!pnp_port_valid(device, 0) || in snd_mpu401_pnp()
147 pnp_port_flags(device, 0) & IORESOURCE_DISABLED) { in snd_mpu401_pnp()
151 if (pnp_port_len(device, 0) < IO_EXTENT) { in snd_mpu401_pnp()
153 (unsigned long long)pnp_port_len(device, 0), in snd_mpu401_pnp()
157 port[dev] = pnp_port_start(device, 0); in snd_mpu401_pnp()
159 if (!pnp_irq_valid(device, 0) || in snd_mpu401_pnp()
160 pnp_irq_flags(device, 0) & IORESOURCE_DISABLED) { in snd_mpu401_pnp()
164 irq[dev] = pnp_irq(device, 0); in snd_mpu401_pnp()
[all …]
/sound/usb/caiaq/
Dmidi.c56 struct device *dev = caiaqdev_to_dev(cdev); in snd_usb_caiaq_midi_send()
115 int snd_usb_caiaq_midi_init(struct snd_usb_caiaqdev *device) in snd_usb_caiaq_midi_init() argument
120 ret = snd_rawmidi_new(device->chip.card, device->product_name, 0, in snd_usb_caiaq_midi_init()
121 device->spec.num_midi_out, in snd_usb_caiaq_midi_init()
122 device->spec.num_midi_in, in snd_usb_caiaq_midi_init()
128 strlcpy(rmidi->name, device->product_name, sizeof(rmidi->name)); in snd_usb_caiaq_midi_init()
131 rmidi->private_data = device; in snd_usb_caiaq_midi_init()
133 if (device->spec.num_midi_out > 0) { in snd_usb_caiaq_midi_init()
139 if (device->spec.num_midi_in > 0) { in snd_usb_caiaq_midi_init()
145 device->rmidi = rmidi; in snd_usb_caiaq_midi_init()
/sound/soc/intel/skylake/
Dskl-sst-dsp.h158 int (*alloc_dma_buf)(struct device *dev,
160 int (*free_dma_buf)(struct device *dev,
162 int (*prepare)(struct device *dev, unsigned int format,
165 int (*trigger)(struct device *dev, bool start, int stream_tag);
167 int (*cleanup)(struct device *dev, struct snd_dma_buffer *dmab,
201 struct sst_dsp *skl_dsp_ctx_init(struct device *dev,
225 int skl_sst_dsp_init(struct device *dev, void __iomem *mmio_base, int irq,
228 int bxt_sst_dsp_init(struct device *dev, void __iomem *mmio_base, int irq,
231 int skl_sst_init_fw(struct device *dev, struct skl_dev *skl);
232 int bxt_sst_init_fw(struct device *dev, struct skl_dev *skl);
[all …]
Dskl.h90 struct device *dev;
106 void (*enable_miscbdcge)(struct device *dev, bool enable);
127 void (*update_d0i3c)(struct device *dev, bool enable);
134 void (*clock_power_gating)(struct device *dev, bool enable);
157 int (*init)(struct device *dev, void __iomem *mmio_base,
161 int (*init_fw)(struct device *dev, struct skl_dev *skl);
162 void (*cleanup)(struct device *dev, struct skl_dev *skl);
165 int skl_platform_unregister(struct device *dev);
166 int skl_platform_register(struct device *dev);
180 void skl_update_d0i3c(struct device *dev, bool enable);
/sound/soc/codecs/
Dadau17x1.h41 void (*switch_mode)(struct device *dev);
58 int adau17x1_probe(struct device *dev, struct regmap *regmap,
59 enum adau17x1_type type, void (*switch_mode)(struct device *dev),
61 void adau17x1_remove(struct device *dev);
64 bool adau17x1_readable_register(struct device *dev, unsigned int reg);
65 bool adau17x1_volatile_register(struct device *dev, unsigned int reg);
66 bool adau17x1_precious_register(struct device *dev, unsigned int reg);
/sound/usb/hiface/
Dchip.c64 struct usb_device *device, int idx, in hiface_chip_create() argument
79 dev_err(&device->dev, "cannot create alsa card.\n"); in hiface_chip_create()
93 usb_make_path(device, card->longname + len, in hiface_chip_create()
97 chip->dev = device; in hiface_chip_create()
111 struct usb_device *device = interface_to_usbdev(intf); in hiface_chip_probe() local
113 ret = usb_set_interface(device, 0, 0); in hiface_chip_probe()
115 dev_err(&device->dev, "can't set first interface for " CARD_NAME " device.\n"); in hiface_chip_probe()
128 dev_err(&device->dev, "no available " CARD_NAME " audio device\n"); in hiface_chip_probe()
133 ret = hiface_chip_create(intf, device, i, quirk, &chip); in hiface_chip_probe()
143 dev_err(&device->dev, "cannot register " CARD_NAME " card\n"); in hiface_chip_probe()
/sound/soc/intel/atom/sst/
Dsst_drv_interface.c135 static int sst_power_control(struct device *dev, bool state) in sst_power_control()
174 static int sst_open_pcm_stream(struct device *dev, in sst_open_pcm_stream()
192 static int sst_cdev_open(struct device *dev, in sst_cdev_open()
221 static int sst_cdev_close(struct device *dev, unsigned int str_id) in sst_cdev_close()
244 static int sst_cdev_ack(struct device *dev, unsigned int str_id, in sst_cdev_ack()
275 static int sst_cdev_set_metadata(struct device *dev, in sst_cdev_set_metadata()
297 static int sst_cdev_stream_pause(struct device *dev, unsigned int str_id) in sst_cdev_stream_pause()
304 static int sst_cdev_stream_pause_release(struct device *dev, in sst_cdev_stream_pause_release()
312 static int sst_cdev_stream_start(struct device *dev, unsigned int str_id) in sst_cdev_stream_start()
325 static int sst_cdev_stream_drop(struct device *dev, unsigned int str_id) in sst_cdev_stream_drop()
[all …]
/sound/firewire/
Dlib.c37 struct fw_device *device = fw_parent_device(unit); in snd_fw_transaction() local
43 generation = device->generation; in snd_fw_transaction()
46 rcode = fw_run_transaction(device->card, tcode, in snd_fw_transaction()
47 device->node_id, generation, in snd_fw_transaction()
48 device->max_speed, offset, in snd_fw_transaction()
59 dev_err(&unit->device, in snd_fw_transaction()
/sound/soc/mediatek/
DKconfig12 Select Y if you have such device.
23 Select Y if you have such device.
33 Select Y if you have such device.
43 Select Y if you have such device.
53 Select Y if you have such device.
63 Select Y if you have such device.
73 Select Y if you have such device.
84 Select Y if you have such device.
95 Select Y if you have such device.
107 Select Y if you have such device.
[all …]
/sound/pci/emu10k1/
Demu10k1_main.c1280 static int snd_emu10k1_dev_free(struct snd_device *device) in snd_emu10k1_dev_free() argument
1282 struct snd_emu10k1 *emu = device->device_data; in snd_emu10k1_dev_free()
1295 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10241102,
1341 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10211102,
1359 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10011102,
1398 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x20011102,
1408 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x42011102,
1418 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40041102,
1427 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40071102,
1436 {.vendor = 0x1102, .device = 0x0004, .subsystem = 0x40011102,
[all …]
/sound/hda/
Dhdac_i915.c16 #define CONTROLLER_IN_GPU(pci) (((pci)->device == 0x0a0c) || \
17 ((pci)->device == 0x0c0c) || \
18 ((pci)->device == 0x0d0c) || \
19 ((pci)->device == 0x160c))
76 static int i915_component_master_match(struct device *dev, int subcomponent, in i915_component_master_match()
95 static int i915_master_bind(struct device *dev, in i915_master_bind()
/sound/hda/ext/
Dhdac_ext_bus.c29 int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev, in snd_hdac_ext_bus_init()
63 static void default_release(struct device *dev) in default_release()
135 static inline struct hdac_driver *get_hdrv(struct device *dev) in get_hdrv()
141 static inline struct hdac_device *get_hdev(struct device *dev) in get_hdev()
147 static int hda_ext_drv_probe(struct device *dev) in hda_ext_drv_probe()
152 static int hdac_ext_drv_remove(struct device *dev) in hdac_ext_drv_remove()
157 static void hdac_ext_drv_shutdown(struct device *dev) in hdac_ext_drv_shutdown()

12345678910>>...32