From: Daniel Mack <daniel@caiaq.de>
To: Jaroslav Kysela <perex@perex.cz>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>,
Lennart Poettering <mznyfn@0pointer.de>
Subject: Re: Device creation order
Date: Fri, 3 Apr 2009 09:40:09 +0200 [thread overview]
Message-ID: <20090403074009.GD15466@buzzloop.caiaq.de> (raw)
In-Reply-To: <alpine.LNX.2.00.0904030921280.17368@eeebox2.perex-int.cz>
On Fri, Apr 03, 2009 at 09:31:40AM +0200, Jaroslav Kysela wrote:
>>> Unfortunately, driver may use more complex scenarios like:
>>>
>>> - some hardware requires additional firmware - in this case devices
>>> might be created, but they are not useable until firmware is loaded
>>> - dynamic device creation at runtime - for example we have an
>>> experimental HDA driver configuration code which might change
>>> the arrangement of PCM devices on request from the user space
>>>
>>> I would suggest to wait awhile with some small timeout (0.5 sec?) for all
>>> devices to get the usual static arrangement working and handle extra
>>> dynamic cases, too.
>>
>> Wouldn't the real fix be to make sure that the event from hal/udev
>> happens after all the initialization has finished, i.e. the device got
>> its firmware, all connected layers finished their work etc? Before all
>> that, the audio device is not really available, right?
>
> But even with this extension, the user space should handle dynamic device
> reconfiguration (my second example case). The question is, if it makes
> sense to handle group of devices per card basis or just take single
> devices and dynamically handle device changes.
That's another issue IMO, which needs different attention. Signaling audio
devices being added (via udev) before it's actually usable is rather a bug
than a missing extension, wouldn't you say?
Daniel
next prev parent reply other threads:[~2009-04-03 7:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 1:54 Device creation order Lennart Poettering
2009-04-03 7:12 ` Jaroslav Kysela
2009-04-03 7:20 ` Daniel Mack
2009-04-03 7:31 ` Jaroslav Kysela
2009-04-03 7:40 ` Daniel Mack [this message]
2009-04-03 10:34 ` Colin Guthrie
2009-04-03 11:51 ` Lennart Poettering
2009-04-03 11:43 ` Lennart Poettering
2009-04-03 7:38 ` Clemens Ladisch
2009-04-03 7:50 ` Jaroslav Kysela
2009-04-03 11:58 ` Lennart Poettering
2009-04-03 11:56 ` Lennart Poettering
2009-04-05 13:16 ` Wu Fengguang
2009-04-05 14:40 ` Lennart Poettering
2009-04-05 20:29 ` Mark Brown
2009-04-03 11:42 ` Lennart Poettering
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=20090403074009.GD15466@buzzloop.caiaq.de \
--to=daniel@caiaq.de \
--cc=alsa-devel@alsa-project.org \
--cc=mznyfn@0pointer.de \
--cc=perex@perex.cz \
/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