ASoC: rockchip: fix a misjudgement by return
Being careless, judge the return value of snd_soc_card_jack_new is opposite, so it should be fixed. Signed-off-by: Xing Zheng <zhengxing@rock-chips.com> Reviewed-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
ebb75c0bdb
commit
f8ce20005d
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ static int rk_init(struct snd_soc_pcm_runtime *runtime)
|
||||||
SND_JACK_BTN_0 | SND_JACK_BTN_1 |
|
SND_JACK_BTN_0 | SND_JACK_BTN_1 |
|
||||||
SND_JACK_BTN_2 | SND_JACK_BTN_3,
|
SND_JACK_BTN_2 | SND_JACK_BTN_3,
|
||||||
&headset_jack, NULL, 0);
|
&headset_jack, NULL, 0);
|
||||||
if (!ret) {
|
if (ret) {
|
||||||
dev_err(card->dev, "New Headset Jack failed! (%d)\n", ret);
|
dev_err(card->dev, "New Headset Jack failed! (%d)\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue