[Several MacBooks (with PCI SSID 10de:cb89)] Choppy sound. Videos play double speed

Bug #909419 reported by Alan Pope 🍺🐧🐱 πŸ¦„
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Luke Yelavich

Bug Description

For a while now on precise I can't watch videos or listen to audio in any app as it's choppy. So audio appears to be at double speed, resulting in the video going at double speed.

I have tested in spotify, mplayer, totem, flash (youtube) and they all exhibit the same behaviour. Even the audio test sound thing in control centre 'front left' sounds choppy.

Oddly if I record the audio directly from the sound card to a wav file using sox and then play it back on another machine it plays fine. It's just outputting sound to the speakers that this machine appears to have problems with.

**** Current workaround ****

edit /etc/modprobe.d/alsa-base.conf
and add this row:
options snd-hda-intel position_fix=1

reboot your computer for changes to take effect.

****

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pulseaudio 1:1.1-0ubuntu4
ProcVersionSignature: Ubuntu 3.2.0-7.13-generic 3.2.0-rc7
Uname: Linux 3.2.0-7-generic x86_64
NonfreeKernelModules: nvidia wl
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: NVidia [HDA NVidia], device 0: Cirrus Analog [Cirrus Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: alan 1873 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'NVidia'/'HDA NVidia at 0xd3480000 irq 23'
   Mixer name : 'Nvidia MCP89 HDMI'
   Components : 'HDA:10134206,106b0d00,00100301 HDA:10de000c,10de0101,00100200'
   Controls : 33
   Simple ctrls : 13
Date: Wed Dec 28 16:03:22 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110901)
SourcePackage: pulseaudio
UpgradeStatus: Upgraded to precise on 2011-12-22 (6 days ago)
dmi.bios.date: 06/01/10
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP71.88Z.0039.B0B.1006012305
dmi.board.name: Mac-F222BEC8
dmi.board.vendor: Apple Inc.
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F222BEC8
dmi.modalias: dmi:bvnAppleInc.:bvrMBP71.88Z.0039.B0B.1006012305:bd06/01/10:svnAppleInc.:pnMacBookPro7,1:pvr1.0:rvnAppleInc.:rnMac-F222BEC8:rvr:cvnAppleInc.:ct10:cvrMac-F222BEC8:
dmi.product.name: MacBookPro7,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

CVE References

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Killing pulseaudio stops the choppyness.

Changed in pulseaudio (Ubuntu):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
Rick Spencer (rick-rickspencer3) wrote :

I've noticed this in precise as well, however, I don't think all video formats are affected

Changed in pulseaudio (Ubuntu):
assignee: Canonical Desktop Team (canonical-desktop-team) → Luke Yelavich (themuso)
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

The following seems to fix/workaround the issue:-

Edit /etc/pulse/default.pa

Change:-

load-module module-udev-detect

to

load-module module-udev-detect tsched=0

Then restart pulse.

pulseaudio -k

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 909419] Re: Choppy sound. Videos play double speed

Hi Alan,
Are you able to test video/audio playback out your DisplayPort/HDMI connection and see how the audio behaves?

In any case, could you try the following:

Add the following line to /etc/modprobe.d/alsa-base.conf

options snd-hda-intel position_fix=1

Save, and reboot, and try playing video again. If that doesn't help, please get a lot from PulseAudio, as explained here: https://wiki.ubuntu.com/PulseAudio/Log.

Thanks.

Revision history for this message
Luke Yelavich (themuso) wrote :

I forgot to add that you should also remove tsched=0 from the pulse configuration that you mentioned above.

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote : Re: Choppy sound. Videos play double speed

I removed tsched=0 from the pulse config and added the position_fix=1 to alsa-base.conf and rebooted. This seems to have fixed it. I've played youtube (flash) videos and used Totem to play local videos and they play fine now. Thanks Luke.

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Oh. forgot to say. I am unable to test displayport to hdmi because I only have a displayport to VGA adapter.

Revision history for this message
Mattias Bengtsson (benmat) wrote :

