diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-11-02 08:36:06 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-11-16 11:14:03 +0100 |
commit | 35be544af367170a9c6bf63adcf9d0cb2d569dbb (patch) | |
tree | 7bcd2dabde3b3f950916962edb5c601482c00335 /include/sound | |
parent | 3a93897ea37cbb8277f8a4232c12c0c18168a7db (diff) | |
download | op-kernel-dev-35be544af367170a9c6bf63adcf9d0cb2d569dbb.zip op-kernel-dev-35be544af367170a9c6bf63adcf9d0cb2d569dbb.tar.gz |
ALSA: Introduce common helper functions for jack-detection control
Now move the helper function for creating and reporting the jack-detection
to the common place. The driver that needs this functionality should
select CONFIG_SND_KCTL_JACK kconfig.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/control.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/control.h b/include/sound/control.h index 1a94a21..b2796e8 100644 --- a/include/sound/control.h +++ b/include/sound/control.h @@ -227,4 +227,12 @@ snd_ctl_add_slave_uncached(struct snd_kcontrol *master, return _snd_ctl_add_slave(master, slave, SND_CTL_SLAVE_NEED_UPDATE); } +/* + * Helper functions for jack-detection controls + */ +struct snd_kcontrol * +snd_kctl_jack_new(const char *name, int idx, void *private_data); +void snd_kctl_jack_report(struct snd_card *card, + struct snd_kcontrol *kctl, bool status); + #endif /* __SOUND_CONTROL_H */ |