ALSA: Reduce boilerplate for new jack types
Use a lookup table rather than explicit code to map input subsystem jack types into ASoC ones, implemented as suggested by Takashi Iwai. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
@@ -30,6 +30,9 @@ struct input_dev;
|
||||
/**
|
||||
* Jack types which can be reported. These values are used as a
|
||||
* bitmask.
|
||||
*
|
||||
* Note that this must be kept in sync with the lookup table in
|
||||
* sound/core/jack.c.
|
||||
*/
|
||||
enum snd_jack_types {
|
||||
SND_JACK_HEADPHONE = 0x0001,
|
||||
|
||||
Reference in New Issue
Block a user