Skip to content

Commit

Permalink
ALSA: hda - Fix disordered enum definitions in patch_cirrus.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Sep 13, 2012
1 parent ef596a5 commit 03efce7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sound/pci/hda/patch_cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 03efce7

Please sign in to comment.