Raymond,

The committer, Takashi Iwai, decided to help us. Can you use this patch
(and help me test it) :-)

Nio
-----

OK, I see why this bogus report reappears again.  The message tag was
reverted back after some commit for correctness.

Now I rephrased the text again so that it won't hit some stupid daemon
any longer.  It'll be included in 4.6 kernel, and then backported to
stable kernels later.

But, note that this doesn't fix the issue.  For a proper fix, a patch
like below would be needed.  Let me know if this works for you.  (But
I have no idea about Ubuntu, so I cannot tell you how to apply the
patch, ask other Ubuntu people about it 


Takashi

-- 8< --
From: Takashi Iwai at SUSE
Subject: [PATCH] ALSA: au88x0: Fix overlapped PCM pointer

au88x0 hardware seems returning the current pointer at the buffer
boundary instead of going back to zero.  This results in spewing
warnings from PCM core.

This patch corrects the return value from the pointer callback within
the proper value range, just returning zero if the position is equal
or above the buffer size.

Signed-off-by: Takashi Iwai at SUSE
---
 sound/pci/au88x0/au88x0_pcm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c
index a6d6d8d0867a..df5741a78fd2 100644
--- a/sound/pci/au88x0/au88x0_pcm.c
+++ b/sound/pci/au88x0/au88x0_pcm.c
@@ -432,7 +432,10 @@ static snd_pcm_uframes_t snd_vortex_pcm_pointer(struct 
snd_pcm_substream *substr
 #endif
        //printk(KERN_INFO "vortex: pointer = 0x%x\n", current_ptr);
        spin_unlock(&chip->lock);
-       return (bytes_to_frames(substream->runtime, current_ptr));
+       current_ptr = bytes_to_frames(substream->runtime, current_ptr);
+       if (current_ptr >= substream->runtime->buffer_size)
+               current_ptr = 0;
+       return current_ptr;
 }
 
 /* operators */
-- 
2.7.2

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1551041

Title:
  snd_au8820 0000:01:04.0: BUG: , pos = 16386, buffer size = 16384,
  period size = 1024

Status in alsa-driver package in Ubuntu:
  Incomplete

Bug description:
  Kernel oops in a new installed system, that I configuring ...

  ProblemType: KernelOops
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-8-generic 4.4.0-8.23
  ProcVersionSignature: Ubuntu 4.4.0-8.23-generic 4.4.2
  Uname: Linux 4.4.0-8-generic i686
  NonfreeKernelModules: nvidia
  Annotation: Your system might become unstable now and might need to be 
restarted.
  ApportVersion: 2.20-0ubuntu3
  Architecture: i386
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  olle       1606 F.... pulseaudio
   /dev/snd/controlC0:  olle       1606 F.... pulseaudio
  Date: Mon Feb 29 00:00:56 2016
  Failure: oops
  HibernationDevice: RESUME=UUID=03bed9e9-e39b-4107-8cd6-c2612af9a6aa
  InstallationDate: Installed on 2016-02-28 (0 days ago)
  InstallationMedia: Lubuntu 16.04 LTS "Xenial Xerus" - Alpha i386 (20160226)
  IwConfig:
   enp31s0   no wireless extensions.
   
   lo        no wireless extensions.
  MachineType: Hewlett-Packard HP xw8400 Workstation
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-8-generic 
root=UUID=2160f8ed-4aa3-4243-b5d6-f87c1967e253 ro quiet splash
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions: kerneloops-daemon 0.12+git20090217-3ubuntu9
  RfKill:
   
  SourcePackage: linux
  Title: snd_au8820 0000:01:04.0: BUG: , pos = 16386, buffer size = 16384, 
period size = 1024
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 07/09/2009
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: 786D5 v02.37
  dmi.board.name: 0A08h
  dmi.board.vendor: Hewlett-Packard
  dmi.board.version: NA
  dmi.chassis.asset.tag: CZC722497N
  dmi.chassis.type: 6
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: 
dmi:bvnHewlett-Packard:bvr786D5v02.37:bd07/09/2009:svnHewlett-Packard:pnHPxw8400Workstation:pvr:rvnHewlett-Packard:rn0A08h:rvrNA:cvnHewlett-Packard:ct6:cvr:
  dmi.product.name: HP xw8400 Workstation
  dmi.sys.vendor: Hewlett-Packard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1551041/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to