alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Control vs Device
@ 2010-04-27  6:47 Jean-Yves Avenard
  0 siblings, 0 replies; only message in thread
From: Jean-Yves Avenard @ 2010-04-27  6:47 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-27  6:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27  6:47 Control vs Device Jean-Yves Avenard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).