alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: David Henningsson <david.henningsson@canonical.com>
To: Jaroslav Kysela <perex@perex.cz>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: HDMI on HDA device=3
Date: Tue, 09 Nov 2010 16:16:41 +0100	[thread overview]
Message-ID: <4CD965D9.2050502@canonical.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1011091550450.29422@eeebox2.perex-int.cz>

On 2010-11-09 15:58, Jaroslav Kysela wrote:
> On Tue, 9 Nov 2010, David Henningsson wrote:
>
>> I have seen a few HDMIs which share the HDA controller with the onboard
>> sound card, but the codecs are different, e g the onboard one is at
>> address #0 and the HDMI is at address #3 - or even #3, #7, #8 and #9 in
>> some cases.
>>
>> Now, if the user specifies the device string hdmi:x (where x is card
>> name/number), I'd like it to kind of autodetect this and use DEV=3
>> instead of DEV=0, and without breaking the cards where the hdmi is a
>> separate card with a codec at address #0. However, it still seems like
>> the device is at DEV=3 somehow.
>>
>> Now, looking at /usr/share/alsa/cards/HDA-Intel.conf, I notice that
>> there are entries HDA-Intel.pcm.hdmi.0 which sets DEV=3, so it seems
>> like someone already thought of this. However, just using "hdmi:x" does
>> not trigger "DEV=3". I'm still not grepping all of the alsa lisp
>> architecture stuff, so could someone explain to me how the
>> HDA-Intel.pcm.hdmi.0 entry relates to the "hdmi:x" alsa device string?
>
> It's not about a lisp (this portion of code is not used at all). It's
> about the (partly) dynamic alsa-lib configuration.

Ok, thanks for the clarification.

> Use always indexes from 0.. (hdmi:0,0 etc..) Fist number is card number,
> second number is device number (which is logical device number mapped to
> different physical device number in case when HDA card contains both
> analog and HDMI sections).
>
> If you read HDA-Intel.conf, you'll get this device mapping (logical,
> physical):
>
> 0 -> 3
> 1 -> 7
> 2 -> 8
> 3 -> 9
>
> Perhaps, something does not work correctly?

Hmm, this is a little confusing. Do all these mean the same thing, and 
do they all correspond to the logical device number?

hdmi:x,y
hdmi:CARD=x,y
hdmi:CARD=x,DEV=y
hdmi:CARD=x,DEVICE=y

And would hdmi:x and hdmi:x,0 be the same thing?

And if all these correspond to the logical device number, is there any 
way you can specify the physical device number directly in the connect 
string?

-- 
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic

  reply	other threads:[~2010-11-09 15:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09 14:42 HDMI on HDA device=3 David Henningsson
2010-11-09 14:58 ` Jaroslav Kysela
2010-11-09 15:16   ` David Henningsson [this message]
2010-11-09 16:38     ` Jaroslav Kysela
2010-11-09 16:24 ` Mohammad Bahathir Hashim
2010-11-09 16:40   ` Jaroslav Kysela
2010-11-09 17:04     ` Mohammad Bahathir Hashim
2010-11-09 17:54       ` Jaroslav Kysela
2010-11-10  3:12         ` Mohammad Bahathir Hashim

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=4CD965D9.2050502@canonical.com \
    --to=david.henningsson@canonical.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=perex@perex.cz \
    /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).