Home
last modified time | relevance | path

Searched refs:hwdep (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/linux/sound/core/
H A Dhwdep.c37 if (hwdep->card == card && hwdep->device == device) in snd_hwdep_search()
38 return hwdep; in snd_hwdep_search()
343 if (!hwdep) in snd_hwdep_free()
346 hwdep->private_free(hwdep); in snd_hwdep_free()
379 hwdep = kzalloc(sizeof(*hwdep), GFP_KERNEL); in snd_hwdep_new()
388 strscpy(hwdep->id, id, sizeof(hwdep->id)); in snd_hwdep_new()
432 hwdep->card, hwdep->device, in snd_hwdep_dev_register()
433 &snd_hwdep_f_ops, hwdep, hwdep->dev); in snd_hwdep_dev_register()
468 if (snd_hwdep_search(hwdep->card, hwdep->device) != hwdep) { in snd_hwdep_dev_disconnect()
476 snd_unregister_oss_device(hwdep->oss_type, hwdep->card, hwdep->device); in snd_hwdep_dev_disconnect()
[all …]
H A DMakefile35 snd-hwdep-objs := hwdep.o
42 obj-$(CONFIG_SND_HWDEP) += snd-hwdep.o
/openbmc/linux/sound/pci/hda/
H A Dhda_hwdep.c97 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 …]
/openbmc/linux/sound/firewire/oxfw/
H A Doxfw-hwdep.c21 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 …]
H A DMakefile3 oxfw-midi.o oxfw-hwdep.o oxfw-spkr.o oxfw-scs1x.o oxfw.o
/openbmc/linux/sound/firewire/bebob/
H A Dbebob_hwdep.c22 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 …]
/openbmc/linux/sound/firewire/digi00x/
H A Ddigi00x-hwdep.c22 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 …]
H A DMakefile3 digi00x-pcm.o digi00x-hwdep.o \
/openbmc/linux/sound/firewire/dice/
H A Ddice-hwdep.c14 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 …]
H A DMakefile3 dice-pcm.o dice-hwdep.o dice.o dice-tcelectronic.o \
/openbmc/linux/sound/firewire/fireface/
H A Dff-hwdep.c29 struct snd_ff *ff = hwdep->private_data; in hwdep_read()
74 struct snd_ff *ff = hwdep->private_data; in hwdep_poll()
146 struct snd_ff *ff = hwdep->private_data; in hwdep_release()
159 struct snd_ff *ff = hwdep->private_data; in hwdep_ioctl()
177 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
193 struct snd_hwdep *hwdep; in snd_ff_create_hwdep_devices() local
200 strcpy(hwdep->name, ff->card->driver); in snd_ff_create_hwdep_devices()
201 hwdep->iface = SNDRV_HWDEP_IFACE_FW_FIREFACE; in snd_ff_create_hwdep_devices()
202 hwdep->ops = hwdep_ops; in snd_ff_create_hwdep_devices()
203 hwdep->private_data = ff; in snd_ff_create_hwdep_devices()
[all …]
H A DMakefile3 ff-stream.o ff-pcm.o ff-hwdep.o ff-protocol-former.o \
/openbmc/linux/sound/firewire/tascam/
H A Dtascam-hwdep.c101 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 …]
H A DMakefile3 tascam-pcm.o tascam-hwdep.o tascam-transaction.o \
H A Dtascam.h94 struct snd_hwdep *hwdep; member
/openbmc/linux/sound/firewire/motu/
H A Dmotu-hwdep.c30 struct snd_motu *motu = hwdep->private_data; in hwdep_read()
102 struct snd_motu *motu = hwdep->private_data; in hwdep_poll()
174 struct snd_motu *motu = hwdep->private_data; in hwdep_release()
270 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
286 struct snd_hwdep *hwdep; in snd_motu_create_hwdep_device() local
293 strcpy(hwdep->name, "MOTU"); in snd_motu_create_hwdep_device()
294 hwdep->iface = SNDRV_HWDEP_IFACE_FW_MOTU; in snd_motu_create_hwdep_device()
295 hwdep->ops = ops; in snd_motu_create_hwdep_device()
296 hwdep->private_data = motu; in snd_motu_create_hwdep_device()
297 hwdep->exclusive = true; in snd_motu_create_hwdep_device()
[all …]
H A DMakefile5 motu-proc.o motu-pcm.o motu-midi.o motu-hwdep.o \
H A Dmotu-register-dsp-message-parser.c133 if (!motu->hwdep || motu->hwdep->used == 0) in queue_event()
/openbmc/linux/sound/firewire/fireworks/
H A Dfireworks_hwdep.c125 struct snd_efw *efw = hwdep->private_data; in hwdep_read()
161 struct snd_efw *efw = hwdep->private_data; in hwdep_write()
190 struct snd_efw *efw = hwdep->private_data; in hwdep_poll()
266 struct snd_efw *efw = hwdep->private_data; in hwdep_release()
280 struct snd_efw *efw = hwdep->private_data; in hwdep_ioctl()
299 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
316 struct snd_hwdep *hwdep; in snd_efw_create_hwdep_device() local
322 strcpy(hwdep->name, "Fireworks"); in snd_efw_create_hwdep_device()
324 hwdep->ops = ops; in snd_efw_create_hwdep_device()
325 hwdep->private_data = efw; in snd_efw_create_hwdep_device()
[all …]
/openbmc/linux/sound/drivers/opl3/
H A Dopl3_seq.c41 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 …]
/openbmc/linux/sound/synth/emux/
H A Demux_hwdep.c122 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()
/openbmc/linux/sound/usb/line6/
H A Ddriver.c560 line6_hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in line6_hwdep_read() argument
563 struct usb_line6 *line6 = hwdep->private_data; in line6_hwdep_read()
604 struct usb_line6 *line6 = hwdep->private_data; in line6_hwdep_write()
627 struct usb_line6 *line6 = hwdep->private_data; in line6_hwdep_poll()
664 struct snd_hwdep *hwdep; in line6_hwdep_init() local
673 err = snd_hwdep_new(line6->card, "config", 0, &hwdep); in line6_hwdep_init()
676 strcpy(hwdep->name, "config"); in line6_hwdep_init()
677 hwdep->iface = SNDRV_HWDEP_IFACE_LINE6; in line6_hwdep_init()
678 hwdep->ops = hwdep_ops; in line6_hwdep_init()
679 hwdep->private_data = line6; in line6_hwdep_init()
[all …]
/openbmc/linux/include/sound/
H A Dhwdep.h55 void (*private_free) (struct snd_hwdep *hwdep);
H A Demux_synth.h93 struct snd_hwdep *hwdep; /* hwdep device */ member
/openbmc/linux/sound/pci/mixart/
H A Dmixart.h156 struct snd_hwdep *hwdep; /* DSP loader, only for the first card */ member

12