ALSA: hda - Rearrange INPUT_PIN_ATTR_*
authorTakashi Iwai <tiwai@suse.de>
Wed, 28 Nov 2012 17:11:59 +0000 (18:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:30:48 +0000 (08:30 +0100)
commit5ec16d12c896b6ea710ac74e68e2f431c80d1c62
tree5bc2ac2a521e384af768b75ff751d4b09bedec2b
parent7e35dd3d6b7eeeb46f8b82a552fefb7cce3f7580
ALSA: hda - Rearrange INPUT_PIN_ATTR_*

Put INPUT_PIN_ATTR_FRONT after INPUT_PIN_ATTR_REAR, and define
INPUT_PIN_ATTR_LAST to point to the last element.

This is a preliminary work for cleaning up Realtek auto-mic parser.
In the auto-mic implementation, the front panel is preferred over the
rear panel.  By arranging the attr definitions like in this commit, we
can simply use sort() for figuring out the priority order.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_auto_parser.c
sound/pci/hda/hda_auto_parser.h
sound/pci/hda/patch_via.c