Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47159
b: refs/heads/master
c: e250af2
h: refs/heads/master
i:
  47157: 3d0bb2b
  47155: 8992b4d
  47151: b7ae7c8
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Feb 9, 2007
1 parent f2abb7e commit 1e3a4bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 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: dc041e0b1fc918562aa3803cda166fee219a34d2
refs/heads/master: e250af291d6759518b574b33317eb3003012bfa2
10 changes: 2 additions & 8 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ int snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex)
unsol->queue[wp] = res;
unsol->queue[wp + 1] = res_ex;

queue_work(unsol->workq, &unsol->work);
schedule_work(&unsol->work);

return 0;
}
Expand Down Expand Up @@ -310,12 +310,6 @@ static int init_unsol_queue(struct hda_bus *bus)
snd_printk(KERN_ERR "hda_codec: can't allocate unsolicited queue\n");
return -ENOMEM;
}
unsol->workq = create_singlethread_workqueue("hda_codec");
if (! unsol->workq) {
snd_printk(KERN_ERR "hda_codec: can't create workqueue\n");
kfree(unsol);
return -ENOMEM;
}
INIT_WORK(&unsol->work, process_unsol_events);
unsol->bus = bus;
bus->unsol = unsol;
Expand All @@ -334,7 +328,7 @@ static int snd_hda_bus_free(struct hda_bus *bus)
if (! bus)
return 0;
if (bus->unsol) {
destroy_workqueue(bus->unsol->workq);
flush_scheduled_work();
kfree(bus->unsol);
}
list_for_each_safe(p, n, &bus->codec_list) {
Expand Down
1 change: 0 additions & 1 deletion trunk/sound/pci/hda/hda_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ struct hda_bus_unsolicited {
unsigned int rp, wp;

/* workqueue */
struct workqueue_struct *workq;
struct work_struct work;
struct hda_bus *bus;
};
Expand Down

0 comments on commit 1e3a4bf

Please sign in to comment.