Skip to contentSkip to conversation

: IEC958 subframes are not generated correctly by the iec958 plugin

ALSA - lib 0001570 [email protected] 1 participant 1 message Nov 18, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1570>
======================================================================

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