diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-05-20 16:29:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-03 09:32:15 +0900 |
commit | 3ad8305aab787b2acc690a6e756e9fb594ab0c27 (patch) | |
tree | c5252a0bcb191f8da42a8d2a8c9b42f1208d8565 /sound | |
parent | eff306d801588164b2763139ff98d57c3ba862aa (diff) | |
download | linux-stable-3ad8305aab787b2acc690a6e756e9fb594ab0c27.tar.gz linux-stable-3ad8305aab787b2acc690a6e756e9fb594ab0c27.tar.bz2 linux-stable-3ad8305aab787b2acc690a6e756e9fb594ab0c27.zip |
ALSA: hda - Use LPIB for ATI/AMD chipsets as default
commit 50e3bbf9898840eead86f90a43b3625a2b2f4112 upstream.
ATI and AMD chipsets seem not providing the proper position-buffer
information, and it also doesn't provide FIFO register required by
VIACOMBO fix. It's better to use LPIB for these.
Reported-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 70a9d32f0e96..f5cad7c087b7 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2349,9 +2349,16 @@ static int __devinit check_position_fix(struct azx *chip, int 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; + case AZX_DRIVER_ATI: + /* ATI chipsets don't work well with position-buffer */ + return POS_FIX_LPIB; + case AZX_DRIVER_GENERIC: + /* AMD chipsets also don't work with position-buffer */ + if (chip->pci->vendor == PCI_VENDOR_ID_AMD) + return POS_FIX_LPIB; + break; } return POS_FIX_AUTO; |