From: Takashi Iwai Subject: Re: ac3 in/out Date: Wed, 22 Mar 2006 11:43:21 +0100 Message-ID: References: <1142936836.4759.3.camel@localhost> <1142965025.4532.132.camel@mindpipe> <1143020483.11724.46.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: <1143020483.11724.46.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 10:41:22 +0100, Johannes Berg wrote: > > On Tue, 2006-03-21 at 19:37 +0100, Takashi Iwai wrote: > > > The SPDIF status bits are generic and rather depending on the data > > than the device you output. That is, more or less, the SPDIF I/O is > > abstracted. > > Are you talking about alsa or spdif itself? I mean ALSA spdif PCM interface. > > Regarding AC3, I'm not against to create a new easy-to-use API > > function. One reason is that AC3 over SPDIF needs conversions of > > packets and also requires the sync work, in addition to the SPDIF > > status bits mentioned in the above. Such a job can be certainly > > hidden in the system instead of application itself. > > 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 :) > 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. > > If we create a new one, we should better think of other compressed > > formats, too... > > They're essentially the same to the spdif output though -- just a > non-pcm bitstream. Yes. 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. The problem of compressed stream is that the rates of the input stream and the output audio signal are different especially if the input stream is VBR. This style of input stream doesn't match with the current ALSA style because ALSA PCM assumes the constant rate. Changing this is more harder work. 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