Home
last modified time | relevance | path

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

12345678910>>...38

/sound/hda/
Dintel-dsp-config.c31 u16 device; member
47 .device = 0x119a,
54 .device = 0x1a98,
65 .device = 0x5a98,
79 .device = 0x5a98,
86 .device = 0x5a98,
107 .device = 0x9d70,
120 .device = 0x9d70,
127 .device = 0x9d71,
140 .device = 0x9d71,
[all …]
/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 err = snd_i2c_sendbytes(device, buf, 2); in snd_cs8427_reg_write()
64 static int snd_cs8427_reg_read(struct snd_i2c_device *device, unsigned char reg) in snd_cs8427_reg_read() argument
69 err = snd_i2c_sendbytes(device, &reg, 1); in snd_cs8427_reg_read()
75 err = snd_i2c_readbytes(device, &buf, 1); in snd_cs8427_reg_read()
84 static int snd_cs8427_select_corudata(struct snd_i2c_device *device, int udata) in snd_cs8427_select_corudata() argument
86 struct cs8427 *chip = device->private_data; in snd_cs8427_select_corudata()
93 err = snd_cs8427_reg_write(device, CS8427_REG_CSDATABUF, in snd_cs8427_select_corudata()
101 static int snd_cs8427_send_corudata(struct snd_i2c_device *device, in snd_cs8427_send_corudata() argument
106 struct cs8427 *chip = device->private_data; in snd_cs8427_send_corudata()
[all …]
Dtea6330t.c34 struct snd_i2c_device *device; member
118 err = snd_i2c_sendbytes(tea->device, bytes, count); in snd_tea6330t_put_master_volume()
164 err = snd_i2c_sendbytes(tea->device, bytes, 3); in snd_tea6330t_put_master_switch()
212 err = snd_i2c_sendbytes(tea->device, bytes, 2); in snd_tea6330t_put_bass()
260 err = snd_i2c_sendbytes(tea->device, bytes, 2); in snd_tea6330t_put_treble()
274 static void snd_tea6330_free(struct snd_i2c_device *device) in snd_tea6330_free() argument
276 kfree(device->private_data); in snd_tea6330_free()
283 struct snd_i2c_device *device; in snd_tea6330t_update_mixer() local
294 err = snd_i2c_device_create(bus, "TEA6330T", TEA6330T_ADDR, &device); in snd_tea6330t_update_mixer()
299 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()
271 int device; in snd_hwdep_control_ioctl() local
273 if (get_user(device, (int __user *)arg)) in snd_hwdep_control_ioctl()
277 if (device < 0) in snd_hwdep_control_ioctl()
278 device = 0; in snd_hwdep_control_ioctl()
279 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()
154 static int snd_seq_device_dev_free(struct snd_device *device) in snd_seq_device_dev_free() argument
156 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_free()
165 static int snd_seq_device_dev_register(struct snd_device *device) in snd_seq_device_dev_register() argument
167 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_register()
178 static int snd_seq_device_dev_disconnect(struct snd_device *device) in snd_seq_device_dev_disconnect() argument
180 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_disconnect()
186 static void snd_seq_dev_release(struct device *dev) in snd_seq_dev_release()
[all …]
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 …]
Dcompress_offload.c119 data->stream.device = compr; in snd_compr_open()
291 mutex_lock(&stream->device->lock); in snd_compr_write()
299 mutex_unlock(&stream->device->lock); in snd_compr_write()
325 mutex_unlock(&stream->device->lock); in snd_compr_write()
342 mutex_lock(&stream->device->lock); in snd_compr_read()
376 mutex_unlock(&stream->device->lock); in snd_compr_read()
405 mutex_lock(&stream->device->lock); in snd_compr_poll()
440 mutex_unlock(&stream->device->lock); in snd_compr_poll()
549 dev_err(&stream->device->dev, in snd_compr_allocate_buffer()
717 if (!stream->device->use_pause_in_draining) in snd_compr_pause()
[all …]
/sound/core/seq/
Dseq_midi.c41 int device; member
151 int device, in snd_seq_midisynth_new() argument
157 msynth->device = device; in snd_seq_midisynth_new()
171 err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_subscribe()
215 err = snd_rawmidi_kernel_open(msynth->card, msynth->device, in midisynth_use()
263 snd_seq_midisynth_probe(struct device *_dev) in snd_seq_midisynth_probe()
275 int device = dev->device; in snd_seq_midisynth_probe() local
278 if (snd_BUG_ON(!card || device < 0 || device >= SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
283 info->device = device; in snd_seq_midisynth_probe()
332 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()
131 static int snd_mpu401_pnp(int dev, struct pnp_dev *device, in snd_mpu401_pnp() argument
134 if (!pnp_port_valid(device, 0) || in snd_mpu401_pnp()
135 pnp_port_flags(device, 0) & IORESOURCE_DISABLED) { in snd_mpu401_pnp()
139 if (pnp_port_len(device, 0) < IO_EXTENT) { in snd_mpu401_pnp()
141 (unsigned long long)pnp_port_len(device, 0), in snd_mpu401_pnp()
145 port[dev] = pnp_port_start(device, 0); in snd_mpu401_pnp()
147 if (!pnp_irq_valid(device, 0) || in snd_mpu401_pnp()
148 pnp_irq_flags(device, 0) & IORESOURCE_DISABLED) { in snd_mpu401_pnp()
152 irq[dev] = pnp_irq(device, 0); in snd_mpu401_pnp()
[all …]
/sound/usb/6fire/
Dfirmware.c158 static int usb6fire_fw_ezusb_write(struct usb_device *device, in usb6fire_fw_ezusb_write() argument
161 return usb_control_msg_send(device, 0, type, in usb6fire_fw_ezusb_write()
166 static int usb6fire_fw_ezusb_read(struct usb_device *device, in usb6fire_fw_ezusb_read() argument
169 return usb_control_msg_recv(device, 0, type, in usb6fire_fw_ezusb_read()
174 static int usb6fire_fw_fpga_write(struct usb_device *device, in usb6fire_fw_fpga_write() argument
180 ret = usb_bulk_msg(device, usb_sndbulkpipe(device, FPGA_EP), data, len, in usb6fire_fw_fpga_write()
195 struct usb_device *device = interface_to_usbdev(intf); in usb6fire_fw_ezusb_upload() local
203 ret = request_firmware(&fw, fwname, &device->dev); in usb6fire_fw_ezusb_upload()
220 ret = usb6fire_fw_ezusb_write(device, 0xa0, 0xe600, &data, 1); in usb6fire_fw_ezusb_upload()
231 ret = usb6fire_fw_ezusb_write(device, 0xa0, rec->address, in usb6fire_fw_ezusb_upload()
[all …]
/sound/soc/
Dsoc-devres.c12 static void devm_dai_release(struct device *dev, void *res) in devm_dai_release()
25 struct snd_soc_dai *devm_snd_soc_register_dai(struct device *dev, in devm_snd_soc_register_dai()
49 static void devm_component_release(struct device *dev, void *res) in devm_component_release()
66 int devm_snd_soc_register_component(struct device *dev, in devm_snd_soc_register_component()
89 static void devm_card_release(struct device *dev, void *res) in devm_card_release()
102 int devm_snd_soc_register_card(struct device *dev, struct snd_soc_card *card) in devm_snd_soc_register_card()
125 static void devm_dmaengine_pcm_release(struct device *dev, void *res) in devm_dmaengine_pcm_release()
127 snd_dmaengine_pcm_unregister(*(struct device **)res); in devm_dmaengine_pcm_release()
139 int devm_snd_dmaengine_pcm_register(struct device *dev, in devm_snd_dmaengine_pcm_register()
142 struct device **ptr; in devm_snd_dmaengine_pcm_register()
/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 strscpy(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/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/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.c47 struct usb_device *device, int idx, in hiface_chip_create() argument
62 dev_err(&device->dev, "cannot create alsa card.\n"); in hiface_chip_create()
76 usb_make_path(device, card->longname + len, in hiface_chip_create()
80 chip->dev = device; in hiface_chip_create()
94 struct usb_device *device = interface_to_usbdev(intf); in hiface_chip_probe() local
96 ret = usb_set_interface(device, 0, 0); in hiface_chip_probe()
98 dev_err(&device->dev, "can't set first interface for " CARD_NAME " device.\n"); in hiface_chip_probe()
111 dev_err(&device->dev, "no available " CARD_NAME " audio device\n"); in hiface_chip_probe()
116 ret = hiface_chip_create(intf, device, i, quirk, &chip); in hiface_chip_probe()
126 dev_err(&device->dev, "cannot register " CARD_NAME " card\n"); in hiface_chip_probe()
/sound/soc/intel/atom/sst/
Dsst_drv_interface.c132 static int sst_power_control(struct device *dev, bool state) in sst_power_control()
171 static int sst_open_pcm_stream(struct device *dev, in sst_open_pcm_stream()
189 static int sst_cdev_open(struct device *dev, in sst_cdev_open()
218 static int sst_cdev_close(struct device *dev, unsigned int str_id) in sst_cdev_close()
241 static int sst_cdev_ack(struct device *dev, unsigned int str_id, in sst_cdev_ack()
272 static int sst_cdev_set_metadata(struct device *dev, in sst_cdev_set_metadata()
294 static int sst_cdev_stream_pause(struct device *dev, unsigned int str_id) in sst_cdev_stream_pause()
301 static int sst_cdev_stream_pause_release(struct device *dev, in sst_cdev_stream_pause_release()
309 static int sst_cdev_stream_start(struct device *dev, unsigned int str_id) in sst_cdev_stream_start()
322 static int sst_cdev_stream_drop(struct device *dev, unsigned int str_id) in sst_cdev_stream_drop()
[all …]
/sound/soc/mediatek/
DKconfig13 Select Y if you have such device.
24 Select Y if you have such device.
34 Select Y if you have such device.
44 Select Y if you have such device.
54 Select Y if you have such device.
64 Select Y if you have such device.
74 Select Y if you have such device.
85 Select Y if you have such device.
96 Select Y if you have such device.
108 Select Y if you have such device.
[all …]
/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()
137 static inline struct hdac_driver *get_hdrv(struct device *dev) in get_hdrv()
143 static inline struct hdac_device *get_hdev(struct device *dev) in get_hdev()
149 static int hda_ext_drv_probe(struct device *dev) in hda_ext_drv_probe()
154 static int hdac_ext_drv_remove(struct device *dev) in hdac_ext_drv_remove()
159 static void hdac_ext_drv_shutdown(struct device *dev) in hdac_ext_drv_shutdown()
/sound/pci/trident/
Dtrident.c73 ((pci->vendor << 16) | pci->device) == TRIDENT_DEVICE_ID_SI7018 ? 1 : 2, in snd_trident_probe()
78 switch (trident->device) { in snd_trident_probe()
92 if (trident->device == TRIDENT_DEVICE_ID_SI7018) { in snd_trident_probe()
104 switch (trident->device) { in snd_trident_probe()
112 if (trident->device == TRIDENT_DEVICE_ID_NX || trident->device == TRIDENT_DEVICE_ID_SI7018) { in snd_trident_probe()
117 if (trident->device != TRIDENT_DEVICE_ID_SI7018) { in snd_trident_probe()
/sound/pci/emu10k1/
Demu10k1_main.c1282 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10241102,
1328 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10211102,
1346 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10011102,
1385 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x20011102,
1395 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x42011102,
1405 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40041102,
1414 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40071102,
1423 {.vendor = 0x1102, .device = 0x0004, .subsystem = 0x40011102,
1431 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40021102,
1439 {.vendor = 0x1102, .device = 0x0004, .subsystem = 0x40021102,
[all …]

12345678910>>...38