* Could we get the card name in /sys/clas/sound/card0/name?
@ 2009-01-20 2:41 Lennart Poettering
2009-01-20 9:03 ` Jaroslav Kysela
0 siblings, 1 reply; 2+ messages in thread
From: Lennart Poettering @ 2009-01-20 2:41 UTC (permalink / raw)
To: ALSA Development Mailing List
Heya!
Hmm, it would be nifty if we could get the alsa card name (i.e. the
one shown in [] in /proc/pcm/cards) as an attribute file in
/sys/class/sound/cardX/name. Even more useful would be if this
property would be writable so that the cards may be renamed during
runtime.
This could be very useful to establish stable card names via udev
rules, similar to what is already done to network interface names
("eth0", ...).
Would such a change be acceptable?
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Could we get the card name in /sys/clas/sound/card0/name?
2009-01-20 2:41 Could we get the card name in /sys/clas/sound/card0/name? Lennart Poettering
@ 2009-01-20 9:03 ` Jaroslav Kysela
0 siblings, 0 replies; 2+ messages in thread
From: Jaroslav Kysela @ 2009-01-20 9:03 UTC (permalink / raw)
To: Lennart Poettering; +Cc: ALSA Development Mailing List
On Tue, 20 Jan 2009, Lennart Poettering wrote:
> Heya!
>
> Hmm, it would be nifty if we could get the alsa card name (i.e. the
> one shown in [] in /proc/pcm/cards) as an attribute file in
> /sys/class/sound/cardX/name. Even more useful would be if this
> property would be writable so that the cards may be renamed during
> runtime.
>
> This could be very useful to establish stable card names via udev
> rules, similar to what is already done to network interface names
> ("eth0", ...).
>
> Would such a change be acceptable?
It's already implemented in our recent repositories (the change will be
in 2.6.29):
Author: Jaroslav Kysela <perex@perex.cz>
Date: Tue Nov 11 16:51:02 2008 +0100
ALSA: add /sys/class/sound/card#/id (r/w) and card#/number (r/o) files
For udev, we need a way to rename soundcard names. The soundcard numbers
(indexes) are hardwired but we have a text identification which can be
changed at run-time. The ALSA user space tools already allow using of
this text identification.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-----
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-20 9:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-20 2:41 Could we get the card name in /sys/clas/sound/card0/name? Lennart Poettering
2009-01-20 9:03 ` Jaroslav Kysela
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.