]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MLK-9731 ASoC: imx-hdmi-dma: audio output is noisy in long time playback
authorShengjiu Wang <shengjiu.wang@freescale.com>
Fri, 31 Oct 2014 05:51:20 +0000 (13:51 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:34 +0000 (21:18 -0600)
commitf35a8110657a1c693c395e6da6609d66c4ea52c9
treee8ba4987a175e42797d73069b064453363ca274b
parent1f96248f5e484a9e6772e7ecaa190a7ffa4fb39b
MLK-9731 ASoC: imx-hdmi-dma: audio output is noisy in long time playback

In the frame_to_bytes(), when hw_ptr*frame_bits exceed the maxmum of unsigned
long, the return value is saturated, so the appl_bytes is wrong.
This patch is to correct the usage of frame_to_bytes().

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 9e66132d9c96305b65aa5fa3ba8a35271a04ded9)
sound/soc/fsl/imx-hdmi-dma.c