mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: David Miller <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: sound skipping regression introduced in 2.6.30-rc8
Date: Thu, 11 Jun 2009 16:02:20 +0200	[thread overview]
Message-ID: <s5hmy8e50nn.wl%tiwai@suse.de> (raw)
In-Reply-To: <20090611.042848.193715083.davem@davemloft.net> <20090611.050220.179261434.davem@davemloft.net>

At Thu, 11 Jun 2009 04:28:48 -0700 (PDT),
David Miller wrote:
> 
> From: Takashi Iwai <tiwai@suse.de>
> Date: Wed, 10 Jun 2009 21:37:14 +0200
> 
> > Could you set CONFIG_SND_PCM_XRUN_DEBUG=y and do
> > 	# echo 1 > /proc/asound/card0/pcm0p/xrun_debug
> > then check your app?  Does it work better, and get any kernel messages?
> 
> Yes, the skipping goes away and I get hw_ptr skipping kernel messages:
> 
> [61581.519051] PCM: hw_ptr skipping! (pos=10240, delta=15368, period=1024, jdelta=0/32)
> [61584.420358] PCM: hw_ptr skipping! (pos=2048, delta=16328, period=1024, jdelta=2/34)
> [61593.956318] PCM: hw_ptr skipping! (pos=1024, delta=15368, period=1024, jdelta=0/32)
> [61596.964300] PCM: hw_ptr skipping! (pos=14336, delta=15368, period=1024, jdelta=0/32)
> [61600.036292] PCM: hw_ptr skipping! (pos=14336, delta=15368, period=1024, jdelta=0/32)
> [61605.454947] PCM: hw_ptr skipping! (pos=12288, delta=15368, period=1024, jdelta=0/32)

OK, then obviously intel8x0 driver gets screwed and is giving bogus
position data.


At Thu, 11 Jun 2009 05:02:20 -0700 (PDT),
David Miller wrote:
> 
> From: Takashi Iwai <tiwai@suse.de>
> Date: Wed, 10 Jun 2009 21:37:14 +0200
> 
> > Also, it'd be helpful if you can check whether the problem exists in
> > the current sound git tree (for-linus branch), too.
> >   git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git for-linus
> 
> Same behavior as 2.6.30, but debugging messages are formatted differently
> :-)
> 
> [ 1109.062182] PCM: Lost interrupts? (stream=0, delta=16384, intr_ptr=73728)
> [ 1125.126123] PCM: Lost interrupts? (stream=0, delta=16384, intr_ptr=861184)
> [ 1131.398094] PCM: Lost interrupts? (stream=0, delta=16384, intr_ptr=1178624)
> [ 1135.579406] PCM: Lost interrupts? (stream=0, delta=16384, intr_ptr=1395712)
> [ 1145.115367] PCM: Lost interrupts? (stream=0, delta=16384, intr_ptr=1869824)
> [ 1152.688670] PCM: Lost interrupts? (stream=0, delta=16384, intr_ptr=2249728)

I guess this is because of the change of xrun_debug semantics.
Try to set 5 to xrun_debug instead of 1.  Then you'll get the similar
results like 2.6.30, I guess.  (Setting to 4 will run with the sanity
check but without debug prints, BTW.)

I'll investigate the problem, but probably a bit later as now is a
long weekend in Germany...


thanks,

Takashi

  parent reply	other threads:[~2009-06-11 14:02 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-10 18:28 David Miller
2009-06-10 19:37 ` Takashi Iwai
2009-06-11 11:28   ` David Miller
2009-06-11 12:02   ` David Miller
2009-06-11 13:32     ` Bartlomiej Zolnierkiewicz
2009-06-11 13:56       ` Takashi Iwai
2009-06-11 14:14         ` Bartlomiej Zolnierkiewicz
2009-06-11 14:23           ` Takashi Iwai
2009-06-11 15:40             ` Bartlomiej Zolnierkiewicz
2009-06-11 16:07               ` Takashi Iwai
2009-06-11 17:36                 ` Bartlomiej Zolnierkiewicz
2009-06-11 14:02     ` Takashi Iwai [this message]
2009-06-10 19:37 ` Sven Köhler
2009-06-11  0:58   ` Takashi Iwai
2009-06-11  6:47     ` Sven Köhler
2009-06-11  8:18       ` Takashi Iwai
2009-06-11 21:38         ` Sven Köhler
2009-06-12  1:52           ` Takashi Iwai
2009-06-12 11:44             ` Bartlomiej Zolnierkiewicz
2009-06-15  8:30               ` Takashi Iwai
2009-06-15  8:39                 ` Takashi Iwai
2009-06-15  9:25                   ` David Miller
2009-06-15  9:48                     ` Takashi Iwai
2009-06-15  9:58                       ` Takashi Iwai
2009-06-15 10:11                         ` David Miller
2009-06-15 10:26                           ` Takashi Iwai
2009-06-15 18:25                         ` Sven Köhler
2009-06-15 19:15                           ` Bartlomiej Zolnierkiewicz
2009-06-15 10:09                       ` David Miller
2009-06-15  9:18                 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hmy8e50nn.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®