From: Matthias Kretz <kretz@kde.org>
To: hal@lists.freedesktop.org
Cc: Takashi Iwai <tiwai@suse.de>,
BlueZ development <bluez-devel@lists.sourceforge.net>,
Lennart Poettering <mztfg@0pointer.de>
Subject: Re: [Bluez-devel] [patch] spec: Update alsa namespace to include virtual device
Date: Thu, 23 Aug 2007 19:06:46 +0200 [thread overview]
Message-ID: <200708231906.50942.kretz@kde.org> (raw)
In-Reply-To: <e29894ca0708230922n69a68aedqfb979c67042a965f@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2441 bytes --]
On Thursday 23 August 2007, Marc-André Lureau wrote:
> The following patch changes the "alsa" namespace so that "virtual
> devices" can also be described (a former approach was to use
> alsa.virtual or alsa_virtual new namespace, but alsa.virtual does not
> inherit alsa property, and both namespaces have a lot in common).
>
> Thus, a mandatory property "is_hardware" is introduced. If this value
> is true, the current mandatory keys remain mandatory. If not, then the
> client should use "device_name" to "open" the device.
>
> Arguable:
> - should "device_name" be optional? (currently, application hard-code
> the prefix "hw")
> - "service" is used to make a difference between a2dp and hfp/hsp
> - "device_name", and "service" key naming
Hi,
I don't agree with this approach, i.e. the listing of virtual ALSA devices
through HAL, especially the forcing of the device_name. The application might
be smarter than HAL, once it knows enough about the hardware. For example the
hw: devices in many cases are not what you want...
Since libasound 1.0.14 we have snd_device_name_hint available to list virtual
devices (they get listed once you add a hint section in your .asoundrc file).
What we're missing is a way to link virtual devices to hardware, meaning if
Hardware "xy" becomes available virtual device "foo" starts to be useful
(only "polling" works from what I know).
So what I'd like to see is something along the lines of:
- HAL notifies me that a Bluetooth device with audio support became available.
- With the id I get from HAL I can query libasound which virtual devices are
using this device, or if that's not possible iterate over all virtual devices
that didn't work before and try to open them and see whether they work now.
You made the example "bluetooth:00:19:4F:DB:04:40,hifi" in the patch. Is it
possible to always access ALSA bluetooth devices that way? Then perhaps the
HAL entry on the bluetooth device should list give me the necessary hints to
construct that string myself?
Anyway, great to hear that bluetooth ALSA support is progressing! I'm really
looking forward to supporting it (now all I need is bluetooth devices...)
--
________________________________________________________
Matthias Kretz (Germany) <><
http://Vir.homelinux.org/
MatthiasKretz@gmx.net, kretz@kde.org,
Matthias.Kretz@urz.uni-heidelberg.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 315 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-08-23 17:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-23 16:22 [patch] spec: Update alsa namespace to include virtual device Marc-André Lureau
2007-08-23 17:06 ` Matthias Kretz [this message]
2007-08-23 18:20 ` [Bluez-devel] " Marcel Holtmann
2007-08-23 18:56 ` Matthias Kretz
2007-08-23 19:27 ` Marcel Holtmann
2007-08-27 14:11 ` Lennart Poettering
2007-08-27 14:34 ` Marcel Holtmann
2007-08-27 14:47 ` Lennart Poettering
2007-08-27 15:09 ` Marcel Holtmann
2007-08-27 15:15 ` Lennart Poettering
2007-08-27 15:24 ` Marcel Holtmann
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=200708231906.50942.kretz@kde.org \
--to=kretz@kde.org \
--cc=bluez-devel@lists.sourceforge.net \
--cc=hal@lists.freedesktop.org \
--cc=mztfg@0pointer.de \
--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