alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Raymond Yau <superquad.vortex2@gmail.com>
Cc: alsa-devel@alsa-project.org, pulseaudio-discuss@lists.freedesktop.org
Subject: Re: Channel map API patches: to be 3.7 or not to be?
Date: Tue, 11 Sep 2012 14:14:19 +0200	[thread overview]
Message-ID: <s5hehm8rc2s.wl%tiwai@suse.de> (raw)
In-Reply-To: <s5hbohdezpc.wl%tiwai@suse.de>

At Tue, 11 Sep 2012 10:22:23 +0200,
Takashi Iwai wrote:
> 
> At Tue, 11 Sep 2012 16:10:43 +0800,
> Raymond Yau wrote:
> > 
> > 2012-9-11 上午1:43 於 "Takashi Iwai" <tiwai@suse.de> 寫道:
> > >
> > > Hi,
> > >
> > > does anyone have concern if I push the current channel map API patches
> > > (in sound-unstable git tree topic/tlv-chmap branch) for linux-next,
> > > i.e. for inclusion to 3.7 kernel?
> > >
> > > I don't worry too much about the kernel API.  This can be refactored
> > > later.  But the kernel ABI must retain, so we won't change in an
> > > incompatible way any longer once after it's merged to the upstream.
> > >
> > > So, if anyone sees a flaw in the kernel ABI definition using control
> > > elements, let me know.
> > >
> > > (But note that the API can't be perfect for all generic purposes.
> > >  It's designed to be "good enough" for a big lack for multi-channel
> > >  streaming.  Of course, this doesn't discourage to use the API for any
> > >  other purposes.)
> > >
> > 
> > How about the channel map of the usb mono playback device and those sound
> > card which can pan mono to stereo speakers and headphone?
> 
> If the device specifies which speaker position the mono channel is
> for, then you can map it properly.  Unless it's really specified by
> the device, the mono stream is UNKNOWN position in general.

BTW, this reminds me of an open question:
  is it useful to add SND_CHMAP_MONO, or is it just redundant?

It's nothing but indicating a mono channel without any channel
position, so I supposed SND_CHMAP_UNKNOWN being sufficient.  OTOH,
SND_CHMAP_MONO would give a clear sign of mono streams while
SND_CHMAP_UNKNOWN could be used for any other exceptional purposes.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2012-09-11 12:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-10 17:43 Channel map API patches: to be 3.7 or not to be? Takashi Iwai
2012-09-11  8:10 ` Raymond Yau
2012-09-11  8:22   ` Takashi Iwai
2012-09-11 12:14     ` Takashi Iwai [this message]
2012-09-11 12:19       ` Clemens Ladisch
2012-09-11 12:24         ` Takashi Iwai
2012-09-12 16:03           ` Takashi Iwai
2012-09-12 16:32             ` Clemens Ladisch
2012-09-12 17:20               ` [alsa-devel] " Tanu Kaskinen
2012-09-12  1:35       ` Raymond Yau
2012-09-12  6:21         ` Takashi Iwai
2012-09-17 10:46           ` Raymond Yau
2012-09-17 10:49             ` Takashi Iwai
2012-09-17  9:39 ` 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=s5hehm8rc2s.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=pulseaudio-discuss@lists.freedesktop.org \
    --cc=superquad.vortex2@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 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).