Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wu Fengguang <fengguang.wu@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Shane W <shane-alsa@csy.ca>
Subject: Re: [PATCH 0/4] Intel HDMI audio fixes
Date: Thu, 12 Feb 2009 12:41:11 +0800	[thread overview]
Message-ID: <20090212044111.GA14061@localhost> (raw)
In-Reply-To: <s5hab8s8tm6.wl%tiwai@suse.de>

On Thu, Feb 12, 2009 at 01:02:41AM +0200, Takashi Iwai wrote:
> At Wed, 11 Feb 2009 14:54:48 -0800,
> Shane W wrote:
> > 
> > On Wed, Feb 11, 2009 at 11:42:00PM +0100, Takashi Iwai wrote:
> > > At Wed, 11 Feb 2009 14:32:41 -0800,
> > > Shane W wrote:
> > > > missing.  The order in the wav is:
> > > > front left
> > > > centre
> > > > front right
> > > > rear left
> > > > rear right
> > > > sub buz
> > > 
> > > The order assumed here doesn't match with ALSA mapping.
> > > In ALSA,
> > >   front left
> > >   front right
> > >   rear left
> > >   rear right
> > >   center
> > >   LFE
> > 
> > Sorry I meant the spoken order, I've no idea what the
> > channel mapping of a 6 channel wav is.
> > 
> > > Better to test with speaker-test program whether the mapping is
> > > correct.
> > 
> > Ah didn't know about this program.  Ok results with:
> > speaker-test -D hw:0,3 -s n
> > where n ranged from 0 to 6
> > 
> > -s 1 speaker-test says front left actual is front left
> > likewise with -s 2 for front right
> > -s 3 speaker-test says should be rear left actual is lfe
> > that is the sound came from lfe
> > -s 4 speaker-test says rear right actual is centre
> > -s 5 speaker-test says centre actual was rear left
> > and -s 6 speaker-test says lfe actual is rear right
> 
> Thanks.  Also make sure that you pass -c 6 option.

If I understand it right, the ALSA channel sequence is defined in
speaker-test as:

        static const char        *channel_name[MAX_CHANNELS] = {
          /*  0 */ N_("Front Left"),
          /*  1 */ N_("Front Right"),
          /*  2 */ N_("Rear Left"),
          /*  3 */ N_("Rear Right"),
          /*  4 */ N_("Center"),       /* wav file is "Front Center.wav" */
          /*  5 */ N_("LFE"),          /* wav file is "Rear Center.wav" */
          /*  6 */ N_("Side Left"),
          /*  7 */ N_("Side Right"),

Whereas the HDMI channel mapping selected for 6-channel playback is

        { .ca_index = 0x0b,  .speakers = {   0,    0,  RR,  RL,  FC,  LFE,  FR,  FL } },

Here the two mappings disagree on channels other than Front Left/Right.

In theory the channel mapping should be adjusted via AC_VERB_SET_HDMI_CHAN_SLOT.
However I found that verb takes no effect for G35/G45. So I'm afraid
there's no trivial ways we can adjust the channel mapping.

Thanks,
Fengguang

  reply	other threads:[~2009-02-12  4:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-11  7:22 [PATCH 0/4] Intel HDMI audio fixes Wu Fengguang
2009-02-11  7:22 ` [PATCH 1/4] hda - allow multi-channel HDMI audio playback when ELD is not present Wu Fengguang
2009-02-11  7:22 ` [PATCH 2/4] hda - enable HDMI audio pin out at module loading time Wu Fengguang
2009-02-11  7:22 ` [PATCH 3/4] hda - compute checksum in HDMI audio infoframe Wu Fengguang
2009-02-11  7:22 ` [PATCH 4/4] hda - add id for Intel IbexPeak integrated HDMI codec Wu Fengguang
2009-02-11  8:10 ` [PATCH 0/4] Intel HDMI audio fixes Takashi Iwai
2009-02-11  8:20   ` Wu Fengguang
     [not found] ` <20090211223241.GA31322@csy.ca>
2009-02-11 22:42   ` Takashi Iwai
     [not found]     ` <20090211225448.GA32203@csy.ca>
2009-02-11 23:02       ` Takashi Iwai
2009-02-12  4:41         ` Wu Fengguang [this message]
     [not found]           ` <20090213172821.GA843@csy.ca>
2009-02-14 10:28             ` Takashi Iwai
2009-02-12  1:25     ` Wu Fengguang
2009-02-12  7:54       ` Takashi Iwai
2009-02-12  7:58         ` Wu Fengguang
2009-02-20 13:05         ` [PATCH] speaker-test.c - add readability comments to speaker channels Wu Fengguang
2009-02-20 17:07           ` Takashi Iwai

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=20090212044111.GA14061@localhost \
    --to=fengguang.wu@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=shane-alsa@csy.ca \
    --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