Home
last modified time | relevance | path

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

12

/Linux-v5.4/sound/core/
Dhwdep.c34 struct snd_hwdep *hwdep; in snd_hwdep_search() local
36 list_for_each_entry(hwdep, &snd_hwdep_devices, list) in snd_hwdep_search()
37 if (hwdep->card == card && hwdep->device == device) in snd_hwdep_search()
38 return hwdep; in snd_hwdep_search()
292 struct snd_hwdep *hwdep; in snd_hwdep_control_ioctl() local
297 hwdep = snd_hwdep_search(card, device); in snd_hwdep_control_ioctl()
298 if (hwdep) in snd_hwdep_control_ioctl()
299 err = snd_hwdep_info(hwdep, info); in snd_hwdep_control_ioctl()
354 struct snd_hwdep *hwdep; in snd_hwdep_new() local
366 hwdep = kzalloc(sizeof(*hwdep), GFP_KERNEL); in snd_hwdep_new()
[all …]
DMakefile34 snd-hwdep-objs := hwdep.o
40 obj-$(CONFIG_SND_HWDEP) += snd-hwdep.o
/Linux-v5.4/sound/firewire/fireface/
Dff-hwdep.c18 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
21 struct snd_ff *ff = hwdep->private_data; in hwdep_read()
54 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument
57 struct snd_ff *ff = hwdep->private_data; in hwdep_poll()
127 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
129 struct snd_ff *ff = hwdep->private_data; in hwdep_release()
139 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
142 struct snd_ff *ff = hwdep->private_data; in hwdep_ioctl()
157 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument
160 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
[all …]
DMakefile3 ff-stream.o ff-pcm.o ff-hwdep.o ff-protocol-former.o \
/Linux-v5.4/sound/firewire/motu/
Dmotu-hwdep.c19 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
22 struct snd_motu *motu = hwdep->private_data; in hwdep_read()
61 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument
64 struct snd_motu *motu = hwdep->private_data; in hwdep_poll()
134 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
136 struct snd_motu *motu = hwdep->private_data; in hwdep_release()
146 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
149 struct snd_motu *motu = hwdep->private_data; in hwdep_ioctl()
164 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument
167 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
[all …]
DMakefile5 motu-proc.o motu-pcm.o motu-midi.o motu-hwdep.o \
/Linux-v5.4/sound/firewire/oxfw/
Doxfw-hwdep.c18 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
21 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_read()
54 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument
57 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_poll()
127 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
129 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_release()
139 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
142 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_ioctl()
157 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument
160 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
[all …]
DMakefile3 oxfw-midi.o oxfw-hwdep.o oxfw-spkr.o oxfw-scs1x.o oxfw.o
/Linux-v5.4/sound/firewire/bebob/
Dbebob_hwdep.c19 hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
22 struct snd_bebob *bebob = hwdep->private_data; in hwdep_read()
56 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument
58 struct snd_bebob *bebob = hwdep->private_data; in hwdep_poll()
132 hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
134 struct snd_bebob *bebob = hwdep->private_data; in hwdep_release()
145 hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
148 struct snd_bebob *bebob = hwdep->private_data; in hwdep_ioctl()
164 hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument
167 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
[all …]
/Linux-v5.4/sound/firewire/dice/
Ddice-hwdep.c11 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, in hwdep_read() argument
14 struct snd_dice *dice = hwdep->private_data; in hwdep_read()
54 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument
57 struct snd_dice *dice = hwdep->private_data; in hwdep_poll()
127 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
129 struct snd_dice *dice = hwdep->private_data; in hwdep_release()
139 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
142 struct snd_dice *dice = hwdep->private_data; in hwdep_ioctl()
157 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument
160 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
[all …]
DMakefile3 dice-pcm.o dice-hwdep.o dice.o dice-tcelectronic.o \
/Linux-v5.4/sound/firewire/digi00x/
Ddigi00x-hwdep.c19 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
22 struct snd_dg00x *dg00x = hwdep->private_data; in hwdep_read()
62 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument
65 struct snd_dg00x *dg00x = hwdep->private_data; in hwdep_poll()
135 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
137 struct snd_dg00x *dg00x = hwdep->private_data; in hwdep_release()
147 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
150 struct snd_dg00x *dg00x = hwdep->private_data; in hwdep_ioctl()
165 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument
168 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
[all …]
DMakefile3 digi00x-pcm.o digi00x-hwdep.o \
/Linux-v5.4/sound/pci/hda/
Dhda_hwdep.c97 struct snd_hwdep *hwdep; in snd_hda_create_hwdep() local
101 err = snd_hwdep_new(codec->card, hwname, codec->addr, &hwdep); in snd_hda_create_hwdep()
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()
[all …]
/Linux-v5.4/sound/firewire/tascam/
Dtascam-hwdep.c96 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
99 struct snd_tscm *tscm = hwdep->private_data; in hwdep_read()
127 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument
130 struct snd_tscm *tscm = hwdep->private_data; in hwdep_poll()
208 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
210 struct snd_tscm *tscm = hwdep->private_data; in hwdep_release()
220 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
223 struct snd_tscm *tscm = hwdep->private_data; in hwdep_ioctl()
240 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument
243 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
[all …]
DMakefile3 tascam-pcm.o tascam-hwdep.o tascam-transaction.o \
Dtascam.h96 struct snd_hwdep *hwdep; member
/Linux-v5.4/sound/firewire/fireworks/
Dfireworks_hwdep.c121 hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
124 struct snd_efw *efw = hwdep->private_data; in hwdep_read()
157 hwdep_write(struct snd_hwdep *hwdep, const char __user *data, long count, in hwdep_write() argument
160 struct snd_efw *efw = hwdep->private_data; in hwdep_write()
187 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument
189 struct snd_efw *efw = hwdep->private_data; in hwdep_poll()
263 hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
265 struct snd_efw *efw = hwdep->private_data; in hwdep_release()
276 hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
279 struct snd_efw *efw = hwdep->private_data; in hwdep_ioctl()
[all …]
/Linux-v5.4/sound/drivers/opl3/
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 …]
/Linux-v5.4/sound/synth/emux/
Demux_hwdep.c121 emu->hwdep = hw; in snd_emux_init_hwdep()
143 if (emu->hwdep) { in snd_emux_delete_hwdep()
144 snd_device_free(emu->card, emu->hwdep); in snd_emux_delete_hwdep()
145 emu->hwdep = NULL; in snd_emux_delete_hwdep()
/Linux-v5.4/sound/usb/line6/
Ddriver.c569 line6_hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in line6_hwdep_read() argument
572 struct usb_line6 *line6 = hwdep->private_data; in line6_hwdep_read()
607 line6_hwdep_write(struct snd_hwdep *hwdep, const char __user *data, long count, in line6_hwdep_write() argument
610 struct usb_line6 *line6 = hwdep->private_data; in line6_hwdep_write()
654 struct snd_hwdep *hwdep; in line6_hwdep_init() local
663 err = snd_hwdep_new(line6->card, "config", 0, &hwdep); in line6_hwdep_init()
666 strcpy(hwdep->name, "config"); in line6_hwdep_init()
667 hwdep->iface = SNDRV_HWDEP_IFACE_LINE6; in line6_hwdep_init()
668 hwdep->ops = hwdep_ops; in line6_hwdep_init()
669 hwdep->private_data = line6; in line6_hwdep_init()
[all …]
/Linux-v5.4/include/sound/
Dhwdep.h55 void (*private_free) (struct snd_hwdep *hwdep);
/Linux-v5.4/Documentation/driver-api/
Dsound.rst46 .. kernel-doc:: sound/core/hwdep.c
/Linux-v5.4/sound/usb/
Dmixer_quirks.c241 struct snd_hwdep *hwdep; in snd_usb_soundblaster_remote_init() local
254 err = snd_hwdep_new(mixer->chip->card, "SB remote control", 0, &hwdep); in snd_usb_soundblaster_remote_init()
257 snprintf(hwdep->name, sizeof(hwdep->name), in snd_usb_soundblaster_remote_init()
259 hwdep->iface = SNDRV_HWDEP_IFACE_SB_RC; in snd_usb_soundblaster_remote_init()
260 hwdep->private_data = mixer; in snd_usb_soundblaster_remote_init()
261 hwdep->ops.read = snd_usb_sbrc_hwdep_read; in snd_usb_soundblaster_remote_init()
262 hwdep->ops.poll = snd_usb_sbrc_hwdep_poll; in snd_usb_soundblaster_remote_init()
263 hwdep->exclusive = 1; in snd_usb_soundblaster_remote_init()
/Linux-v5.4/sound/pci/mixart/
Dmixart.h156 struct snd_hwdep *hwdep; /* DSP loader, only for the first card */ member

12