[pulseaudio-discuss] Pulseaudio sound card's unique identifier
Amar Akshat
amar.akshat at gmail.com
Thu Oct 18 19:20:54 PDT 2012
Hi Tanu,
I am attaching an output of pactl list, which contains all the sources
and sinks detected when a speaker having 4 identical sound cards was
plugged in.
Sinks 1 to 5, are the Speaker sinks,
alsa.card_name = "C-Media USB Headphone Set"
alsa.long_card_name = "C-Media USB Headphone Set at
usb-0000:00:1a.0-1.1.3, full speed"
card_name is same for all sound cards, and long_card_name includes the
usb address, which again is dependent upon the system.
Is there some serial number component, like mac-id in network devices,
which is unique for sound cards ?
Thanks,
Amar Akshat
On Fri, Oct 19, 2012 at 2:52 AM, Tanu Kaskinen <tanuk at iki.fi> wrote:
> On Thu, 2012-10-18 at 17:13 +0900, Amar Akshat wrote:
>> Hi,
>>
>> Is there a unique way of determining any sound card via PulseAudio?
>>
>> Write now I identify the sound cards by the alsa.card = "0" parameter,
>> which shows up in pactl list. However that is dependent upon the order
>> in which PulseAudio detected the sound card.
>>
>> So after a system reboot that might change.
>
> The card name (also visible in "pactl list" output) should be a quite
> reliable identifier.
>
> --
> Tanu
>
--
Thank you...
Amar Akshat (アマール)
"Walking on water and developing software from a specification are
easy if both are frozen."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pactl.list
Type: application/octet-stream
Size: 31742 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20121019/7ecfcefa/attachment-0001.obj>
More information about the pulseaudio-discuss
mailing list