diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-06-29 06:15:23 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-07 15:48:59 +0300 |
commit | 93ec3a1ad5b86aef8ca90d2b149ded0f6bb689f5 (patch) | |
tree | 7403030f98a0f435a7662aa5b5adb00bada97d1f /sound/soc/codecs/ak4642.c | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) | |
download | linux-93ec3a1ad5b86aef8ca90d2b149ded0f6bb689f5.tar.xz |
ASoC: 88pm860x: Don't change pm860x->dir setting if pm860x_set_dai_sysclk fails
88pm860x does not support slave mode, so it returns -EINVAL for
PM860X_CLK_DIR_IN. Current code changes pm860x->dir setting before
return error, so it has impact on the logic of pm860x_pcm_set_dai_fmt.
This patch adds comment for the reason to return -EINVAL for
PM860X_CLK_DIR_IN, and avoid changing pm860x->dir setting if
pm860x_set_dai_sysclk fails.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/ak4642.c')
0 files changed, 0 insertions, 0 deletions