All of lore.kernel.org
 help / color / mirror / Atom feed
* [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
@ 2010-04-13 21:54 Éric Piel
  2010-04-14  6:08 ` Takashi Iwai
  2010-04-16 14:55 ` Maciej Rutecki
  0 siblings, 2 replies; 21+ messages in thread
From: Éric Piel @ 2010-04-13 21:54 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai
  Cc: Rafael J. Wysocki, Linux Kernel Mailing List, alsa-devel

Hello,

Since 2.6.34-rc*, I have a regression on alsa which prevents the sound
to be played correctly. When playing, the music goes too fast, skipping
some parts. Typically, it's very easy to reproduce by doing:
time mplayer -endpos 30 sound-file-which-lasts-more-than-thirty-sec.mp3

If the wall clock is less than 30s, you have the bug. With my intel-hda
(AD1981), it's reliably reproducible: it gives ~27s, instead of the
normal ~31s.

After bisection, it turns out that it is commit
7b3a177b0d4f92b3431b8dca777313a07533a710, aka "ALSA: pcm_lib: fix
"something must be really wrong" condition" which caused this
regression. Reverting it on top of 2.6.34-rc3+ fixes the problem.

Let me know if you need more info,
Cheers,
Eric

PS: For the info, the bisection was especially hard to do because about
80 alsa commits around the faulty one were all applied on kernel
versions which did not boot on my laptop. On top of the first known bad
I had to revert all of them, and run an "invert bisection" on it...
Enjoy the bisection result ;-)

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-13 21:54 [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0 Éric Piel
@ 2010-04-14  6:08 ` Takashi Iwai
  2010-04-14 11:22   ` Éric Piel
  2010-04-16 14:55 ` Maciej Rutecki
  1 sibling, 1 reply; 21+ messages in thread
From: Takashi Iwai @ 2010-04-14  6:08 UTC (permalink / raw)
  To: Éric Piel
  Cc: Jaroslav Kysela, Rafael J. Wysocki, Linux Kernel Mailing List,
	alsa-devel

At Tue, 13 Apr 2010 23:54:26 +0200,
Éric Piel wrote:
> 
> Hello,
> 
> Since 2.6.34-rc*, I have a regression on alsa which prevents the sound
> to be played correctly. When playing, the music goes too fast, skipping
> some parts. Typically, it's very easy to reproduce by doing:
> time mplayer -endpos 30 sound-file-which-lasts-more-than-thirty-sec.mp3
> 
> If the wall clock is less than 30s, you have the bug. With my intel-hda
> (AD1981), it's reliably reproducible: it gives ~27s, instead of the
> normal ~31s.
> 
> After bisection, it turns out that it is commit
> 7b3a177b0d4f92b3431b8dca777313a07533a710, aka "ALSA: pcm_lib: fix
> "something must be really wrong" condition" which caused this
> regression. Reverting it on top of 2.6.34-rc3+ fixes the problem.

What happens if you pass position_fix=1 option to snd-hda-intel?
Is it via PulseAudio or other backend?


thanks,

Takashi

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-14  6:08 ` Takashi Iwai
@ 2010-04-14 11:22   ` Éric Piel
  2010-04-14 11:54     ` Éric Piel
  2010-04-14 16:01     ` Takashi Iwai
  0 siblings, 2 replies; 21+ messages in thread
From: Éric Piel @ 2010-04-14 11:22 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Jaroslav Kysela, Rafael J. Wysocki, Linux Kernel Mailing List,
	alsa-devel

On 14/04/10 08:08, Takashi Iwai wrote:
> At Tue, 13 Apr 2010 23:54:26 +0200,
> Éric Piel wrote:
>>
>> Hello,
>>
>> Since 2.6.34-rc*, I have a regression on alsa which prevents the sound
>> to be played correctly. When playing, the music goes too fast, skipping
>> some parts. Typically, it's very easy to reproduce by doing:
>> time mplayer -endpos 30 sound-file-which-lasts-more-than-thirty-sec.mp3
>>
>> If the wall clock is less than 30s, you have the bug. With my intel-hda
>> (AD1981), it's reliably reproducible: it gives ~27s, instead of the
>> normal ~31s.
>>
>> After bisection, it turns out that it is commit
>> 7b3a177b0d4f92b3431b8dca777313a07533a710, aka "ALSA: pcm_lib: fix
>> "something must be really wrong" condition" which caused this
>> regression. Reverting it on top of 2.6.34-rc3+ fixes the problem.
> 
> What happens if you pass position_fix=1 option to snd-hda-intel?
Oh! Very good remark...
I've just noticed that I had an option already on the module:
bdl_pos_adj=0. It seems it's not needed anymore to get my card working
fine. If I remove every option (leaving bdl_pos_adj to the default value
1), it works fine. If I put bdl_pos_adj=0 and position_fix=1, it works
fine again.

I don't fully grasp the meaning of bdl_pos_adj, so I don't know if it's
a bug to not play correctly when forcing it to 0. Is it?

I'll ask to another reporter who had the same problem if bdl_pos_adj is
also set to 0...

> Is it via PulseAudio or other backend?
This happens both with pulseaudio, oss and alsa (in which case it plays
the 30s clip in 12s).

Eric

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-14 11:22   ` Éric Piel
@ 2010-04-14 11:54     ` Éric Piel
  2010-04-14 13:39         ` Takashi Iwai
  2010-04-14 16:01     ` Takashi Iwai
  1 sibling, 1 reply; 21+ messages in thread
From: Éric Piel @ 2010-04-14 11:54 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Jaroslav Kysela, Rafael J. Wysocki, Linux Kernel Mailing List,
	alsa-devel, Frank Griffin

On 14/04/10 13:22, Éric Piel wrote:
:
> I don't fully grasp the meaning of bdl_pos_adj, so I don't know if it's
> a bug to not play correctly when forcing it to 0. Is it?
> 
> I'll ask to another reporter who had the same problem if bdl_pos_adj is
> also set to 0...
Frank (cc'd here) has the same problem of music going too fast (on a
2.6.33 kernel with the "culprit" commit applied). On his system  "cat
/sys/module/snd_hda_intel/parameters/bdl_pos_adj" gives:
32,32,-1,-1,-1,-1,-1,-1

He also mentioned that on another system also using snd_hda_intel, with
the same bdl_pos_adj, it works fine.

Eric

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-14 11:54     ` Éric Piel
@ 2010-04-14 13:39         ` Takashi Iwai
  0 siblings, 0 replies; 21+ messages in thread
From: Takashi Iwai @ 2010-04-14 13:39 UTC (permalink / raw)
  To: Éric Piel
  Cc: Jaroslav Kysela, Rafael J. Wysocki, Linux Kernel Mailing List,
	alsa-devel, Frank Griffin

At Wed, 14 Apr 2010 13:54:48 +0200,
Éric Piel wrote:
> 
> On 14/04/10 13:22, Éric Piel wrote:
> :
> > I don't fully grasp the meaning of bdl_pos_adj, so I don't know if it's
> > a bug to not play correctly when forcing it to 0. Is it?
> > 
> > I'll ask to another reporter who had the same problem if bdl_pos_adj is
> > also set to 0...
> Frank (cc'd here) has the same problem of music going too fast (on a
> 2.6.33 kernel with the "culprit" commit applied). On his system  "cat
> /sys/module/snd_hda_intel/parameters/bdl_pos_adj" gives:
> 32,32,-1,-1,-1,-1,-1,-1
> 
> He also mentioned that on another system also using snd_hda_intel, with
> the same bdl_pos_adj, it works fine.

bdl_pos_adj is really a workaround for devices that report wrong DMA
position (or at the wrong timing).  I guess position_fix=1 may fix
better.

Although the driver already has a dynamic switching of position_fix
method, it checks only the very first read.  If it gives a (more or
less) sane value, it prefers the position-buffer method (corresponding
to position_fix=2) rather than reading LPIB register
(position_fix=1).

It seems, however, that more devices work sanely with LPIB reg
nowdays.  This wasn't the case formerly.  So, it might be better to
use position_fix=1 as default for modern systems...


Takashi

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
@ 2010-04-14 13:39         ` Takashi Iwai
  0 siblings, 0 replies; 21+ messages in thread
From: Takashi Iwai @ 2010-04-14 13:39 UTC (permalink / raw)
  To: Éric Piel
  Cc: Rafael J. Wysocki, Frank Griffin, alsa-devel, Linux Kernel Mailing List

At Wed, 14 Apr 2010 13:54:48 +0200,
Éric Piel wrote:
> 
> On 14/04/10 13:22, Éric Piel wrote:
> :
> > I don't fully grasp the meaning of bdl_pos_adj, so I don't know if it's
> > a bug to not play correctly when forcing it to 0. Is it?
> > 
> > I'll ask to another reporter who had the same problem if bdl_pos_adj is
> > also set to 0...
> Frank (cc'd here) has the same problem of music going too fast (on a
> 2.6.33 kernel with the "culprit" commit applied). On his system  "cat
> /sys/module/snd_hda_intel/parameters/bdl_pos_adj" gives:
> 32,32,-1,-1,-1,-1,-1,-1
> 
> He also mentioned that on another system also using snd_hda_intel, with
> the same bdl_pos_adj, it works fine.

bdl_pos_adj is really a workaround for devices that report wrong DMA
position (or at the wrong timing).  I guess position_fix=1 may fix
better.

Although the driver already has a dynamic switching of position_fix
method, it checks only the very first read.  If it gives a (more or
less) sane value, it prefers the position-buffer method (corresponding
to position_fix=2) rather than reading LPIB register
(position_fix=1).

It seems, however, that more devices work sanely with LPIB reg
nowdays.  This wasn't the case formerly.  So, it might be better to
use position_fix=1 as default for modern systems...


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-14 13:39         ` Takashi Iwai
  (?)
@ 2010-04-14 14:36         ` Éric Piel
  2010-04-14 15:39           ` Frank Griffin
  -1 siblings, 1 reply; 21+ messages in thread
From: Éric Piel @ 2010-04-14 14:36 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Jaroslav Kysela, Rafael J. Wysocki, Linux Kernel Mailing List,
	alsa-devel, Frank Griffin

On 14/04/10 15:39, Takashi Iwai wrote:
:
> 
> bdl_pos_adj is really a workaround for devices that report wrong DMA
> position (or at the wrong timing).  I guess position_fix=1 may fix
> better.
> 
> Although the driver already has a dynamic switching of position_fix
> method, it checks only the very first read.  If it gives a (more or
> less) sane value, it prefers the position-buffer method (corresponding
> to position_fix=2) rather than reading LPIB register
> (position_fix=1).
> 
> It seems, however, that more devices work sanely with LPIB reg
> nowdays.  This wasn't the case formerly.  So, it might be better to
> use position_fix=1 as default for modern systems...
Frank,
Could you check that for you too adding "position_fix=1" fixes the problem?

To do so, edit /etc/modprobe.conf and add this line at end:
options snd-hda-intel position_fix=1

You need to reboot for this to be taken into account.

Cheers,
Eric

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-14 14:36         ` Éric Piel
@ 2010-04-14 15:39           ` Frank Griffin
  2010-04-14 16:02               ` Takashi Iwai
  0 siblings, 1 reply; 21+ messages in thread
From: Frank Griffin @ 2010-04-14 15:39 UTC (permalink / raw)
  To: Éric Piel
  Cc: Takashi Iwai, Jaroslav Kysela, Rafael J. Wysocki,
	Linux Kernel Mailing List, alsa-devel

Éric Piel wrote:
> Frank,
> Could you check that for you too adding "position_fix=1" fixes the problem?
>
> To do so, edit /etc/modprobe.conf and add this line at end:
> options snd-hda-intel position_fix=1
>
> You need to reboot for this to be taken into account.
>
>   
That fixes not only the playback speed, but also the fact that the 
failing system had no sound since the problem started (the acceleration 
was noticed in movie playback).

Thanks !

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-14 11:22   ` Éric Piel
  2010-04-14 11:54     ` Éric Piel
@ 2010-04-14 16:01     ` Takashi Iwai
  2010-04-15 21:19       ` Éric Piel
  1 sibling, 1 reply; 21+ messages in thread
From: Takashi Iwai @ 2010-04-14 16:01 UTC (permalink / raw)
  To: Éric Piel
  Cc: Jaroslav Kysela, Rafael J. Wysocki, Linux Kernel Mailing List,
	alsa-devel

At Wed, 14 Apr 2010 13:22:14 +0200,
Éric Piel wrote:
> 
> On 14/04/10 08:08, Takashi Iwai wrote:
> > At Tue, 13 Apr 2010 23:54:26 +0200,
> > Éric Piel wrote:
> >>
> >> Hello,
> >>
> >> Since 2.6.34-rc*, I have a regression on alsa which prevents the sound
> >> to be played correctly. When playing, the music goes too fast, skipping
> >> some parts. Typically, it's very easy to reproduce by doing:
> >> time mplayer -endpos 30 sound-file-which-lasts-more-than-thirty-sec.mp3
> >>
> >> If the wall clock is less than 30s, you have the bug. With my intel-hda
> >> (AD1981), it's reliably reproducible: it gives ~27s, instead of the
> >> normal ~31s.
> >>
> >> After bisection, it turns out that it is commit
> >> 7b3a177b0d4f92b3431b8dca777313a07533a710, aka "ALSA: pcm_lib: fix
> >> "something must be really wrong" condition" which caused this
> >> regression. Reverting it on top of 2.6.34-rc3+ fixes the problem.
> > 
> > What happens if you pass position_fix=1 option to snd-hda-intel?
> Oh! Very good remark...
> I've just noticed that I had an option already on the module:
> bdl_pos_adj=0. It seems it's not needed anymore to get my card working
> fine. If I remove every option (leaving bdl_pos_adj to the default value
> 1), it works fine. If I put bdl_pos_adj=0 and position_fix=1, it works
> fine again.
> 
> I don't fully grasp the meaning of bdl_pos_adj, so I don't know if it's
> a bug to not play correctly when forcing it to 0. Is it?

It might be that this was for reducing the load by position
correction mechanism.  You might see the hd-audio kernel thread in a
high CPU usage.  This might be fixed also by position_fix=1, though. 


thanks,

Takashi

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-14 15:39           ` Frank Griffin
@ 2010-04-14 16:02               ` Takashi Iwai
  0 siblings, 0 replies; 21+ messages in thread
From: Takashi Iwai @ 2010-04-14 16:02 UTC (permalink / raw)
  To: ftg
  Cc: Éric Piel, Jaroslav Kysela, Rafael J. Wysocki,
	Linux Kernel Mailing List, alsa-devel

At Wed, 14 Apr 2010 11:39:08 -0400,
Frank Griffin wrote:
> 
> Éric Piel wrote:
> > Frank,
> > Could you check that for you too adding "position_fix=1" fixes the problem?
> >
> > To do so, edit /etc/modprobe.conf and add this line at end:
> > options snd-hda-intel position_fix=1
> >
> > You need to reboot for this to be taken into account.
> >
> >   
> That fixes not only the playback speed, but also the fact that the 
> failing system had no sound since the problem started (the acceleration 
> was noticed in movie playback).

OK, so position_fix=1 seems mandatory for your device.

Could you give alsa-info.sh output (run with --no-upload option) so
that I can add a quirk entry for your machine?


thanks,

Takashi

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
@ 2010-04-14 16:02               ` Takashi Iwai
  0 siblings, 0 replies; 21+ messages in thread
From: Takashi Iwai @ 2010-04-14 16:02 UTC (permalink / raw)
  To: ftg
  Cc: Rafael J. Wysocki, alsa-devel, Éric Piel, Linux Kernel Mailing List

At Wed, 14 Apr 2010 11:39:08 -0400,
Frank Griffin wrote:
> 
> Éric Piel wrote:
> > Frank,
> > Could you check that for you too adding "position_fix=1" fixes the problem?
> >
> > To do so, edit /etc/modprobe.conf and add this line at end:
> > options snd-hda-intel position_fix=1
> >
> > You need to reboot for this to be taken into account.
> >
> >   
> That fixes not only the playback speed, but also the fact that the 
> failing system had no sound since the problem started (the acceleration 
> was noticed in movie playback).

OK, so position_fix=1 seems mandatory for your device.

Could you give alsa-info.sh output (run with --no-upload option) so
that I can add a quirk entry for your machine?


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-14 16:01     ` Takashi Iwai
@ 2010-04-15 21:19       ` Éric Piel
  2010-04-16  7:53           ` Takashi Iwai
                           ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Éric Piel @ 2010-04-15 21:19 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Jaroslav Kysela, Rafael J. Wysocki, Linux Kernel Mailing List,
	alsa-devel, Frank Griffin

Op 14-04-10 18:01, Takashi Iwai schreef:
:
>>
>> I don't fully grasp the meaning of bdl_pos_adj, so I don't know if it's
>> a bug to not play correctly when forcing it to 0. Is it?
> 
> It might be that this was for reducing the load by position
> correction mechanism.  You might see the hd-audio kernel thread in a
> high CPU usage.  This might be fixed also by position_fix=1, though. 
Yes, I had added this option after a regression in the previous kernel
which causes the hd-audio thread to take 50% of a CPU. Eventually, it
was fixed and not needed anymore. So I guess in the case of my laptop,
this is not really a regression, because everything is fine with the
default values.

In the case of Frank, this looks more like a regression, or at least a
bug to solve, because this happens with the default options. However,
this report should be taken with care, because this happens on a
2.6.33.2 kernel made by Mandriva, containing many alsa patches of
2.6.34. Frank, how possible would it be to test a 2.6.34-rc4 kernel from
Linus?

If this bug is confirmed, Takashi, do you know any way to choose
automatically position_fix=1 when needed?

See you,
Eric

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-15 21:19       ` Éric Piel
@ 2010-04-16  7:53           ` Takashi Iwai
  2010-04-16 10:33         ` Frank Griffin
  2010-04-17 15:21         ` Frank Griffin
  2 siblings, 0 replies; 21+ messages in thread
From: Takashi Iwai @ 2010-04-16  7:53 UTC (permalink / raw)
  To: Éric Piel
  Cc: Jaroslav Kysela, Rafael J. Wysocki, Linux Kernel Mailing List,
	alsa-devel, Frank Griffin

At Thu, 15 Apr 2010 23:19:33 +0200,
Éric Piel wrote:
> 
> Op 14-04-10 18:01, Takashi Iwai schreef:
> :
> >>
> >> I don't fully grasp the meaning of bdl_pos_adj, so I don't know if it's
> >> a bug to not play correctly when forcing it to 0. Is it?
> > 
> > It might be that this was for reducing the load by position
> > correction mechanism.  You might see the hd-audio kernel thread in a
> > high CPU usage.  This might be fixed also by position_fix=1, though. 
> Yes, I had added this option after a regression in the previous kernel
> which causes the hd-audio thread to take 50% of a CPU. Eventually, it
> was fixed and not needed anymore. So I guess in the case of my laptop,
> this is not really a regression, because everything is fine with the
> default values.
> 
> In the case of Frank, this looks more like a regression, or at least a
> bug to solve, because this happens with the default options. However,
> this report should be taken with care, because this happens on a
> 2.6.33.2 kernel made by Mandriva, containing many alsa patches of
> 2.6.34. Frank, how possible would it be to test a 2.6.34-rc4 kernel from
> Linus?
> 
> If this bug is confirmed, Takashi, do you know any way to choose
> automatically position_fix=1 when needed?

There is a quirk table in sound/pci/hda_intel.c to check PCI SSID.
I already added an entry for Frank's machine on sound git tree which
will be included in the pull request I'm going to send soon.
(Sorry the mail went outside since Frank's reply was private.)


thanks,

Takashi

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
@ 2010-04-16  7:53           ` Takashi Iwai
  0 siblings, 0 replies; 21+ messages in thread
From: Takashi Iwai @ 2010-04-16  7:53 UTC (permalink / raw)
  To: Éric Piel
  Cc: Rafael J. Wysocki, Frank Griffin, alsa-devel, Linux Kernel Mailing List

At Thu, 15 Apr 2010 23:19:33 +0200,
Éric Piel wrote:
> 
> Op 14-04-10 18:01, Takashi Iwai schreef:
> :
> >>
> >> I don't fully grasp the meaning of bdl_pos_adj, so I don't know if it's
> >> a bug to not play correctly when forcing it to 0. Is it?
> > 
> > It might be that this was for reducing the load by position
> > correction mechanism.  You might see the hd-audio kernel thread in a
> > high CPU usage.  This might be fixed also by position_fix=1, though. 
> Yes, I had added this option after a regression in the previous kernel
> which causes the hd-audio thread to take 50% of a CPU. Eventually, it
> was fixed and not needed anymore. So I guess in the case of my laptop,
> this is not really a regression, because everything is fine with the
> default values.
> 
> In the case of Frank, this looks more like a regression, or at least a
> bug to solve, because this happens with the default options. However,
> this report should be taken with care, because this happens on a
> 2.6.33.2 kernel made by Mandriva, containing many alsa patches of
> 2.6.34. Frank, how possible would it be to test a 2.6.34-rc4 kernel from
> Linus?
> 
> If this bug is confirmed, Takashi, do you know any way to choose
> automatically position_fix=1 when needed?

There is a quirk table in sound/pci/hda_intel.c to check PCI SSID.
I already added an entry for Frank's machine on sound git tree which
will be included in the pull request I'm going to send soon.
(Sorry the mail went outside since Frank's reply was private.)


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-15 21:19       ` Éric Piel
  2010-04-16  7:53           ` Takashi Iwai
@ 2010-04-16 10:33         ` Frank Griffin
  2010-04-17 15:21         ` Frank Griffin
  2 siblings, 0 replies; 21+ messages in thread
From: Frank Griffin @ 2010-04-16 10:33 UTC (permalink / raw)
  To: Éric Piel
  Cc: Takashi Iwai, Jaroslav Kysela, Rafael J. Wysocki,
	Linux Kernel Mailing List, alsa-devel

Éric Piel wrote:
> In the case of Frank, this looks more like a regression, or at least a
> bug to solve, because this happens with the default options. However,
> this report should be taken with care, because this happens on a
> 2.6.33.2 kernel made by Mandriva, containing many alsa patches of
> 2.6.34. Frank, how possible would it be to test a 2.6.34-rc4 kernel from
> Linus?
>
>   
I'll try to do this over the weekend...

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-16  7:53           ` Takashi Iwai
  (?)
@ 2010-04-16 10:35           ` Frank Griffin
  -1 siblings, 0 replies; 21+ messages in thread
From: Frank Griffin @ 2010-04-16 10:35 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Éric Piel, Jaroslav Kysela, Rafael J. Wysocki,
	Linux Kernel Mailing List, alsa-devel

Takashi Iwai wrote:
> There is a quirk table in sound/pci/hda_intel.c to check PCI SSID.
> I already added an entry for Frank's machine on sound git tree which
> will be included in the pull request I'm going to send soon.
> (Sorry the mail went outside since Frank's reply was private.)
>   
Not a problem, I just didn't want to spam the others with the rather 
large command output :)

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-13 21:54 [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0 Éric Piel
  2010-04-14  6:08 ` Takashi Iwai
@ 2010-04-16 14:55 ` Maciej Rutecki
  1 sibling, 0 replies; 21+ messages in thread
From: Maciej Rutecki @ 2010-04-16 14:55 UTC (permalink / raw)
  To: Éric Piel; +Cc: Linux Kernel Mailing List

On wtorek, 13 kwietnia 2010 o 23:54:26 Éric Piel wrote:
> Hello,
> 
> Since 2.6.34-rc*, I have a regression on alsa which prevents the sound
> to be played correctly. When playing, the music goes too fast, skipping
> some parts. Typically, it's very easy to reproduce by doing:
> time mplayer -endpos 30 sound-file-which-lasts-more-than-thirty-sec.mp3
> 

I created a Bugzilla entry at 
https://bugzilla.kernel.org/show_bug.cgi?id=15796
for your bug report, please add your address to the CC list in there, thanks!

-- 
Maciej Rutecki
http://www.maciek.unixy.pl

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-15 21:19       ` Éric Piel
  2010-04-16  7:53           ` Takashi Iwai
  2010-04-16 10:33         ` Frank Griffin
@ 2010-04-17 15:21         ` Frank Griffin
  2010-06-17 20:17           ` Mirix
  2 siblings, 1 reply; 21+ messages in thread
From: Frank Griffin @ 2010-04-17 15:21 UTC (permalink / raw)
  To: Éric Piel
  Cc: Takashi Iwai, Jaroslav Kysela, Rafael J. Wysocki,
	Linux Kernel Mailing List, alsa-devel

Éric Piel wrote:
> In the case of Frank, this looks more like a regression, or at least a
> bug to solve, because this happens with the default options. However,
> this report should be taken with care, because this happens on a
> 2.6.33.2 kernel made by Mandriva, containing many alsa patches of
> 2.6.34. Frank, how possible would it be to test a 2.6.34-rc4 kernel from
> Linus?
>
>   

Done.  2.6.34-rc4 compiled with standard configuration and without 
"options snd-hda-intel position_fix=1" in modprobe.conf works perfectly: 
normal sound and normal playback speed.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-04-17 15:21         ` Frank Griffin
@ 2010-06-17 20:17           ` Mirix
  2010-06-18 12:11             ` Takashi Iwai
  0 siblings, 1 reply; 21+ messages in thread
From: Mirix @ 2010-06-17 20:17 UTC (permalink / raw)
  To: linux-kernel

Hello,

I have a similar problem with hda-intel ALC883 since kernel 2.6.33 (problems are
identical with kernel 2.6.34). There are quick short gaps with the default
options. In turn, bdl_pos_adj=0 results in fast sound as reported here.
position_fix=1 does not fix it.

The card worked fine with previous kernels.

lspci : 

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller
(rev 03)

aplay -l :

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC883 Analog [ALC883 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 6: Si3054 Modem [Si3054 Modem]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

dmesg:

[  199.222813] hda-intel: IRQ timing workaround is activated for card #0.
Suggest a bigger bdl_pos_adj.



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-06-17 20:17           ` Mirix
@ 2010-06-18 12:11             ` Takashi Iwai
  2010-06-18 15:25               ` Miro Moman
  0 siblings, 1 reply; 21+ messages in thread
From: Takashi Iwai @ 2010-06-18 12:11 UTC (permalink / raw)
  To: Mirix; +Cc: linux-kernel

At Thu, 17 Jun 2010 20:17:50 +0000 (UTC),
Mirix wrote:
> 
> Hello,
> 
> I have a similar problem with hda-intel ALC883 since kernel 2.6.33 (problems are
> identical with kernel 2.6.34). There are quick short gaps with the default
> options. In turn, bdl_pos_adj=0 results in fast sound as reported here.
> position_fix=1 does not fix it.
> 
> The card worked fine with previous kernels.

How about 2.6.35-rc3?  Another adjustment mechanism was introduced
in 2.6.35, so this might work better...


Takashi

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
  2010-06-18 12:11             ` Takashi Iwai
@ 2010-06-18 15:25               ` Miro Moman
  0 siblings, 0 replies; 21+ messages in thread
From: Miro Moman @ 2010-06-18 15:25 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: linux-kernel

Hi Takashi,

Thanks for the advice. However, I have just built 2.6.35-rc3 and it
did not help at all.

Linux solaina 2.6.35-rc3-core2 #1 SMP PREEMPT Fri Jun 18 15:33:37 CEST
2010 x86_64 GNU/Linux



On Fri, Jun 18, 2010 at 2:11 PM, Takashi Iwai <tiwai@suse.de> wrote:
> At Thu, 17 Jun 2010 20:17:50 +0000 (UTC),
> Mirix wrote:
>>
>> Hello,
>>
>> I have a similar problem with hda-intel ALC883 since kernel 2.6.33 (problems are
>> identical with kernel 2.6.34). There are quick short gaps with the default
>> options. In turn, bdl_pos_adj=0 results in fast sound as reported here.
>> position_fix=1 does not fix it.
>>
>> The card worked fine with previous kernels.
>
> How about 2.6.35-rc3?  Another adjustment mechanism was introduced
> in 2.6.35, so this might work better...
>
>
> Takashi
>



-- 
http://www.edelmiromoman.eu/

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2010-06-18 15:25 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-13 21:54 [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0 Éric Piel
2010-04-14  6:08 ` Takashi Iwai
2010-04-14 11:22   ` Éric Piel
2010-04-14 11:54     ` Éric Piel
2010-04-14 13:39       ` Takashi Iwai
2010-04-14 13:39         ` Takashi Iwai
2010-04-14 14:36         ` Éric Piel
2010-04-14 15:39           ` Frank Griffin
2010-04-14 16:02             ` Takashi Iwai
2010-04-14 16:02               ` Takashi Iwai
2010-04-14 16:01     ` Takashi Iwai
2010-04-15 21:19       ` Éric Piel
2010-04-16  7:53         ` Takashi Iwai
2010-04-16  7:53           ` Takashi Iwai
2010-04-16 10:35           ` Frank Griffin
2010-04-16 10:33         ` Frank Griffin
2010-04-17 15:21         ` Frank Griffin
2010-06-17 20:17           ` Mirix
2010-06-18 12:11             ` Takashi Iwai
2010-06-18 15:25               ` Miro Moman
2010-04-16 14:55 ` Maciej Rutecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.