Skip to content

Commit

Permalink
Update tegra_rt5631.c
Browse files Browse the repository at this point in the history
  • Loading branch information
clamor-s authored and digetx committed Jan 26, 2021
1 parent 9f01937 commit 4d5bc6d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sound/soc/tegra/tegra_rt5631.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ static int tegra_rt5631_init(struct snd_soc_pcm_runtime *rtd)

if (machine->gpiod_hp_det) {
tegra_rt5631_hp_jack_gpio.desc = machine->gpiod_hp_det;
snd_soc_jack_add_gpios(&tegra_rt5631_hp_jack, 1, &tegra_rt5631_hp_jack_gpio);
if (ret) {
ret = snd_soc_jack_add_gpios(&tegra_rt5631_hp_jack, 1, &tegra_rt5631_hp_jack_gpio);
if (ret)
dev_err(rtd->dev, "jack detection gpios not added, error %d\n", ret);
}
}

return 0;
Expand Down

0 comments on commit 4d5bc6d

Please sign in to comment.