Commit d3bd67cd authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

ALSA: make snd_ctl_elem_read() and snd_ctl_elem_write() static

snd_ctl_elem_read() and snd_ctl_elem_write() are no longer used by
any other drivers.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 149b1544
...@@ -129,9 +129,6 @@ int snd_ctl_unregister_ioctl_compat(snd_kctl_ioctl_func_t fcn); ...@@ -129,9 +129,6 @@ int snd_ctl_unregister_ioctl_compat(snd_kctl_ioctl_func_t fcn);
#define snd_ctl_unregister_ioctl_compat(fcn) #define snd_ctl_unregister_ioctl_compat(fcn)
#endif #endif
int snd_ctl_elem_read(struct snd_card *card, struct snd_ctl_elem_value *control);
int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, struct snd_ctl_elem_value *control);
static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id)
{ {
return id->numid - kctl->id.numid; return id->numid - kctl->id.numid;
......
...@@ -684,7 +684,8 @@ static int snd_ctl_elem_info_user(struct snd_ctl_file *ctl, ...@@ -684,7 +684,8 @@ static int snd_ctl_elem_info_user(struct snd_ctl_file *ctl,
return result; return result;
} }
int snd_ctl_elem_read(struct snd_card *card, struct snd_ctl_elem_value *control) static int snd_ctl_elem_read(struct snd_card *card,
struct snd_ctl_elem_value *control)
{ {
struct snd_kcontrol *kctl; struct snd_kcontrol *kctl;
struct snd_kcontrol_volatile *vd; struct snd_kcontrol_volatile *vd;
...@@ -734,7 +735,7 @@ static int snd_ctl_elem_read_user(struct snd_card *card, ...@@ -734,7 +735,7 @@ static int snd_ctl_elem_read_user(struct snd_card *card,
return result; return result;
} }
int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file,
struct snd_ctl_elem_value *control) struct snd_ctl_elem_value *control)
{ {
struct snd_kcontrol *kctl; struct snd_kcontrol *kctl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment