diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-07-28 19:05:35 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-07-29 21:32:03 +0200 |
commit | e76d8ceaaff9d7fc1ba2b1963a9f34151832223b (patch) | |
tree | 4041759593dbc10c35c96976e60ee759de3f9dbe /drivers/gpio/pcf857x.c | |
parent | 0b18cb1854152a62492aae088cb80cbeb5c0288d (diff) | |
download | blackbird-op-linux-e76d8ceaaff9d7fc1ba2b1963a9f34151832223b.tar.gz blackbird-op-linux-e76d8ceaaff9d7fc1ba2b1963a9f34151832223b.zip |
ALSA: Add jack reporting API
Currently very few systems provide information about jack status to user
space, even though many have hardware facilities to do detection. Those
systems that do use an input device with the existing SW_HEADPHONE_INSERT
switch type to do so, often independently of ALSA.
This patch introduces a standard method for representing jacks to user
space into ALSA. It allows drivers to register jacks for a sound card with
the input subsystem, binding the input device to the card to help user
space associate the input devices with their sound cards. The created
input devices are named in the form "card longname jack" where jack is
provided by the driver when allocating a jack. By default the parent for
the input device is the sound card but this can be overridden by the
card driver.
The existing user space API with SW_HEADPHONE_INSERT is preserved.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'drivers/gpio/pcf857x.c')
0 files changed, 0 insertions, 0 deletions