[alsa-devel] [PATCH] ALSA: Add support for TV-out to the jack reporting API

Mark Brown broonie at sirena.org.uk
Wed Dec 17 16:06:36 CET 2008


On Wed, Dec 17, 2008 at 03:48:38PM +0100, Takashi Iwai wrote:

> Can't we use a simple bit shift?  But, hum, it's not 1:1 mapping.

We could always use a bit shift and cope with the missing values.

> Simplifying the code like below might be still worth, though...

...

> +static int jack_types[] = {
> +	SW_HEADPHONE_INSERT, SW_MICROPHONE_INSERT, SW_LINEOUT_INSERT,
> +	SW_JACK_PHYSICAL_INSERT,
> +};

Yeah, I was trying to think of something that could end up in the
header more directly.


More information about the Alsa-devel mailing list