From: Takashi Iwai Subject: Re: [PATCH] cmipci - allow capture of raw spdif subframes Date: Tue, 13 Nov 2007 11:15:34 +0100 Message-ID: References: <4731ABBE.8030805@ipi.ac.ru> <4739AAFA.7020007@ipi.ac.ru> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id BF072244E1 for ; Tue, 13 Nov 2007 15:02:18 +0100 (CET) In-Reply-To: <4739AAFA.7020007@ipi.ac.ru> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: "Timofei V. Bondarenko" Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 13 Nov 2007 16:47:38 +0300, Timofei V. Bondarenko wrote: > > Takashi Iwai wrote: > > At Wed, 07 Nov 2007 15:12:46 +0300, > > Timofei V. Bondarenko wrote: > >> Hi. > >> > >> Enable capturing of raw 32bit IEC958_SUBFRAME. > >> > >> The 24-bits PCM data can be obtained using iec958 plugin. > >> > >> Known problem: captured stream may begin with either left or right > >> subframe. Since the iec958 plugin doesn't decode preamble it may swap > >> the channels sometime. > >> > >> Regards, > >> Tim. > > > > Applied this one, too. > > (Do you happen to have a fix for iec958 plugin, too? :) > > Not yet. > I'm in doubt about a clean way to drop one subframe from the raw stream. > Could you give me a hint? It'll be tricky, yes. We can prepend a zero in the first shot and keep one pending channel data to shift. For example, raw: R0 L0 R1 L1 R2 L2 ... R(n-1) L(n-1) | R(n) L(n) ... dec: 0 R0 L0 R1 L1 R2 ... L(n-2) R(n-1) | L(n-1) R(n) ... Takashi