Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332166
b: refs/heads/master
c: fff00cb
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Sep 26, 2012
1 parent 5e96fb9 commit f6dca28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76dbd2af787e6ceafab9e8618a5c67e78a2de4a7
refs/heads/master: fff00cbca13ab303b3995353d22c47e6b0f68fd8
8 changes: 5 additions & 3 deletions trunk/sound/soc/codecs/wm0010.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ static void wm0010_halt(struct snd_soc_codec *codec)
case WM0010_STAGE2:
case WM0010_FIRMWARE:
/* Remember to put chip back into reset */
gpio_set_value(wm0010->gpio_reset, wm0010->gpio_reset_value);
gpio_set_value_cansleep(wm0010->gpio_reset,
wm0010->gpio_reset_value);
/* Disable the regulators */
regulator_disable(wm0010->dbvdd);
regulator_bulk_disable(ARRAY_SIZE(wm0010->core_supplies),
Expand Down Expand Up @@ -387,7 +388,7 @@ static int wm0010_boot(struct snd_soc_codec *codec)
}

/* Release reset */
gpio_set_value(wm0010->gpio_reset, !wm0010->gpio_reset_value);
gpio_set_value_cansleep(wm0010->gpio_reset, !wm0010->gpio_reset_value);
spin_lock_irqsave(&wm0010->irq_lock, flags);
wm0010->state = WM0010_OUT_OF_RESET;
spin_unlock_irqrestore(&wm0010->irq_lock, flags);
Expand Down Expand Up @@ -918,7 +919,8 @@ static int __devexit wm0010_spi_remove(struct spi_device *spi)

if (wm0010->gpio_reset) {
/* Remember to put chip back into reset */
gpio_set_value(wm0010->gpio_reset, wm0010->gpio_reset_value);
gpio_set_value_cansleep(wm0010->gpio_reset,
wm0010->gpio_reset_value);
}

if (wm0010->irq)
Expand Down

0 comments on commit f6dca28

Please sign in to comment.