Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270675
b: refs/heads/master
c: 46dd0b9
h: refs/heads/master
i:
  270673: 785f74e
  270671: 9720d21
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Sep 26, 2011
1 parent e1e5275 commit 7eabf05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: e71a5e5af69185f1c2e5c1bf4ee90d92dd1c1e8a
refs/heads/master: 46dd0b93a086b798a040c06479eabcb87cd29344
8 changes: 4 additions & 4 deletions trunk/sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ struct twl6040_output {

struct twl6040_jack_data {
struct snd_soc_jack *jack;
struct delayed_work work;
int report;
};

Expand All @@ -99,7 +100,6 @@ struct twl6040_data {
struct twl6040_jack_data hs_jack;
struct snd_soc_codec *codec;
struct workqueue_struct *workqueue;
struct delayed_work delayed_work;
struct mutex mutex;
struct twl6040_output headset;
struct twl6040_output handsfree;
Expand Down Expand Up @@ -734,7 +734,7 @@ EXPORT_SYMBOL_GPL(twl6040_hs_jack_detect);
static void twl6040_accessory_work(struct work_struct *work)
{
struct twl6040_data *priv = container_of(work,
struct twl6040_data, delayed_work.work);
struct twl6040_data, hs_jack.work.work);
struct snd_soc_codec *codec = priv->codec;
struct twl6040_jack_data *hs_jack = &priv->hs_jack;

Expand All @@ -747,7 +747,7 @@ static irqreturn_t twl6040_audio_handler(int irq, void *data)
struct snd_soc_codec *codec = data;
struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec);

queue_delayed_work(priv->workqueue, &priv->delayed_work,
queue_delayed_work(priv->workqueue, &priv->hs_jack.work,
msecs_to_jiffies(200));

return IRQ_HANDLED;
Expand Down Expand Up @@ -1534,7 +1534,7 @@ static int twl6040_probe(struct snd_soc_codec *codec)
goto work_err;
}

INIT_DELAYED_WORK(&priv->delayed_work, twl6040_accessory_work);
INIT_DELAYED_WORK(&priv->hs_jack.work, twl6040_accessory_work);

mutex_init(&priv->mutex);

Expand Down

0 comments on commit 7eabf05

Please sign in to comment.