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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux