[Bug 480010] Re: Playback 10% too fast after resume

Cedders cedric at gn.apc.org
Wed Nov 11 14:43:23 UTC 2009


Daniel T Chen wrote:
> It looks like you should pass a module parameter specifying
> the clock rate (in Hz, not KHz) to snd-intel8x0. It should be fairly
> straightforward when looking at:
> 
> modinfo snd-intel8x0|grep -i ^parm

I created a /etc/modprobe.d/options.conf with

  options snd-intel8x0 ac97_clock=44100

and after reloading the driver, the playback was 10% too *slow*.  Using

  options snd-intel8x0 ac97_clock=48000

it's correct, but then still 10% too fast after suspend/resume.  So I
don't think it's that parameter.

Here are the other parms:

parm:           index:Index value for Intel i8x0 soundcard. (int)
parm:           id:ID string for Intel i8x0 soundcard. (charp)
parm:           ac97_clock:AC'97 codec clock (0 = whitelist +
auto-detect, 1 = force autodetect). (int)
parm:           ac97_quirk:AC'97 workaround for strange hardware. (charp)
parm:           buggy_semaphore:Enable workaround for hardwares with
problematic codec semaphores. (bool)
parm:           buggy_irq:Enable workaround for buggy interrupts on some
motherboards. (bool)
parm:           xbox:Set to 1 for Xbox, if you have problems with the
AC'97 codec detection. (bool)
parm:           spdif_aclink:S/PDIF over AC-link. (int)
parm:           enable:bool
parm:           joystick:int

Not sure if it's worth trying any of the others.

> 
> The alsa-utils initscript is somewhat misleadingly named. It really
> does not do anything to the sound driver other than (re)storing mixer
> levels.

OK, thanks.  That explains it.

> That is precisely what I'm referring to. The sampling rate correction
> apparently requires a reset, but what I'm driving at is whether PA
> needs to be restarted. In other words, why does having PA running when
> you suspend make a difference? To answer that question I suspect I'll
> need output; see https://wiki.ubuntu.com/PulseAudio/Log .

Attached.  (I thought it might be merely the fact that the driver had a
use count of 1 from pulseaudio [PA} that was relevant.  So is the bug in
the driver or PA?)

BTW not surprisingly, the effect is also evident in Flash video.


** Attachment added: "pulseverbose.log"
   http://launchpadlibrarian.net/35537479/pulseverbose.log

-- 
Playback 10% too fast after resume
https://bugs.launchpad.net/bugs/480010
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to Linux.




More information about the kernel-bugs mailing list