Fix generation of IEC958 subframes From: Nicolas Boullis <nboullis@debian.org>
Fix generation of IEC958 subframes
From: Nicolas Boullis <nboullis@debian.org>

While working on an ALSA driver for the audio part of em8300-based MPEG
decoder boards (Sigma Designs' Hollywood+ boards and Creative Labs' DXR3
boards), I think I discovered a bug in the code that generates IEC958
subframes from linear samples (iec958 plugin): M and W preambles are
swapped, and B preambles should only be used on even subframes. The
attached patch fixes this issue.

mikelima/alsa-lib,tiwai/alsa-lib,tiwai/alsa-lib,Distrotech/alsa-lib,mikelima/alsa-lib,takaswie/alsa-lib,lgirdwood/alsa-lib,gittup/alsa-lib,takaswie/alsa-lib,zedongchen/alsa-lib,lgirdwood/alsa-lib,mengdonglin/alsa-lib,tiwai/alsa-lib,zedongchen/alsa-lib,zedongchen/alsa-lib,mengdonglin/alsa-lib,lgirdwood/alsa-lib,Distrotech/alsa-lib,takaswie/alsa-lib,gittup/alsa-lib,takaswie/alsa-lib,alsa-project/alsa-lib,mengdonglin/alsa-lib,mengdonglin/alsa-lib,zedongchen/alsa-lib,Distrotech/alsa-lib,Distrotech/alsa-lib,takaswie/alsa-lib,mikelima/alsa-lib,Distrotech/alsa-lib,lgirdwood/alsa-lib,mengdonglin/alsa-lib,mikelima/alsa-lib,alsa-project/alsa-lib,tiwai/alsa-lib,alsa-project/alsa-lib,mikelima/alsa-lib,gittup/alsa-lib,zedongchen/alsa-lib,lgirdwood/alsa-lib,gittup/alsa-lib,alsa-project/alsa-lib