Control vs Device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

Currently maintaining the audio code on the MythTV project...

Lately, I've had reports on issues by users when using digital audio.

This for some reasons however fails, unless the device opened is
something like : IEC958:{AES0: 0x06}

When we are about to configure a digital audio stream, we do the
equivalent of what iecset does. So I would have thought that our code
should work under most circumstances...

Then I started to suspect the code setting the IEC958_AES0_NONAUDIO bit.

We always open the "default" controller like so:
snd_ctl_open(&ctl, "default", 0)

I thought that maybe the issue is that the "default" controller isn't
the one to open.

Is there a way, from the name of the device card ; to retrieve which
controller is used?

So before opening a specific ALSA audio device, I find the
corresponding controller, set the flag non-audio on it and continue as
usual..

I couldn't find any functions nor documentation that would help me
achieve such results..

Any hints would be greatly appreciated...

Thank you !!
Jean-Yves
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux