From: bugtrack@alsa-project.org Subject: [ALSA - lib 0001570]: IEC958 subframes are not generated correctly by the iec958 plugin Date: Fri, 18 Nov 2005 17:03:13 +0100 Message-ID: <317fb0a19efd789fb8ab163bc12a6e54@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 1C9FA187 for ; Fri, 18 Nov 2005 17:03:14 +0100 (MET) 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: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been RESOLVED. ====================================================================== ====================================================================== Reported By: nboullis Assigned To: tiwai ====================================================================== Project: ALSA - lib Issue ID: 1570 Category: 0_general Reproducibility: always Severity: minor Priority: normal Status: resolved Resolution: fixed Fixed in Version: ====================================================================== Date Submitted: 11-17-2005 01:21 CET Last Modified: 11-18-2005 17:03 CET ====================================================================== Summary: IEC958 subframes are not generated correctly by the iec958 plugin Description: If I understand it correctly (see http://www.epanorama.net/documents/audio/spdif.html for example) all non-first channels should use the W preamble, while the first channel should use the B preamble once in each block (192 subframes) and the M preamble otherwise. This would lead to the following sequence of preambles: BWMWMWMWMW....MW On the other hand, the current code generates B preambles for all the channels once in each block, otherwise W preambles for the first channel, and M preambles for the other channels. This leads to the following sequence of preambles: BBWMWMWMWM....WM Hence, it appears that M and W preambles are swapped (but this would be fixable by swapping the values of the preambles), but also that there are extraneous B preambles. The attached patch fixes this issue. ====================================================================== ---------------------------------------------------------------------- tiwai - 11-18-05 17:03 ---------------------------------------------------------------------- Thanks, fixed on CVS. Issue History Date Modified Username Field Change ====================================================================== 11-17-05 01:21 nboullis New Issue 11-17-05 01:21 nboullis File Added: alsa-lib.patch 11-17-05 01:36 nboullis Issue Monitored: nboullis 11-18-05 17:03 tiwai Status new => resolved 11-18-05 17:03 tiwai Resolution open => fixed 11-18-05 17:03 tiwai Assigned To => tiwai 11-18-05 17:03 tiwai Note Added: 0006754 ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click