diff options
Diffstat (limited to 'include/sound/control.h')
-rw-r--r-- | include/sound/control.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/sound/control.h b/include/sound/control.h index b2796e83c7ac..8332e865c759 100644 --- a/include/sound/control.h +++ b/include/sound/control.h | |||
@@ -40,7 +40,7 @@ struct snd_kcontrol_new { | |||
40 | snd_ctl_elem_iface_t iface; /* interface identifier */ | 40 | snd_ctl_elem_iface_t iface; /* interface identifier */ |
41 | unsigned int device; /* device/client number */ | 41 | unsigned int device; /* device/client number */ |
42 | unsigned int subdevice; /* subdevice (substream) number */ | 42 | unsigned int subdevice; /* subdevice (substream) number */ |
43 | unsigned char *name; /* ASCII name of item */ | 43 | const unsigned char *name; /* ASCII name of item */ |
44 | unsigned int index; /* index of item */ | 44 | unsigned int index; /* index of item */ |
45 | unsigned int access; /* access rights */ | 45 | unsigned int access; /* access rights */ |
46 | unsigned int count; /* count of same elements */ | 46 | unsigned int count; /* count of same elements */ |
@@ -227,6 +227,11 @@ snd_ctl_add_slave_uncached(struct snd_kcontrol *master, | |||
227 | return _snd_ctl_add_slave(master, slave, SND_CTL_SLAVE_NEED_UPDATE); | 227 | return _snd_ctl_add_slave(master, slave, SND_CTL_SLAVE_NEED_UPDATE); |
228 | } | 228 | } |
229 | 229 | ||
230 | int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kctl, | ||
231 | void (*hook)(void *private_data, int), | ||
232 | void *private_data); | ||
233 | void snd_ctl_sync_vmaster_hook(struct snd_kcontrol *kctl); | ||
234 | |||
230 | /* | 235 | /* |
231 | * Helper functions for jack-detection controls | 236 | * Helper functions for jack-detection controls |
232 | */ | 237 | */ |