From: Lee Revell <rlrevell@joe-job.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: [PATCH] emu10k1 multichannel support
Date: Fri, 28 Jan 2005 22:54:45 -0500 [thread overview]
Message-ID: <1106970885.3051.88.camel@krustophenia.net> (raw)
In-Reply-To: <s5hpt01tler.wl@alsa2.suse.de>
On Wed, 2005-01-19 at 17:48 +0100, Takashi Iwai wrote:
> At Tue, 18 Jan 2005 18:31:12 -0500,
> Lee Revell wrote:
> >
> > As promised, here's an updated patch to add real multichannel playback
> > support (and improved multichannel capture) to the emu10k1 driver.
> >
> > http://www.alsa-project.org/~rlrevell/emu10k1-multichannel-v001.patch
> >
> > Please test it and report any problems. I am especially interested in
> > any regressions that impact regular PCM playback (the hw:0,0 device).
>
> The new function looks great.
> Let me know if you think the patch is mature enough to be merged.
>
>
OK, I have posted the latest version:
http://www.alsa-project.org/~rlrevell/emu10k1-multichannel-v007.patch
All the known bugs I mentioned have been fixed. I would like to test
this version a while before signing off on it, then it should be ready
to merge. Since this patch touches almost every file in the driver, I
can split it up and post it as a series of patches if necessary.
The mixer controls for multichannel PCM have been fixed and moved to
IFACE_PCM. My solution was to use the same emu10k1_pcm_mixer_t
structure internally as for regular PCM substreams, but only the "mono"
component is exposed to userspace.
Regular PCM controls (32 substreams, one per substream):
numid=64,iface=MIXER,name='EMU10K1 PCM Send Routing'
; type=INTEGER,access=rw---,values=24,min=0,max=63,step=0
: values=0,1,2,3,0,0,0,0,0,1,2,3,0,0,0,0,0,1,2,3,0,0,0,0
numid=96,iface=MIXER,name='EMU10K1 PCM Send Volume'
; type=INTEGER,access=rw---,values=24,min=0,max=255,step=0
: values=255,255,0,0,0,0,0,0,255,0,0,0,0,0,0,0,0,255,0,0,0,0,0,0
numid=128,iface=MIXER,name='EMU10K1 PCM Volume'
; type=INTEGER,access=rw---,values=3,min=0,max=65535,step=0
: values=65535,65535,65535
Multichannel PCM controls (one 16 channel substream, one per channel)
numid=161,iface=PCM,name='Multichannel PCM Send Routing',index=1
; type=INTEGER,access=rw---,values=8,min=0,max=63,step=0
: values=1,0,13,14,60,61,62,63
numid=177,iface=PCM,name='Multichannel PCM Send Volume',index=1
; type=INTEGER,access=rw---,values=8,min=0,max=255,step=0
: values=255,0,0,0,0,0,0,0
numid=193,iface=PCM,name='Multichannel PCM Volume',index=1
; type=INTEGER,access=rw---,values=1,min=0,max=65535,step=0
: values=65535
Although this wastes a little space, because we allocate for 24 + 24 + 3
elements per channel and use 8 + 8 + 1, I think it's the cleanest
solution. Using a different structure for the multichannel mixer would
have made the patch a lot bigger.
Lee
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
next prev parent reply other threads:[~2005-01-29 3:54 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-18 23:31 [PATCH] emu10k1 multichannel support Lee Revell
2005-01-19 14:38 ` William
2005-01-19 16:10 ` Lee Revell
2005-01-19 16:59 ` Lee Revell
2005-01-19 17:49 ` William
2005-01-19 18:20 ` William
2005-01-19 18:24 ` Lee Revell
2005-01-19 16:48 ` Takashi Iwai
2005-01-19 19:10 ` Lee Revell
2005-01-21 21:45 ` Lee Revell
2005-01-23 0:49 ` James Courtier-Dutton
2005-01-26 18:05 ` Lee Revell
2005-01-23 20:05 ` Lee Revell
2005-01-29 3:54 ` Lee Revell [this message]
2005-01-31 16:09 ` Bug in " Mikael Magnusson
2005-02-10 22:17 ` Lee Revell
2005-02-10 23:26 ` Mikael Magnusson
2005-02-11 1:55 ` Lee Revell
2005-02-11 18:41 ` Lee Revell
2005-02-11 20:32 ` Mikael Magnusson
2005-02-10 23:33 ` Shayne O'Connor
2005-02-11 0:59 ` Lee Revell
2005-02-11 1:35 ` Shayne O'Connor
2005-02-11 1:33 ` Lee Revell
2005-02-11 2:31 ` Shayne O'Connor
2005-02-11 3:55 ` Lee Revell
2005-02-11 9:54 ` Takashi Iwai
2005-01-19 19:51 ` [Alsa-user] [PATCH] " Alexander Samad
2005-01-19 21:11 ` Lee Revell
2005-01-19 21:25 ` Alexander Samad
2005-01-19 22:16 ` Alexander Samad
2005-01-19 22:19 ` Alexander Samad
2005-01-19 22:54 ` [Alsa-user] " Lee Revell
2005-01-21 21:41 ` Lee Revell
2005-01-22 0:49 ` James Courtier-Dutton
2005-01-23 20:31 ` [Alsa-devel] " Alexander Samad
2005-01-25 17:09 ` Brian L Scipioni
2005-01-25 18:43 ` [Alsa-user] " Lee Revell
[not found] ` <1106743059.30763.21.camel@radium.gaugetheory.org>
[not found] ` <1106756424.2935.1.camel@krustophenia.net>
[not found] ` <s5hu0p3nimh.wl@alsa2.suse.de>
2005-01-27 18:41 ` [Alsa-user] emu10k1 alsamixer items Lee Revell
2005-01-28 15:33 ` Takashi Iwai
[not found] ` <1108148365.4267.22.camel@radium.gaugetheory.org>
2005-02-11 19:41 ` [PATCH] emu10k1 multichannel support Lee Revell
2005-02-11 20:11 ` Brian L Scipioni
2005-02-11 20:14 ` [Alsa-user] " Lee Revell
2005-02-15 14:20 ` Brian L Scipioni
[not found] ` <1108148630.4267.28.camel@radium.gaugetheory.org>
2005-02-11 19:44 ` emu10k1 MIDI record Lee Revell
2005-02-11 20:06 ` Brian L Scipioni
2005-02-11 20:12 ` [Alsa-user] " Lee Revell
2005-02-12 15:34 ` Brian L Scipioni
2005-02-12 23:51 ` [Alsa-user] " Lee Revell
2005-02-15 14:44 ` Brian L Scipioni
2005-01-25 21:33 ` [Alsa-user] [PATCH] emu10k1 multichannel support Lee Revell
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=1106970885.3051.88.camel@krustophenia.net \
--to=rlrevell@joe-job.com \
--cc=alsa-devel@lists.sourceforge.net \
--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 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.