alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Jean-Yves Avenard <jyavenard@gmail.com>
To: alsa-devel@alsa-project.org
Subject: Control vs Device
Date: Tue, 27 Apr 2010 16:47:20 +1000	[thread overview]
Message-ID: <z2zcb44e8371004262347qc9c225ebva610b998b0df9632@mail.gmail.com> (raw)

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

                 reply	other threads:[~2010-04-27  6:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=z2zcb44e8371004262347qc9c225ebva610b998b0df9632@mail.gmail.com \
    --to=jyavenard@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).