alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Wang Xingchao <xingchao.wang@intel.com>
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de, anssi.hannula@iki.fi, alanwww1@xbmc.org,
	fengguang.wu@intel.com, Wang Xingchao <xingchao.wang@intel.com>
Subject: [PATCH] HDA-Intel: Fix wrong CTLINDEX entries for HBR Passthrough
Date: Thu,  6 Sep 2012 10:33:20 +0800	[thread overview]
Message-ID: <1346898800-13951-1-git-send-email-xingchao.wang@intel.com> (raw)

>From Anssi Hannula:
"The CTLINDEX=x values in /usr/share/alsa/cards/HDA-Intel.conf are off
when you have S/PDIF output in the same card as HDMI, which is often the case
on Intel.

The workaround is to bump all the CTLINDEX=x values one step up in the
HDA-Intel.pcm.hdmi.foo entries, i.e.
CTLINDEX=0 => CTLINDEX=1
CTLINDEX=1 => CTLINDEX=2
etc, in the /usr/share/alsa/cards/HDA-Intel.conf."

Signed-off-by: Wang Xingchao <xingchao.wang@intel.com>
---
 src/conf/cards/HDA-Intel.conf |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/conf/cards/HDA-Intel.conf b/src/conf/cards/HDA-Intel.conf
index d4f2667..7d6de8f 100644
--- a/src/conf/cards/HDA-Intel.conf
+++ b/src/conf/cards/HDA-Intel.conf
@@ -211,7 +211,7 @@ HDA-Intel.pcm.hdmi.0 {
 			"cards.HDA-Intel.pcm.hdmi.common:"
 			"CARD=" $CARD ","
 			"DEVICE=3,"
-			"CTLINDEX=0,"
+			"CTLINDEX=1,"
 			"AES0=" $AES0 ","
 			"AES1=" $AES1 ","
 			"AES2=" $AES2 ","
@@ -234,7 +234,7 @@ HDA-Intel.pcm.hdmi.1 {
 			"cards.HDA-Intel.pcm.hdmi.common:"
 			"CARD=" $CARD ","
 			"DEVICE=7,"
-			"CTLINDEX=1,"
+			"CTLINDEX=2,"
 			"AES0=" $AES0 ","
 			"AES1=" $AES1 ","
 			"AES2=" $AES2 ","
@@ -257,7 +257,7 @@ HDA-Intel.pcm.hdmi.2 {
 			"cards.HDA-Intel.pcm.hdmi.common:"
 			"CARD=" $CARD ","
 			"DEVICE=8,"
-			"CTLINDEX=2,"
+			"CTLINDEX=3,"
 			"AES0=" $AES0 ","
 			"AES1=" $AES1 ","
 			"AES2=" $AES2 ","
@@ -280,7 +280,7 @@ HDA-Intel.pcm.hdmi.3 {
 			"cards.HDA-Intel.pcm.hdmi.common:"
 			"CARD=" $CARD ","
 			"DEVICE=9,"
-			"CTLINDEX=3,"
+			"CTLINDEX=4,"
 			"AES0=" $AES0 ","
 			"AES1=" $AES1 ","
 			"AES2=" $AES2 ","
-- 
1.7.9.5

             reply	other threads:[~2012-09-06  2:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06  2:33 Wang Xingchao [this message]
2012-09-06  6:59 ` [PATCH] HDA-Intel: Fix wrong CTLINDEX entries for HBR Passthrough Takashi Iwai
2012-09-10  3:46 ` Fengguang Wu

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=1346898800-13951-1-git-send-email-xingchao.wang@intel.com \
    --to=xingchao.wang@intel.com \
    --cc=alanwww1@xbmc.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=anssi.hannula@iki.fi \
    --cc=fengguang.wu@intel.com \
    --cc=tiwai@suse.de \
    /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).