ASoC: sun4i-codec: pass through clk_set_rate error
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 1 Dec 2015 11:06:47 +0000 (12:06 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 1 Dec 2015 15:41:29 +0000 (15:41 +0000)
commit8400ddf4ac4907323c7704fe57e4d138d04ae3b3
treece165e57a5aa2f0477b1f01609402392c31f2880
parent0837d8780c766bffe1fc5a5da54fb2620923a6d0
ASoC: sun4i-codec: pass through clk_set_rate error

Commit 1fb34b48361e ('ASoC: sun4i: Implement MIC1 capture') added back some
code that disregards the clk_set_rate error code and always returns
-EINVAL. Fix that and return the code in order to have more clue about
what's going on.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-codec.c