via_dmapos_patch
Subsystems (2)
I'm researching a few bugs where the user claims position_fix=1 helps the problem, but adding the quirk for that model surprisingly didn't. So looking at the code, I concluded that the difference was via_dmapos_patch, and that they all had via_dmapos_patch=1, and that via_dmapos_patch=0 helped them solve the problem. Three out of five (not all of them have reported back on via_dmapos_patch=0 yet) are VIA controllers rev 10.
So we now have VIA controllers that need via_dmapos_patch=0.
I can think of a few approaches here:
1) since position_fix=1 implicitly sets via_dmapos_patch to 0 (maybe unintentionally), we should add a position_fix=3 meaning lpib + via_dmapos_patch=1
2) figure if something has changed recently (as in "within the last year"...) that has made via_dmapos_patch=1 work worse than before
3) figure out if there are several ATI/VIA controllers that actually never wants the patch.
Any thoughts?
Signature · 2 lines
David Henningsson, Canonical Ltd. http://launchpad.net/~diwic
At Wed, 29 Sep 2010 10:14:49 +0200,
Quoted 17 lines · David Henningsson
I'm researching a few bugs where the user claims position_fix=1 helps the problem, but adding the quirk for that model surprisingly didn't. So looking at the code, I concluded that the difference was
via_dmapos_patch, and that they all had via_dmapos_patch=1, and that via_dmapos_patch=0 helped them solve the problem. Three out of five (not all of them have reported back on via_dmapos_patch=0 yet) are VIA controllers rev 10.So we now have VIA controllers that need via_dmapos_patch=0.
I can think of a few approaches here:
1) since position_fix=1 implicitly sets
via_dmapos_patchto 0 (maybe unintentionally), we should add a position_fix=3 meaning lpib + via_dmapos_patch=1
Quoted 7 lines
2) figure if something has changed recently (as in "within the last year"...) that has made via_dmapos_patch=1 work worse than before
3) figure out if there are several ATI/VIA controllers that actually never wants the patch.
Any thoughts?
All sound as reasonable proposals.
The 1 is easy. David, could you care to send a patch?
2 and 3 aren't trivial, but we can start by disabling via_dmapos for recent revisions. Since it can be controlled over a module option by the fix 1, it'll be easier to check the regression.
thanks,
Takashi
Quoted 12 lines · Takashi Iwai
At Wed, 29 Sep 2010 10:14:49 +0200,
Quoted 10 lines · David Henningsson
I'm researching a few bugs where the user claims position_fix=1 helps the problem, but adding the quirk for that model surprisingly didn't. So looking at the code, I concluded that the difference was
via_dmapos_patch, and that they all had via_dmapos_patch=1, and that via_dmapos_patch=0 helped them solve the problem. Three out of five (not all of them have reported back on via_dmapos_patch=0 yet) are VIA controllers rev 10.So we now have VIA controllers that need via_dmapos_patch=0.
I'm cc:ing Joseph here. You were the one writing via_dmapos_patch originally, could you confirm the suspicion that VIA controller rev 10 (and possibly more) actually should have via_dmapos_patch turned off?
Quoted 10 lines
Quoted 10 lines
I can think of a few approaches here:
1) since position_fix=1 implicitly sets
via_dmapos_patchto 0 (maybe unintentionally), we should add a position_fix=3 meaning lpib + via_dmapos_patch=12) figure if something has changed recently (as in "within the last year"...) that has made via_dmapos_patch=1 work worse than before
Quoted 7 lines
Quoted 4 lines
3) figure out if there are several ATI/VIA controllers that actually never wants the patch.
Any thoughts?
All sound as reasonable proposals.
The 1 is easy. David, could you care to send a patch?'
Something like this (untested)?
Quoted 3 lines
2 and 3 aren't trivial, but we can start by disabling
via_dmaposfor recent revisions.Since it can be controlled over a module option by the fix 1, it'll be easier to check the regression.
Signature · 2 lines
David Henningsson, Canonical Ltd. http://launchpad.net/~diwic
Quoted 1 line
From
14a55f26024bc6f2e7c16c3c0bd21a4793b3d5b8Mon Sep 17 00:00:00 2001
From: David Henningsson <[email protected]>
Date: Thu, 30 Sep 2010 10:12:50 +0200
Subject: [PATCH] ALSA: HDA: Add position_fix=3 module option, and refactor related code
What was previously known as via_dmapos_patch, and hard-coded to be used for VIA and ATI controllers, is now configurable through a module option. The background is that some VIA controllers seem to prefer via_dmapos_patch to be turned off.
--- Documentation/sound/alsa/HD-Audio.txt | 8 ++++-- sound/pci/hda/hda_intel.c | 41 +++++++++++++++----------------- 2 files changed, 24 insertions(+), 25 deletions(-)
Documentation/sound/alsa/HD-Audio.txt +5 -3
@@ -57,9 +57,11 @@ dead. However, this detection isn't perfect on some devices. In such a case, you can change the default method via `position_fix` option. `position_fix=1` means to use LPIB method explicitly. -`position_fix=2` means to use the position-buffer. 0 is the default -value, the automatic check and fallback to LPIB as described in the -above. If you get a problem of repeated sounds, this option might +`position_fix=2` means to use the position-buffer. +`position_fix=3` means to use a combination of both methods, needed +for some VIA and ATI controllers. 0 is the default value for all other +controllers, the automatic check and fallback to LPIB as described in +the above. If you get a problem of repeated sounds, this option might help. In addition to that, every controller is known to be broken regarding
sound/pci/hda/hda_intel.c +19 -22
88 lines not on this page · raw message
Signature · 1 line
1.7.1
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Thu, 30 Sep 2010 10:39:30 +0200,
Quoted 32 lines · David Henningsson
Quoted 12 lines · Takashi Iwai
At Wed, 29 Sep 2010 10:14:49 +0200,
Quoted 10 lines · David Henningsson
I'm researching a few bugs where the user claims position_fix=1 helps the problem, but adding the quirk for that model surprisingly didn't. So looking at the code, I concluded that the difference was
via_dmapos_patch, and that they all had via_dmapos_patch=1, and that via_dmapos_patch=0 helped them solve the problem. Three out of five (not all of them have reported back on via_dmapos_patch=0 yet) are VIA controllers rev 10.So we now have VIA controllers that need via_dmapos_patch=0.
I'm cc:ing Joseph here. You were the one writing
via_dmapos_patchoriginally, could you confirm the suspicion that VIA controller rev 10 (and possibly more) actually should havevia_dmapos_patchturned off?Quoted 13 lines
Quoted 13 lines
I can think of a few approaches here:
1) since position_fix=1 implicitly sets
via_dmapos_patchto 0 (maybe unintentionally), we should add a position_fix=3 meaning lpib + via_dmapos_patch=12) figure if something has changed recently (as in "within the last year"...) that has made via_dmapos_patch=1 work worse than before
3) figure out if there are several ATI/VIA controllers that actually never wants the patch.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Any thoughts?
All sound as reasonable proposals.
The 1 is easy. David, could you care to send a patch?'Something like this (untested)?
Looks good. Applied now.
thanks,
Takashi