I just reported bug #913130 which looks like a dupe of this one. If that's the case I can confirm that loading the sound-driver with position_fix=1 works for me too.

Revision history for this message
spaetz (spaetz) wrote :

position_fix=1 fixed this for mine as well.

summary: - Choppy sound. Videos play double speed
+ [MacBookPro7,1] Choppy sound. Videos play double speed
Revision history for this message
David Henningsson (diwic) wrote : Re: [MacBookPro7,1] Choppy sound. Videos play double speed

Just sent a patch upstream for this issue: http://mailman.alsa-project.org/pipermail/alsa-devel/2012-January/048043.html
If anybody wants to pick it up for 12.04 before it comes down the normal path (might take a month or two!), feel free to do so.

affects: pulseaudio (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
David Henningsson (diwic) wrote :

Upstream accepted/applied patch.

summary: - [MacBookPro7,1] Choppy sound. Videos play double speed
+ [Several MacBooks (with PCI SSID 10de:cb89)] Choppy sound. Videos play
+ double speed
Revision history for this message
David Henningsson (diwic) wrote : (precise pre-stable) [PATCH] ALSA: HDA: Use LPIB position fix for Macbook Pro 7,1

Several users have reported "choppy" audio under the 3.2 kernel,
and that changing position_fix to 1 has resolved their problem.
The chip is an nVidia Corporation MCP89 High Definition Audio,
[10de:0d94] (rev a2).

Cc: <email address hidden> (v3.2+)
BugLink: https://bugs.launchpad.net/bugs/909419
Signed-off-by: David Henningsson <email address hidden>
Signed-off-by: Takashi Iwai <email address hidden>
(cherry picked from commit b01de4fb40137fbda7530550ff0cd37171dafb0c,
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
---

 * Several macbooks (with the same ID, see duplicates to bug 909419)
   seem to be hitting this one, so it might be worth picking it for
   our next upload, instead of waiting for stable.

 sound/pci/hda/hda_intel.c | 1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index c2f79e6..5b2b75b 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2509,6 +2509,7 @@ static struct snd_pci_quirk position_fix_list[] __devinitdata = {
  SND_PCI_QUIRK(0x1043, 0x81e7, "ASUS M2V", POS_FIX_LPIB),
  SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS 1101HA", POS_FIX_LPIB),
  SND_PCI_QUIRK(0x104d, 0x9069, "Sony VPCS11V9E", POS_FIX_LPIB),
+ SND_PCI_QUIRK(0x10de, 0xcb89, "Macbook Pro 7,1", POS_FIX_LPIB),
  SND_PCI_QUIRK(0x1297, 0x3166, "Shuttle", POS_FIX_LPIB),
  SND_PCI_QUIRK(0x1458, 0xa022, "ga-ma770-ud3", POS_FIX_LPIB),
  SND_PCI_QUIRK(0x1462, 0x1002, "MSI Wind U115", POS_FIX_LPIB),
--
1.7.8.3

Revision history for this message
rottame (ennegielle) wrote :

I have downgraded the kernel to 3.0.0-15. It sounded worse than 3.2.0
I've rebuilt pulseaudio 1:1.0-0ubuntu3.1 on precise. The sound was good

description: updated
Revision history for this message
Stefan Bader (smb) wrote : ACK w/cmt: (precise pre-stable) [PATCH] ALSA: HDA: Use LPIB position fix for Macbook Pro 7, 1

On 13.01.2012 12:42, David Henningsson wrote:
> Several users have reported "choppy" audio under the 3.2 kernel,
> and that changing position_fix to 1 has resolved their problem.
> The chip is an nVidia Corporation MCP89 High Definition Audio,
> [10de:0d94] (rev a2).
>
> Cc: <email address hidden> (v3.2+)
> BugLink: https://bugs.launchpad.net/bugs/909419
> Signed-off-by: David Henningsson <email address hidden>
> Signed-off-by: Takashi Iwai <email address hidden>
> (cherry picked from commit b01de4fb40137fbda7530550ff0cd37171dafb0c,
> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
> ---
>
> * Several macbooks (with the same ID, see duplicates to bug 909419)
> seem to be hitting this one, so it might be worth picking it for
> our next upload, instead of waiting for stable.
>
> sound/pci/hda/hda_intel.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index c2f79e6..5b2b75b 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -2509,6 +2509,7 @@ static struct snd_pci_quirk position_fix_list[] __devinitdata = {
> SND_PCI_QUIRK(0x1043, 0x81e7, "ASUS M2V", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS 1101HA", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x104d, 0x9069, "Sony VPCS11V9E", POS_FIX_LPIB),
> + SND_PCI_QUIRK(0x10de, 0xcb89, "Macbook Pro 7,1", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x1297, 0x3166, "Shuttle", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x1458, 0xa022, "ga-ma770-ud3", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x1462, 0x1002, "MSI Wind U115", POS_FIX_LPIB),

Patch looks ok and is upstream and actually already queued up for the next
stable update. I guess that will happen soon as well.

-Stefan

Revision history for this message
Andy Whitcroft (apw) wrote : [ACK] (precise pre-stable) [PATCH] ALSA: HDA: Use LPIB position fix for Macbook Pro 7, 1

On Fri, Jan 13, 2012 at 12:42:14PM +0100, David Henningsson wrote:
> Several users have reported "choppy" audio under the 3.2 kernel,
> and that changing position_fix to 1 has resolved their problem.
> The chip is an nVidia Corporation MCP89 High Definition Audio,
> [10de:0d94] (rev a2).
>
> Cc: <email address hidden> (v3.2+)
> BugLink: https://bugs.launchpad.net/bugs/909419
> Signed-off-by: David Henningsson <email address hidden>
> Signed-off-by: Takashi Iwai <email address hidden>
> (cherry picked from commit b01de4fb40137fbda7530550ff0cd37171dafb0c,
> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
> ---
>
> * Several macbooks (with the same ID, see duplicates to bug 909419)
> seem to be hitting this one, so it might be worth picking it for
> our next upload, instead of waiting for stable.
>
> sound/pci/hda/hda_intel.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index c2f79e6..5b2b75b 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -2509,6 +2509,7 @@ static struct snd_pci_quirk position_fix_list[] __devinitdata = {
> SND_PCI_QUIRK(0x1043, 0x81e7, "ASUS M2V", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS 1101HA", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x104d, 0x9069, "Sony VPCS11V9E", POS_FIX_LPIB),
> + SND_PCI_QUIRK(0x10de, 0xcb89, "Macbook Pro 7,1", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x1297, 0x3166, "Shuttle", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x1458, 0xa022, "ga-ma770-ud3", POS_FIX_LPIB),
> SND_PCI_QUIRK(0x1462, 0x1002, "MSI Wind U115", POS_FIX_LPIB),

As this is so small and we are so near to the next milestone it would
probabally be good to pull this in as a pre-stable patch.

Acked-by: Andy Whitcroft <email address hidden>

-apw

Revision history for this message
Andy Whitcroft (apw) wrote : [APPLIED] (precise pre-stable) [PATCH] ALSA: HDA: Use LPIB position fix for Macbook Pro 7, 1

This has also hit mainline so updated the commentary to match.

Applied to Precise.

-apw

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 3.2.0-10.18

---------------
linux (3.2.0-10.18) precise; urgency=low

  [ Tim Gardner ]

  * SAUCE: ecryptfs: Print inode on metadata error

  [ Upstream Kernel Changes ]

  * Revert "proc: enable writing to /proc/pid/mem"
    - LP: #919115
    - CVE-2012-0056
  * (pre-stable) ALSA: HDA: Use LPIB position fix for Macbook Pro 7, 1
    - LP: #909419
 -- Andy Whitcroft <email address hidden> Tue, 24 Jan 2012 10:15:12 +0000

Changed in linux (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
TennSeven (tennseven) wrote :

I am still having this problem with 3.2.0-25.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.