OSDN Git Service

ASoC: rcar: clear DE bit only in PDMACHCR when it stops
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 14 Mar 2017 00:34:49 +0000 (09:34 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:22 +0000 (10:07 +0100)
commit8652baa5a31d9f65f93464d27d9a330e3dee6191
treefe7881cdc1f687b0933d77cc39f3e542665e491c
parentfd2530a4ee62c17bc8e8715cc6f449c1a1f7f212
ASoC: rcar: clear DE bit only in PDMACHCR when it stops

[ Upstream commit 62a10498afb27370ec6018e9d802b74850fd8d9a ]

R-Car datasheet indicates "Clear DE in PDMACHCR" for transfer stop,
but current code clears all bits in PDMACHCR.
Because of this, DE bit might never been cleared,
and it causes CMD overflow. This patch fixes this issue.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sh/rcar/dma.c