/linux/sound/core/ |
A D | hwdep.c | 37 if (hwdep->card == card && hwdep->device == device) in snd_hwdep_search() 38 return hwdep; in snd_hwdep_search() 374 hwdep = kzalloc(sizeof(*hwdep), GFP_KERNEL); in snd_hwdep_new() 375 if (!hwdep) in snd_hwdep_new() 383 strscpy(hwdep->id, id, sizeof(hwdep->id)); in snd_hwdep_new() 410 hwdep->private_free(hwdep); in snd_hwdep_dev_free() 428 hwdep->card, hwdep->device, in snd_hwdep_dev_register() 429 &snd_hwdep_f_ops, hwdep, &hwdep->dev); in snd_hwdep_dev_register() 464 if (snd_hwdep_search(hwdep->card, hwdep->device) != hwdep) { in snd_hwdep_dev_disconnect() 472 snd_unregister_oss_device(hwdep->oss_type, hwdep->card, hwdep->device); in snd_hwdep_dev_disconnect() [all …]
|
A D | Makefile | 37 snd-hwdep-objs := hwdep.o 44 obj-$(CONFIG_SND_HWDEP) += snd-hwdep.o
|
/linux/sound/firewire/bebob/ |
A D | bebob_hwdep.c | 22 struct snd_bebob *bebob = hwdep->private_data; in hwdep_read() 55 struct snd_bebob *bebob = hwdep->private_data; in hwdep_poll() 131 struct snd_bebob *bebob = hwdep->private_data; in hwdep_release() 145 struct snd_bebob *bebob = hwdep->private_data; in hwdep_ioctl() 164 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl() 180 struct snd_hwdep *hwdep; in snd_bebob_create_hwdep_device() local 186 strcpy(hwdep->name, "BeBoB"); in snd_bebob_create_hwdep_device() 187 hwdep->iface = SNDRV_HWDEP_IFACE_FW_BEBOB; in snd_bebob_create_hwdep_device() 188 hwdep->ops = ops; in snd_bebob_create_hwdep_device() 189 hwdep->private_data = bebob; in snd_bebob_create_hwdep_device() [all …]
|
/linux/sound/firewire/oxfw/ |
A D | oxfw-hwdep.c | 21 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_read() 55 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_poll() 127 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_release() 140 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_ioctl() 158 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl() 174 struct snd_hwdep *hwdep; in snd_oxfw_create_hwdep() local 180 strcpy(hwdep->name, oxfw->card->driver); in snd_oxfw_create_hwdep() 181 hwdep->iface = SNDRV_HWDEP_IFACE_FW_OXFW; in snd_oxfw_create_hwdep() 182 hwdep->ops = hwdep_ops; in snd_oxfw_create_hwdep() 183 hwdep->private_data = oxfw; in snd_oxfw_create_hwdep() [all …]
|
A D | Makefile | 3 oxfw-midi.o oxfw-hwdep.o oxfw-spkr.o oxfw-scs1x.o oxfw.o
|
/linux/sound/firewire/dice/ |
A D | dice-hwdep.c | 14 struct snd_dice *dice = hwdep->private_data; in hwdep_read() 57 struct snd_dice *dice = hwdep->private_data; in hwdep_poll() 129 struct snd_dice *dice = hwdep->private_data; in hwdep_release() 142 struct snd_dice *dice = hwdep->private_data; in hwdep_ioctl() 160 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl() 176 struct snd_hwdep *hwdep; in snd_dice_create_hwdep() local 182 strcpy(hwdep->name, "DICE"); in snd_dice_create_hwdep() 183 hwdep->iface = SNDRV_HWDEP_IFACE_FW_DICE; in snd_dice_create_hwdep() 184 hwdep->ops = ops; in snd_dice_create_hwdep() 185 hwdep->private_data = dice; in snd_dice_create_hwdep() [all …]
|
A D | Makefile | 3 dice-pcm.o dice-hwdep.o dice.o dice-tcelectronic.o \
|
/linux/sound/firewire/digi00x/ |
A D | digi00x-hwdep.c | 22 struct snd_dg00x *dg00x = hwdep->private_data; in hwdep_read() 65 struct snd_dg00x *dg00x = hwdep->private_data; in hwdep_poll() 137 struct snd_dg00x *dg00x = hwdep->private_data; in hwdep_release() 150 struct snd_dg00x *dg00x = hwdep->private_data; in hwdep_ioctl() 168 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl() 184 struct snd_hwdep *hwdep; in snd_dg00x_create_hwdep_device() local 191 strcpy(hwdep->name, "Digi00x"); in snd_dg00x_create_hwdep_device() 192 hwdep->iface = SNDRV_HWDEP_IFACE_FW_DIGI00X; in snd_dg00x_create_hwdep_device() 193 hwdep->ops = ops; in snd_dg00x_create_hwdep_device() 194 hwdep->private_data = dg00x; in snd_dg00x_create_hwdep_device() [all …]
|
A D | Makefile | 3 digi00x-pcm.o digi00x-hwdep.o \
|
/linux/sound/firewire/fireface/ |
A D | ff-hwdep.c | 21 struct snd_ff *ff = hwdep->private_data; in hwdep_read() 55 struct snd_ff *ff = hwdep->private_data; in hwdep_poll() 127 struct snd_ff *ff = hwdep->private_data; in hwdep_release() 140 struct snd_ff *ff = hwdep->private_data; in hwdep_ioctl() 158 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl() 174 struct snd_hwdep *hwdep; in snd_ff_create_hwdep_devices() local 181 strcpy(hwdep->name, ff->card->driver); in snd_ff_create_hwdep_devices() 182 hwdep->iface = SNDRV_HWDEP_IFACE_FW_FIREFACE; in snd_ff_create_hwdep_devices() 183 hwdep->ops = hwdep_ops; in snd_ff_create_hwdep_devices() 184 hwdep->private_data = ff; in snd_ff_create_hwdep_devices() [all …]
|
A D | Makefile | 3 ff-stream.o ff-pcm.o ff-hwdep.o ff-protocol-former.o \
|
/linux/sound/pci/hda/ |
A D | hda_hwdep.c | 97 struct snd_hwdep *hwdep; in snd_hda_create_hwdep() local 104 codec->hwdep = hwdep; in snd_hda_create_hwdep() 105 sprintf(hwdep->name, "HDA Codec %d", codec->addr); in snd_hda_create_hwdep() 106 hwdep->iface = SNDRV_HWDEP_IFACE_HDA; in snd_hda_create_hwdep() 107 hwdep->private_data = codec; in snd_hda_create_hwdep() 108 hwdep->exclusive = 1; in snd_hda_create_hwdep() 110 hwdep->ops.open = hda_hwdep_open; in snd_hda_create_hwdep() 111 hwdep->ops.ioctl = hda_hwdep_ioctl; in snd_hda_create_hwdep() 113 hwdep->ops.ioctl_compat = hda_hwdep_ioctl_compat; in snd_hda_create_hwdep() 117 hwdep->dev.groups = snd_hda_dev_attr_groups; in snd_hda_create_hwdep() [all …]
|
/linux/sound/firewire/tascam/ |
A D | tascam-hwdep.c | 101 struct snd_tscm *tscm = hwdep->private_data; in hwdep_read() 132 struct snd_tscm *tscm = hwdep->private_data; in hwdep_poll() 212 struct snd_tscm *tscm = hwdep->private_data; in hwdep_release() 245 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl() 261 struct snd_hwdep *hwdep; in snd_tscm_create_hwdep_device() local 268 strcpy(hwdep->name, "Tascam"); in snd_tscm_create_hwdep_device() 269 hwdep->iface = SNDRV_HWDEP_IFACE_FW_TASCAM; in snd_tscm_create_hwdep_device() 270 hwdep->ops = ops; in snd_tscm_create_hwdep_device() 271 hwdep->private_data = tscm; in snd_tscm_create_hwdep_device() 272 hwdep->exclusive = true; in snd_tscm_create_hwdep_device() [all …]
|
A D | Makefile | 3 tascam-pcm.o tascam-hwdep.o tascam-transaction.o \
|
A D | tascam.h | 94 struct snd_hwdep *hwdep; member
|
/linux/sound/firewire/motu/ |
A D | motu-hwdep.c | 30 struct snd_motu *motu = hwdep->private_data; in hwdep_read() 98 struct snd_motu *motu = hwdep->private_data; in hwdep_poll() 170 struct snd_motu *motu = hwdep->private_data; in hwdep_release() 266 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl() 282 struct snd_hwdep *hwdep; in snd_motu_create_hwdep_device() local 289 strcpy(hwdep->name, "MOTU"); in snd_motu_create_hwdep_device() 290 hwdep->iface = SNDRV_HWDEP_IFACE_FW_MOTU; in snd_motu_create_hwdep_device() 291 hwdep->ops = ops; in snd_motu_create_hwdep_device() 292 hwdep->private_data = motu; in snd_motu_create_hwdep_device() 293 hwdep->exclusive = true; in snd_motu_create_hwdep_device() [all …]
|
A D | Makefile | 5 motu-proc.o motu-pcm.o motu-midi.o motu-hwdep.o \
|
A D | motu-register-dsp-message-parser.c | 133 if (!motu->hwdep || motu->hwdep->used == 0) in queue_event()
|
/linux/sound/firewire/fireworks/ |
A D | fireworks_hwdep.c | 124 struct snd_efw *efw = hwdep->private_data; in hwdep_read() 160 struct snd_efw *efw = hwdep->private_data; in hwdep_write() 189 struct snd_efw *efw = hwdep->private_data; in hwdep_poll() 265 struct snd_efw *efw = hwdep->private_data; in hwdep_release() 279 struct snd_efw *efw = hwdep->private_data; in hwdep_ioctl() 298 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl() 315 struct snd_hwdep *hwdep; in snd_efw_create_hwdep_device() local 321 strcpy(hwdep->name, "Fireworks"); in snd_efw_create_hwdep_device() 323 hwdep->ops = ops; in snd_efw_create_hwdep_device() 324 hwdep->private_data = efw; in snd_efw_create_hwdep_device() [all …]
|
/linux/sound/drivers/opl3/ |
A D | opl3_seq.c | 41 struct snd_hwdep *hwdep = opl3->hwdep; in snd_opl3_synth_setup() local 43 mutex_lock(&hwdep->open_mutex); in snd_opl3_synth_setup() 44 if (hwdep->used) { in snd_opl3_synth_setup() 45 mutex_unlock(&hwdep->open_mutex); in snd_opl3_synth_setup() 48 hwdep->used++; in snd_opl3_synth_setup() 49 mutex_unlock(&hwdep->open_mutex); in snd_opl3_synth_setup() 72 struct snd_hwdep *hwdep; in snd_opl3_synth_cleanup() local 83 hwdep = opl3->hwdep; in snd_opl3_synth_cleanup() 84 mutex_lock(&hwdep->open_mutex); in snd_opl3_synth_cleanup() 85 hwdep->used--; in snd_opl3_synth_cleanup() [all …]
|
/linux/sound/usb/line6/ |
A D | driver.c | 559 line6_hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in line6_hwdep_read() argument 562 struct usb_line6 *line6 = hwdep->private_data; in line6_hwdep_read() 603 struct usb_line6 *line6 = hwdep->private_data; in line6_hwdep_write() 626 struct usb_line6 *line6 = hwdep->private_data; in line6_hwdep_poll() 663 struct snd_hwdep *hwdep; in line6_hwdep_init() local 672 err = snd_hwdep_new(line6->card, "config", 0, &hwdep); in line6_hwdep_init() 675 strcpy(hwdep->name, "config"); in line6_hwdep_init() 676 hwdep->iface = SNDRV_HWDEP_IFACE_LINE6; in line6_hwdep_init() 677 hwdep->ops = hwdep_ops; in line6_hwdep_init() 678 hwdep->private_data = line6; in line6_hwdep_init() [all …]
|
/linux/sound/synth/emux/ |
A D | emux_hwdep.c | 122 emu->hwdep = hw; in snd_emux_init_hwdep() 145 if (emu->hwdep) { in snd_emux_delete_hwdep() 146 snd_device_free(emu->card, emu->hwdep); in snd_emux_delete_hwdep() 147 emu->hwdep = NULL; in snd_emux_delete_hwdep()
|
/linux/include/sound/ |
A D | hwdep.h | 55 void (*private_free) (struct snd_hwdep *hwdep);
|
A D | emux_synth.h | 93 struct snd_hwdep *hwdep; /* hwdep device */ member
|
/linux/sound/pci/mixart/ |
A D | mixart.h | 156 struct snd_hwdep *hwdep; /* DSP loader, only for the first card */ member
|