All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Xinhui Zhou <zxinhui2001@gmail.com>
Cc: alsa-devel@alsa-project.org, perex@perex.cz, tiwai@suse.com,
	alsa-user@lists.sourceforge.net
Subject: Re: Help on specifying 'chmap' in asound.conf
Date: Tue, 16 Jul 2024 17:57:10 +0200	[thread overview]
Message-ID: <87le21z5wp.wl-tiwai@suse.de> (raw)
In-Reply-To: <CABsjGHLPYa26noDK3LDR_9EDxjXRZ9E5cEDAAyYnCEiuCPYWTg@mail.gmail.com>

On Tue, 16 Jul 2024 08:09:21 +0200,
Xinhui Zhou wrote:
> 
> Dear all,
> 
>    I am having a question regarding how to specify 'champ' for a
> plugin.  I do not see any examples of this. I tried many ways to
> specify but failed.
> 
>   As indicated by the link below,   I can specify the MAP as a string
> array.   Can someone provide one example on how exactly this    [chmap
> MAP]  can be specified?
> 
> "
> pcm.name {
>         type cras
>     [chmap MAP]     # Provide channel maps; MAP is a string array
> }
> "
> https://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
> 
> 
> I can something like these, but none of these work for me.
> 
> chmap LFE
> chmap "LFE"
> chmap FR,FL,LFE
> champ "FR,FL,LFE"

You need to define a composite array, e.g. pass like
    chmap [ "FL,FR" ]
instead.

For multiple configurations, you can put more items such as
    chmap [ "FC" "FL,FR" "FL,FR,FC,LFE" ]


HTH,

Takashi

  reply	other threads:[~2024-07-16 15:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.0.1673946668.16556.alsa-user@lists.sourceforge.net>
     [not found] ` <0c99f6e0-c2f8-bc30-be10-314708382345@sc-riebe.de>
     [not found]   ` <c21f506a-255e-5885-7dde-f9716187536e@sc-riebe.de>
2024-07-16  6:09     ` Help on specifying 'chmap' in asound.conf Xinhui Zhou
2024-07-16 15:57       ` Takashi Iwai [this message]
2024-07-17 12:31         ` [Alsa-user] " Sergei Steshenko
2024-07-19 13:53           ` 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=87le21z5wp.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=alsa-user@lists.sourceforge.net \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=zxinhui2001@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.