mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans Schou <linux@schou.dk>
To: David Dillow <dave@thedillows.org>
Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org
Subject: Re: PROBLEM: SIS7019 stops recording after 42 min
Date: Mon, 21 Jun 2010 19:42:38 +0200	[thread overview]
Message-ID: <AANLkTikW71h7ABVXY21pLL9AeOlmRTfVaSTjJ_6Ma0_R@mail.gmail.com> (raw)
In-Reply-To: <1277129180.22889.64.camel@obelisk.thedillows.org>

2010/6/21 David Dillow <dave@thedillows.org>:

>> Only 35 minutes of recording but I was running in 50min.
>
> Ok, cool, we see the problem with arecord as well, though you were
> getting overrun messages as well?

Yes, a lot of overrun. At least one per second.

>> How do I enable SND_PCM_XRUN_DEBUG with sox?
>
> Sorry, that should be CONFIG_SND_PCM_XRUN_DEBUG in the kernel
> configuration, but if we can demonstrate this with arecord, there's no
> real reason to recompile your kernel at this point.

OK, I'll skip that. It takes rather long time to compile.

>> Right now uptime says
>>    load average: 0.19, 0.21, 0.18
>> but strace and top is the bad guys, not arecord.
>
> An overrun means that arecord didn't run for 500ms, and the load average
> won't really tell you much about that -- latency can happen with low

Well, I did not see that with sox. It was running fine for 42 min.

> loads. That said, I'm suspecting that you've found a problem in the
> driver, and I'd lay odds it is in the handling of multiple periods per
> buffer.

> I don't know the options available on sox, but if you can use arecord to
> reproduce, then that is probably the best tool for the job. Can you set
> it up to use two periods per buffer and see if you still can reproduce?
> Options would look like -B 250000 -F 125000. A second test with -B
> 1000000 -F 500000 would be interesting, if the hw can handle buffers of
> that size -- I don't recall offhand.

I have just started it with  -B 250000 -F 125000 and get a lot of overrun.
I skipped using strace to make less stress.

cmdline is now:
arecord -B 250000 -F 125000 -c 1 -r 44100 -f S16 -M -D hw:0,0 -v arec.wav

overrun!!! (at least 0.201 ms long)
Status:
  state       : XRUN
  trigger_time: 1277140527.1826705
  tstamp      : 1277140527.2005279
  delay       : 0
  avail       : 16537
  avail_max   : 16537
overrun!!! (at least 0.207 ms long)
Status:
  state       : XRUN
  trigger_time: 1277140527.128608572
  tstamp      : 1277140527.128793445
  delay       : 0
  avail       : 16537
  avail_max   : 16537
overrun!!! (at least 0.167 ms long)
Status:
  state       : XRUN
  trigger_time: 1277140527.256925501
  tstamp      : 1277140527.257071819
  delay       : 0
  avail       : 16537
  avail_max   : 16537

> I will hopefully have my hardware back up and running tonight; BTW, what
> distro are you using? I'm trying Fedora 13, but I'm expecting to run
> into trouble with the lack of cmov support on the processor.

Debian stable.

/hans

  reply	other threads:[~2010-06-21 17:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-19 14:13 Hans Schou
2010-06-19 18:31 ` David Dillow
2010-06-20  6:20   ` Hans Schou
2010-06-20 14:26     ` David Dillow
2010-06-21  5:56       ` Hans Schou
2010-06-21 14:06         ` David Dillow
2010-06-21 17:42           ` Hans Schou [this message]
2010-06-21 18:49             ` Hans Schou
2010-06-21 19:06               ` David Dillow
2010-06-21 20:10               ` Hans Schou
2010-06-23  3:00                 ` David Dillow
2010-06-23  5:36                   ` David Dillow
2010-06-23 18:22                     ` Hans Schou
2010-06-23 18:26                       ` Hans Schou
2010-06-23 20:42                       ` David Dillow
2010-06-24  8:08                         ` [alsa-devel] " Hans Schou
2010-06-21 18:50             ` David Dillow
2010-06-21 19:04               ` [alsa-devel] " Hans Schou

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=AANLkTikW71h7ABVXY21pLL9AeOlmRTfVaSTjJ_6Ma0_R@mail.gmail.com \
    --to=linux@schou.dk \
    --cc=alsa-devel@alsa-project.org \
    --cc=dave@thedillows.org \
    --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®