提交 ea67afc3 编写于 作者: M Mark Brown

ASoC: pcm3008: Use gpio_set_value_cansleep()

We don't set the GPIO values from atomic context so support GPIOs that
can't be controlled from atomic context.
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 d57a79ac
......@@ -54,8 +54,8 @@ static int pcm3008_soc_suspend(struct snd_soc_codec *codec)
{
struct pcm3008_setup_data *setup = codec->dev->platform_data;
gpio_set_value(setup->pdad_pin, 0);
gpio_set_value(setup->pdda_pin, 0);
gpio_set_value_cansleep(setup->pdad_pin, 0);
gpio_set_value_cansleep(setup->pdda_pin, 0);
return 0;
}
......@@ -64,8 +64,8 @@ static int pcm3008_soc_resume(struct snd_soc_codec *codec)
{
struct pcm3008_setup_data *setup = codec->dev->platform_data;
gpio_set_value(setup->pdad_pin, 1);
gpio_set_value(setup->pdda_pin, 1);
gpio_set_value_cansleep(setup->pdad_pin, 1);
gpio_set_value_cansleep(setup->pdda_pin, 1);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册