]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: don't use prohibited number to PDMACHCRn.SRS
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 10 May 2016 02:22:37 +0000 (02:22 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 10 May 2016 18:10:57 +0000 (19:10 +0100)
commit42357d36c645eae31e32111d7e86272ea4376af7
tree2b52b032437a4e510ac1701a39d4ac145a302d28
parent94aee92f50d7a82cfcf77bdc0876d35115cc5ad8
ASoC: rsnd: don't use prohibited number to PDMACHCRn.SRS

Current rsnd_dmapp_get_id() returns 0xFF as error code if system used
strange connection. It will be used as PDMACHCRn.SRS, but 0xFF is
prohibited number.
In order not to use prohibited number, this patch indicates error message
and returns 0x00 (same as SSI00) in error case.
Special thanks to Dung-san.

Reported-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c