From: Takashi Iwai Subject: Re: ac3 in/out Date: Wed, 22 Mar 2006 12:09:20 +0100 Message-ID: References: <1142936836.4759.3.camel@localhost> <1142965025.4532.132.camel@mindpipe> <1143020483.11724.46.camel@localhost> <1143024848.11724.64.camel@localhost> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1143024848.11724.64.camel@localhost> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Johannes Berg Cc: Lee Revell , ALSA devel List-Id: alsa-devel@alsa-project.org At Wed, 22 Mar 2006 11:54:08 +0100, Johannes Berg wrote: > > On Wed, 2006-03-22 at 11:43 +0100, Takashi Iwai wrote: > > > > Yes, but apparently some hardware is capable of doing the conversion > > > (the chip apple uses for example: pcm3052, download data sheet for > > > pcm3052a if you're interested, it's the same chip) > > > > We don't support these chips yet :) > > Well I know, I'm writing a driver for it, hence my posting here :) Good to know :) > > > On the other hand, some other chips seem to rely on software to > > > multiplex the channel status bits into the bitstream which is currently > > > done by userspace as far as I can tell. > > > > Yeah, that's the current situation. > > Ok that's what I figured. Well, it has to change if I shall be able to > write a driver for the digital output of above chip. > > > To clarify what I thought in the above: > > The conversion itself wouldn't be too difficult. ALSA-lib has already > > many conversion plugins, e.g. iec958 plugin packs to 32bit spdif > > frames. > > Ok. But this still means that we have to export the information on what > kind of input we expect. As I said, above chip can't take a stream > that's interleaved with the channel status, yet other chips need that > kind of stream. If we want to have a unified API we need to interleave > the stream with the channel status bits for the cards that need that, > and have userland present the channel bits and the stream in different > controls, where there's even a bitmask present of which channel bits can > be changed... Yes, I've understood your demand. As mentioned, there is no API yet, so proposals are welcome. Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642