Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305537
b: refs/heads/master
c: 2667b4b
h: refs/heads/master
i:
  305535: 1415f00
v: v3
  • Loading branch information
Mark Brown committed Apr 1, 2012
1 parent 26329b3 commit 0a41574
Show file tree
Hide file tree
Showing 3 changed files with 5 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: ecd1732f0118f3bc47429ceffa01593ec16c364d
refs/heads/master: 2667b4b8bef8598917adb1b4af46ed2b7d4fa0d7
1 change: 1 addition & 0 deletions trunk/include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ struct snd_soc_jack_gpio {
#endif

struct snd_soc_jack {
struct mutex mutex;
struct snd_jack *jack;
struct snd_soc_codec *codec;
struct list_head pins;
Expand Down
5 changes: 3 additions & 2 deletions trunk/sound/soc/soc-jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
int snd_soc_jack_new(struct snd_soc_codec *codec, const char *id, int type,
struct snd_soc_jack *jack)
{
mutex_init(&jack->mutex);
jack->codec = codec;
INIT_LIST_HEAD(&jack->pins);
INIT_LIST_HEAD(&jack->jack_zones);
Expand Down Expand Up @@ -75,7 +76,7 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask)
codec = jack->codec;
dapm = &codec->dapm;

mutex_lock(&codec->mutex);
mutex_lock(&jack->mutex);

oldstatus = jack->status;

Expand Down Expand Up @@ -109,7 +110,7 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask)
snd_jack_report(jack->jack, jack->status);

out:
mutex_unlock(&codec->mutex);
mutex_unlock(&jack->mutex);
}
EXPORT_SYMBOL_GPL(snd_soc_jack_report);

Expand Down

0 comments on commit 0a41574

Please sign in to comment.