ALSA: HDA: Correctly apply position_fix quirks for ATI and VIA controllers
authorDavid Henningsson <david.henningsson@canonical.com>
Mon, 4 Oct 2010 10:02:14 +0000 (12:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Oct 2010 11:05:02 +0000 (13:05 +0200)
Position_fix quirks for specific machines now override the default
position_fix behavior for all HDA controllers.

BugLink: http://launchpad.net/bugs/465942
BugLink: http://launchpad.net/bugs/580749
BugLink: http://launchpad.net/bugs/587546
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c

index 38b063eb80e9d1324af26794038b8f65180dccf1..5cbea85a6453cf35828fd70b5092e4c2f297cc64 100644 (file)
@@ -2315,14 +2315,6 @@ static int __devinit check_position_fix(struct azx *chip, int fix)
                return fix;
        }
 
-       /* Check VIA/ATI HD Audio Controller exist */
-       switch (chip->driver_type) {
-       case AZX_DRIVER_VIA:
-       case AZX_DRIVER_ATI:
-               /* Use link position directly, avoid any transfer problem. */
-               return POS_FIX_VIACOMBO;
-       }
-
        q = snd_pci_quirk_lookup(chip->pci, position_fix_list);
        if (q) {
                printk(KERN_INFO
@@ -2331,6 +2323,15 @@ static int __devinit check_position_fix(struct azx *chip, int fix)
                       q->value, q->subvendor, q->subdevice);
                return q->value;
        }
+
+       /* Check VIA/ATI HD Audio Controller exist */
+       switch (chip->driver_type) {
+       case AZX_DRIVER_VIA:
+       case AZX_DRIVER_ATI:
+               /* Use link position directly, avoid any transfer problem. */
+               return POS_FIX_VIACOMBO;
+       }
+
        return POS_FIX_AUTO;
 }