better ALSA card name
Matthias Kretz
kretz at kde.org
Tue Jan 9 07:19:23 PST 2007
On Tuesday 09 January 2007 14:38, Kevin Ottens wrote:
> Le mardi 9 janvier 2007 12:37, Matthias Kretz a écrit :
> > [...]
> > The alsa.name property is the name I would like to show the user to
> > select the audio device. Please review the string code (I'm used to C++
> > string classes...) and let me know whether the new property is ok, or
> > where to put the name instead.
>
> I wonder if it's necessary to introduce another property. I'd say that the
> name extracted looks like an info.product property and could probably be
> used. That said it would mean the device would be named for instance
> "Alesis io|2" instead of "USB Audio ALSA Playback Device" which means we
> loose the "Playback Device" information... In this case maybe completing
> the names to get something like "Alesis io|2 Playback Device" could be a
> good idea?
In Solid you're reading the alsa.device_id property for the name. For my
devices the best name is to take "alsa.name (alsa.device_id)". Perhaps that's
what's wanted in HAL - so alsa.device_id would be put into parenthesis and
prepended by my new string.
See http://vir.homelinux.org/kcmphonon1.png for what this looks like.
The "(ALSA)" part of the name is appended by the backend and should not
appear in the name, I think. Also the "Playback Device" information normally
is not wanted in the string shown to the user as it's a precondition whether
capture or playback devices are shown.
--
________________________________________________________
Matthias Kretz (Germany) <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070109/3b6d8d53/attachment.pgp
More information about the hal
mailing list