From: Hannu Savolainen <hannu@opensound.com>
To: Takashi Iwai <tiwai@suse.de>, linux-kernel@vger.kernel.org
Subject: Handling xruns in OSS (was re:whatever)
Date: Mon, 25 Jun 2007 23:09:21 +0300 [thread overview]
Message-ID: <468020F1.1090602@opensound.com> (raw)
In-Reply-To: <s5h8xa8iaee.wl%tiwai@suse.de>
Takashi Iwai kirjoitti:
> At Mon, 25 Jun 2007 10:06:18 +0100,
> Alan Cox wrote:
>
>>> If it is native ALSA driver then it will restart after each underrun
>>> and overrun. It is the applications job to do this, alsa-lib provides
>>> all support for this. I have no idea of OSS and OSS emulation in ALSA.
>>>
>> OSS should autorestart on underrun and just moan about overruns and drop
>> bits. So if it's not following that behaviour he is IMHO correct for the
>> OSS emulation case.
>>
>
> I think he is right in the case of read (although I don't remember his
> post as my buffer overran). The playback is automaically reset and
> restarted at underrun.
>
> But, the patch there is wrong. It should handle -EPIPE, which means
> XRUN, while -ESTRPIPE means the suspend state.
>
To be exact the OSS should not even stop the device when a xrun occurs.
Instead it should keep playing silence until the application writes more
output data and to discard the oldest recorded data when an overrun
occurs. This is more effective than stopping and restarting the device.
Best regards,
Hannu
next prev parent reply other threads:[~2007-06-25 20:20 UTC|newest]
Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-24 17:51 Is it time for remove (crap) ALSA from kernel tree ? Tomasz Kłoczko
2007-06-24 19:08 ` Alan Cox
2007-06-24 19:24 ` Tomasz Kłoczko
2007-06-24 19:27 ` Jan Engelhardt
2007-06-24 21:43 ` Rene Herman
2007-06-25 10:06 ` Tomasz Kłoczko
2007-06-25 10:46 ` Jan Engelhardt
2007-06-25 20:32 ` Hannu Savolainen
2007-06-24 20:57 ` Alan Cox
2007-06-24 22:43 ` Olivier Galibert
2007-06-24 22:44 ` Carlo Wood
2007-06-24 22:48 ` Jesper Juhl
2007-06-24 23:13 ` Carlo Wood
2007-06-25 3:41 ` Nobin Mathew
2007-06-25 9:06 ` Alan Cox
2007-06-25 10:41 ` Takashi Iwai
2007-06-25 20:09 ` Hannu Savolainen [this message]
2007-06-26 9:18 ` Handling xruns in OSS (was Takashi Iwai
2007-06-25 9:51 ` Is it time for remove (crap) ALSA from kernel tree ? Tomasz Kłoczko
2007-06-25 10:58 ` Takashi Iwai
2007-06-25 11:36 ` Tomasz Kłoczko
2007-06-25 12:31 ` Takashi Iwai
2007-06-25 12:40 ` Jan Engelhardt
2007-06-25 12:47 ` Olivier Galibert
2007-06-25 12:50 ` Takashi Iwai
2007-06-25 12:44 ` Olivier Galibert
2007-06-25 12:58 ` Takashi Iwai
2007-06-25 13:20 ` Olivier Galibert
2007-06-25 13:21 ` Adrian Bunk
2007-06-28 18:30 ` Nix
2007-06-28 20:02 ` Rene Herman
2007-06-28 20:20 ` Lee Revell
2007-06-28 20:43 ` Adrian Bunk
2007-06-28 20:22 ` Jeff Garzik
2007-06-28 21:06 ` Adrian Bunk
2007-06-28 21:37 ` Rene Herman
2007-06-28 22:24 ` Nix
2007-06-29 11:52 ` Florian Schmidt
2007-06-29 14:56 ` Miklos Szeredi
2007-06-29 15:49 ` Alan Cox
2007-06-29 15:55 ` Miklos Szeredi
2007-06-29 16:14 ` Miklos Szeredi
2007-07-01 11:46 ` Florian Schmidt
2007-07-01 12:17 ` Miklos Szeredi
2007-06-29 18:39 ` Pavel Machek
2007-06-25 17:00 ` Tomasz Kłoczko
2007-06-25 22:49 ` Rene Herman
2007-06-25 13:01 ` Gabor Gombas
2007-06-25 13:41 ` Tomasz Kłoczko
2007-06-25 14:05 ` Gabor Gombas
2007-06-25 13:21 ` Renato S. Yamane
2007-06-25 14:02 ` Tomasz Kłoczko
2007-06-25 13:46 ` Rene Herman
2007-06-25 6:24 ` Carlo Florendo
2007-06-25 6:22 ` Carlo Florendo
2007-06-25 10:53 ` Takashi Iwai
2007-06-25 11:50 ` Tomasz Kłoczko
2007-06-25 13:04 ` Bartlomiej Zolnierkiewicz
2007-06-25 21:18 ` Hannu Savolainen
2007-06-25 23:17 ` Adrian Bunk
2007-06-26 16:25 ` Wakko Warner
2007-06-26 16:52 ` Takashi Iwai
2007-06-27 11:11 ` Wakko Warner
2007-06-26 9:35 ` Takashi Iwai
2007-06-26 11:48 ` Jeff Garzik
2007-06-29 18:31 ` OSS vs ALSA API (was Re: Is it time for remove (crap) ALSA from kernel tree ?) Pavel Machek
2007-06-25 14:44 ` Is it time for remove (crap) ALSA from kernel tree ? Lennart Sorensen
2007-06-25 15:48 ` Tomasz Kłoczko
2007-06-25 17:13 ` Lennart Sorensen
2007-07-04 6:35 ` Darren
2007-07-04 17:32 ` Adrian Bunk
2007-07-05 12:59 ` Tomasz Kłoczko
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=468020F1.1090602@opensound.com \
--to=hannu@opensound.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tiwai@suse.de \
/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