ALSA: Reduce boilerplate for new jack types
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 3 Jan 2009 16:56:56 +0000 (16:56 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 3 Jan 2009 17:02:21 +0000 (17:02 +0000)
commitbd8a71a7b0f50da9350d202d325c3926ffd6b189
tree8eb108c7a2eeb432dff8c7caad4589ca1f36cecb
parent6a94cb73064c952255336cc57731904174b2c58f
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>
include/sound/jack.h
sound/core/jack.c