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)
commitee057d2ee73259f455cfbb7a4db808fc6b6405dd
tree2b52b032437a4e510ac1701a39d4ac145a302d28
parent1a5658c213116d56a1a38e83588f6636a57d6374
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