]> Pileus Git - ~andy/linux/commitdiff
ALSA: hda - Fix disordered enum definitions in patch_cirrus.c
authorTakashi Iwai <tiwai@suse.de>
Thu, 13 Sep 2012 07:56:57 +0000 (09:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 13 Sep 2012 07:59:44 +0000 (09:59 +0200)
Due to the definitions of CS420X_IMAC27_122 and CS420X_APPLE as
aliases, the rest enums are set to duplicated values unexpectedly.
Move the alias definitions at the end so that the enum values are
defined in the proper order.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c

index 82253f13735902a6c9ac5ea3c8c5cabbaf44ac9c..fcfc9f0a056b82fcbe9b7deafbef3b2c9516f6c4 100644 (file)
@@ -83,11 +83,12 @@ enum {
        CS420X_IMAC27,
        CS420X_GPIO_13,
        CS420X_GPIO_23,
-       CS420X_IMAC27_122 = CS420X_GPIO_23,
-       CS420X_APPLE = CS420X_GPIO_13,
        CS420X_MBP101,
        CS420X_MBP101_COEF,
        CS420X_AUTO,
+       /* aliases */
+       CS420X_IMAC27_122 = CS420X_GPIO_23,
+       CS420X_APPLE = CS420X_GPIO_13,
 };
 
 /* CS421x boards */