17 Dec
2008
17 Dec
'08
4:06 p.m.
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.