[alsa-devel] Compressed Audio Playback/Capture through ALSA framework
perex at perex.cz
Wed Mar 16 08:23:39 CET 2011
On Tue, 15 Mar 2011, Patrick Lai wrote:
> On 3/15/2011 1:40 PM, Eliot Blennerhassett wrote:
>> On 16/03/11 07:31, Patrick Lai wrote:
>>> Is there a precedent for playback/capture compressed audio stream
>>> through ALSA playback/capture interface if underlying hardware supports
>>> decoder + sink& encoder + source capabilities?
>> No. (Apart from AC3 passthrough to spdif output)
> I presume you are referring to IEC958 format. Are there ASoC drivers
> that support IEC958 format already? Why is AC3 passthrough acceptable
> but not other compressed audio format?
I agree. AC3, DTS and also MPEG2 formats should work. The PCM parameters
for VBR streams are fixed (at least I don't know about any format which
changes the rate/bits/channels inside the stream). So we can use IEC958 (
IEC 61937) and for other formats we can create similar extensions.
The only part which we can improve in the ALSA layer may be more better
synchronization handling in case of xruns. Because these compressed
streams are transferred in blocks, the whole block might be dropped.
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
More information about the Alsa-devel