Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305534
b: refs/heads/master
c: e06ab3b
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Apr 1, 2012
1 parent f7611b5 commit 59c5aa9
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: 49575fb52bf76bf48e2d29ff034e8dad8d7ba638
refs/heads/master: e06ab3b8e82c89a8ada25f61fbd9f02d6ca3103f
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 59c5aa9

Please sign in to comment.