Linux Audio

Check our new training course

Loading...
v5.14.15
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _LINUX_SOUND_H
 3#define _LINUX_SOUND_H
 4
 5#include <uapi/linux/sound.h>
 6
 7/*
 8 *	Sound core interface functions
 9 */
10 
11struct device;
12extern int register_sound_special(const struct file_operations *fops, int unit);
13extern int register_sound_special_device(const struct file_operations *fops, int unit, struct device *dev);
14extern int register_sound_mixer(const struct file_operations *fops, int dev);
 
15extern int register_sound_dsp(const struct file_operations *fops, int dev);
16
17extern void unregister_sound_special(int unit);
18extern void unregister_sound_mixer(int unit);
 
19extern void unregister_sound_dsp(int unit);
20#endif /* _LINUX_SOUND_H */
v4.6
 
 1#ifndef _LINUX_SOUND_H
 2#define _LINUX_SOUND_H
 3
 4#include <uapi/linux/sound.h>
 5
 6/*
 7 *	Sound core interface functions
 8 */
 9 
10struct device;
11extern int register_sound_special(const struct file_operations *fops, int unit);
12extern int register_sound_special_device(const struct file_operations *fops, int unit, struct device *dev);
13extern int register_sound_mixer(const struct file_operations *fops, int dev);
14extern int register_sound_midi(const struct file_operations *fops, int dev);
15extern int register_sound_dsp(const struct file_operations *fops, int dev);
16
17extern void unregister_sound_special(int unit);
18extern void unregister_sound_mixer(int unit);
19extern void unregister_sound_midi(int unit);
20extern void unregister_sound_dsp(int unit);
21#endif /* _LINUX_SOUND_H */