]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00222900 HDMI AUDIO: fix kernel panic when doing suspend-resume test
authorChen Liangjun <b36089@freescale.com>
Tue, 4 Sep 2012 08:51:41 +0000 (16:51 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:55 +0000 (14:12 +0200)
commit52e8374c25dfce3d857a6b08e03997c039b1d47c
tree494ccd807a1f105aec7957000ae8abb2fc562ace
parent265846076ac555284d731c08d8b6279e49441ac1
ENGR00222900 HDMI AUDIO: fix kernel panic when doing suspend-resume test

In MX6 series, HDMI audio driver is responsible for add IEC header to
audio samples. Driver would maintain variables to cover this work.

The old driver would cause memory access exceeding issue:
1. Resume from an playback. In this case, variable maintained by ALSA is
updated while variable maintained by HDMI driver is not updated. The
mmap copy operation would run into error state due to misalignment.
2. underrun!!! The same error would happens as the items above.

In this patch, add variable check while adding IED header.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
sound/soc/imx/imx-hdmi-dma.c