/sound/i2c/ |
D | i2c.c | 35 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 …]
|
D | cs8427.c | 60 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, ®, 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 …]
|
D | tea6330t.c | 49 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/ |
D | sst-mfld-platform.h | 104 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/ |
D | hwdep.c | 41 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 …]
|
D | compress_offload.c | 125 data->stream.device = compr; in snd_compr_open() 285 mutex_lock(&stream->device->lock); in snd_compr_write() 289 mutex_unlock(&stream->device->lock); in snd_compr_write() 315 mutex_unlock(&stream->device->lock); in snd_compr_write() 332 mutex_lock(&stream->device->lock); in snd_compr_read() 364 mutex_unlock(&stream->device->lock); in snd_compr_read() 394 mutex_lock(&stream->device->lock); in snd_compr_poll() 426 mutex_unlock(&stream->device->lock); in snd_compr_poll() 725 mutex_unlock(&stream->device->lock); in snd_compress_wait_for_drain() 742 mutex_lock(&stream->device->lock); in snd_compress_wait_for_drain() [all …]
|
D | pcm_trace.h | 16 __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,
|
D | memalloc.c | 83 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()
|
D | pcm.c | 45 static int snd_pcm_dev_free(struct snd_device *device); 46 static int snd_pcm_dev_register(struct snd_device *device); 47 static int snd_pcm_dev_disconnect(struct snd_device *device); 49 static struct snd_pcm *snd_pcm_get(struct snd_card *card, int device) in snd_pcm_get() argument 54 if (pcm->card == card && pcm->device == device) in snd_pcm_get() 60 static int snd_pcm_next(struct snd_card *card, int device) in snd_pcm_next() argument 65 if (pcm->card == card && pcm->device > device) in snd_pcm_next() 66 return pcm->device; in snd_pcm_next() 81 if (pcm->card == newpcm->card && pcm->device == newpcm->device) in snd_pcm_add() 85 pcm->device > newpcm->device)) { in snd_pcm_add() [all …]
|
D | sound.c | 262 void *private_data, struct device *device) in snd_register_device() argument 268 if (snd_BUG_ON(!device)) in snd_register_device() 276 preg->device = dev; in snd_register_device() 287 preg->dev = device; in snd_register_device() 288 device->devt = MKDEV(major, minor); in snd_register_device() 289 err = device_add(device); in snd_register_device() 311 int snd_unregister_device(struct device *dev) in snd_unregister_device() 369 if (mptr->device >= 0) in snd_minor_info_read() 371 minor, mptr->card, mptr->device, in snd_minor_info_read()
|
D | jack.c | 44 static int snd_jack_dev_disconnect(struct snd_device *device) in snd_jack_dev_disconnect() argument 46 struct snd_jack *jack = device->device_data; in snd_jack_dev_disconnect() 61 static int snd_jack_dev_free(struct snd_device *device) in snd_jack_dev_free() argument 63 struct snd_jack *jack = device->device_data; in snd_jack_dev_free() 64 struct snd_card *card = device->card; in snd_jack_dev_free() 77 snd_jack_dev_disconnect(device); in snd_jack_dev_free() 85 static int snd_jack_dev_register(struct snd_device *device) in snd_jack_dev_register() argument 87 struct snd_jack *jack = device->device_data; in snd_jack_dev_register() 88 struct snd_card *card = device->card; in snd_jack_dev_register() 289 void snd_jack_set_parent(struct snd_jack *jack, struct device *parent) in snd_jack_set_parent()
|
/sound/soc/ |
D | soc-devres.c | 17 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/ |
D | firmware.c | 162 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/ |
D | seq_midi.c | 55 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 …]
|
D | seq_device.c | 58 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() 171 static int snd_seq_device_dev_register(struct snd_device *device) in snd_seq_device_dev_register() argument 173 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_register() 184 static int snd_seq_device_dev_disconnect(struct snd_device *device) in snd_seq_device_dev_disconnect() argument 186 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_disconnect() 192 static void snd_seq_dev_release(struct device *dev) in snd_seq_dev_release() [all …]
|
/sound/drivers/mpu401/ |
D | mpu401.c | 67 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/ |
D | atmel-pcm.h | 88 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/ |
D | midi.c | 69 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/usb/hiface/ |
D | chip.c | 68 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()
|
D | pcm.c | 118 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/ |
D | sst_drv_interface.c | 143 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/soc/codecs/ |
D | adau17x1.h | 35 void (*switch_mode)(struct device *dev); 52 int adau17x1_probe(struct device *dev, struct regmap *regmap, 53 enum adau17x1_type type, void (*switch_mode)(struct device *dev), 57 bool adau17x1_readable_register(struct device *dev, unsigned int reg); 58 bool adau17x1_volatile_register(struct device *dev, unsigned int reg); 59 bool adau17x1_precious_register(struct device *dev, unsigned int reg);
|
/sound/pci/emu10k1/ |
D | emu10k1_main.c | 1335 static int snd_emu10k1_dev_free(struct snd_device *device) in snd_emu10k1_dev_free() argument 1337 struct snd_emu10k1 *emu = device->device_data; in snd_emu10k1_dev_free() 1350 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10241102, 1396 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10211102, 1414 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10011102, 1453 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x20011102, 1463 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x42011102, 1473 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40041102, 1482 {.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40071102, 1491 {.vendor = 0x1102, .device = 0x0004, .subsystem = 0x40011102, [all …]
|
/sound/firewire/fireworks/ |
D | fireworks_transaction.c | 105 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/ |
D | trident.c | 99 ((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()
|