Hello everyone,

I'm trying to write some app that should show the user
the available ALSA playback devices, and also show
if the jack is plugged/unplugged.

As an example, on my laptop I have one card,
and two devices:

(1)
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

And I have a few controls associated with the card:

(2)
$ sudo amixer -c 0 controls
numid=24,iface=CARD,name='HDMI/DP,pcm=3 Jack'
numid=18,iface=CARD,name='Headphone Jack'
[and some more]

However, I really can't find *anywhere* how to relate (1) and (2)
above. I see that pulseaudio is doing this, so it's obviously possible
but I'm quite lost in the labyrinth of pulseaudio layers.

Does anyone has an idea? Namely: how can I ask ALSA which
controls belong to a given card,device tuple?

Thanks a lot in advance!

PS: I'll appreciate if nobody replies with "you could use pulseaudio" ;)
-- 
Ezequiel GarcĂ­a, VanguardiaSur
www.vanguardiasur.com.ar

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to