summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2014-09-29 09:29:46 (GMT)
committerMatthew Weigel <Matthew.Weigel@freescale.com>2014-12-11 18:38:39 (GMT)
commitf911217e6edd48de4277eec2f112449d61fe710e (patch)
tree138c09a2cdcc706f25ac60d5992f98a93ee79616 /include/sound
parent0ec580b6a604a4fcfd65c3515459def643c8517a (diff)
downloadlinux-fsl-qoriq-f911217e6edd48de4277eec2f112449d61fe710e.tar.xz
ls102xa: audio: Workaround for SAI data transfer endian issue
Transmit Data Register(TDR) used as the destination address of EDMA transaction is in big-endian mode. The audio data in memory and EDMA transaction are in little-endian mode. For S16_LE format data, a workaround is to swap the original 16-bit data, and then write into the higher 16 bit of TDR. Signed-off-by: Alison Wang <alison.wang@freescale.com> Change-Id: Ib15832743e9a4c69792f2dad4cb00fbbc1d2daaa Reviewed-on: http://git.am.freescale.net:8181/21063 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jingchang Lu <jingchang.lu@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/pcm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index 84b10f9..a07b670 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -418,6 +418,8 @@ struct snd_pcm_substream {
#endif
/* misc flags */
unsigned int hw_opened: 1;
+ /* data swapped flags */
+ unsigned int data_swapped;
};
#define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0)