From: Takashi Iwai Date: Thu, 13 Sep 2012 07:56:57 +0000 (+0200) Subject: ALSA: hda - Fix disordered enum definitions in patch_cirrus.c X-Git-Tag: accepted/tizen/common/20141203.182822~3608^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03efce755cf1b4cf1c14007e118dd1671e39f862;p=platform%2Fkernel%2Flinux-arm64.git ALSA: hda - Fix disordered enum definitions in patch_cirrus.c 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 82253f1..fcfc9f0 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c @@ -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 */