Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293492
b: refs/heads/master
c: 66bf932
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Mar 7, 2012
1 parent 5d13915 commit 82d7416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 96acc357bedad69fbc94d1b923a960af5a411c6f
refs/heads/master: 66bf93212f19548f5ed221356b2d70189cc18254
4 changes: 2 additions & 2 deletions trunk/sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@ static int soc_widget_write(struct snd_soc_dapm_widget *w, int reg, int val)

static inline void soc_widget_lock(struct snd_soc_dapm_widget *w)
{
if (w->codec)
if (w->codec && !w->codec->using_regmap)
mutex_lock(&w->codec->mutex);
else if (w->platform)
mutex_lock(&w->platform->mutex);
}

static inline void soc_widget_unlock(struct snd_soc_dapm_widget *w)
{
if (w->codec)
if (w->codec && !w->codec->using_regmap)
mutex_unlock(&w->codec->mutex);
else if (w->platform)
mutex_unlock(&w->platform->mutex);
Expand Down

0 comments on commit 82d7416

Please sign in to comment.