]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ml26124: Remove duplicate code
authorAxel Lin <axel.lin@ingics.com>
Sun, 14 Jun 2015 02:28:01 +0000 (10:28 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 Jun 2015 10:05:43 +0000 (11:05 +0100)
commitfc7b986dab74e4709a0b8e79f6e30180ab593099
tree963675e41f0658c9af8711f0dd9f911d069828b7
parentce88222e1fb53c38d3b94c3b5ceebe1d2ab4956d
ASoC: ml26124: Remove duplicate code

Current code has duplicate code for 16000, 32000 and 48000 sample rates.
get_srate() returns negative error code for unsupported rate, so we can
remove the duplicate code in the swith cases by calling get_srate() first.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ml26124.c