From: Halim Sahin <halim.sahin@freenet.de>
To: alsa-devel@alsa-project.org
Subject: Re: a11y: howto reduce latency with alsa's dmix plugin?
Date: Fri, 04 Sep 2009 11:09:17 +0200 [thread overview]
Message-ID: <87skf3oz42.fsf@freenet.de> (raw)
In-Reply-To: s5hd467k7gk.wl%tiwai@suse.de
On Fr, Sep 04 2009, Takashi Iwai wrote:
> At Wed, 02 Sep 2009 10:56:17 +0200,
> Halim Sahin wrote:
>>
>> On Di, Sep 01 2009, Takashi Iwai wrote:
>>
>> > At best, we need a small C code that reproduces the behavior.
>> Ok here is a small example.
>> It's a modified version of pcm_min.c.
>> Simply press ctrl+c to reproduce the problematic behaviour.
>> on my machine it takes about an half sek to stop with an usb head which
>> uses dmix.
>
> Hmm, I cannot reproduce the problem, at least, dmix + HD-audio.
> After removing sleep(1), it quits immediately.
Yes you can't, because the program doesn't run.
The sleep shouldn't be removed to see the problem.
When speech-dispatcher is running and someone tries to stop the output,
the programm doesn't exit.
Think about it like a pause key :-).
The sblive stopps emmidiately with inserted sleep the usb headset
doesn't.
> Doesn't this problem happen if you use usb-audio with "hw" PCM?
The pcm_min example of alsalib doesn't run this way.
--8<---------------cut here---------------start------------->8---
ALSA lib pcm.c:7125:(snd_pcm_set_params) Sample format not available for
PLAYBAC
K: Invalid argument
Playback open error: Invalid argument
--8<---------------cut here---------------end--------------->8---
Can you tell me which sampleformat works with this device???
> It's possible that the behavior of snd_pcm_drop() of usb-audio is
> different from others because of URB handling.
The stop problem also happends on my laptop with hd audio and ad1981
chip.
with kind regards
Halim
next prev parent reply other threads:[~2009-09-04 9:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-23 9:55 a11y: howto reduce latency with alsa's dmix plugin? Halim Sahin
2009-08-30 16:13 ` really no idea? " Halim Sahin
2009-08-31 15:12 ` Takashi Iwai
2009-09-01 10:32 ` Halim Sahin
2009-09-01 10:40 ` Takashi Iwai
2009-09-02 8:56 ` Halim Sahin
2009-09-03 22:07 ` Takashi Iwai
2009-09-04 9:09 ` Halim Sahin [this message]
2009-09-04 9:32 ` Takashi Iwai
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=87skf3oz42.fsf@freenet.de \
--to=halim.sahin@freenet.de \
--cc=alsa-devel@alsa-project.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