From c8061b32fb8f1935b64407b34df894aa83db1779 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 5 Feb 2009 07:42:28 +0100 Subject: [PATCH] --- yaml --- r: 133015 b: refs/heads/master c: 306f47bd639b352b29193a3b69ef1d3546003efb h: refs/heads/master i: 133013: 0d49348aeddcfce86ec649b8324fe90cd644ce47 133011: e6c2f747b7dc03e5038914d469e2a6823e4d18f3 133007: fb4ddf7251a5359fc9e1e2a097b12706526ab313 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/hda_codec.c | 9 +++++---- trunk/sound/pci/hda/hda_codec.h | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 8c10830ccc16..38a7d994c225 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8f95c102c562851d8789fe813569db233d3f5378 +refs/heads/master: 306f47bd639b352b29193a3b69ef1d3546003efb diff --git a/trunk/sound/pci/hda/hda_codec.c b/trunk/sound/pci/hda/hda_codec.c index a259b3eb4f73..c9158799ccb6 100644 --- a/trunk/sound/pci/hda/hda_codec.c +++ b/trunk/sound/pci/hda/hda_codec.c @@ -487,7 +487,6 @@ int /*__devinit*/ snd_hda_bus_new(struct snd_card *card, { struct hda_bus *bus; int err; - char qname[8]; static struct snd_device_ops dev_ops = { .dev_register = snd_hda_bus_dev_register, .dev_free = snd_hda_bus_dev_free, @@ -517,10 +516,12 @@ int /*__devinit*/ snd_hda_bus_new(struct snd_card *card, mutex_init(&bus->cmd_mutex); INIT_LIST_HEAD(&bus->codec_list); - snprintf(qname, sizeof(qname), "hda%d", card->number); - bus->workq = create_workqueue(qname); + snprintf(bus->workq_name, sizeof(bus->workq_name), + "hd-audio%d", card->number); + bus->workq = create_singlethread_workqueue(bus->workq_name); if (!bus->workq) { - snd_printk(KERN_ERR "cannot create workqueue %s\n", qname); + snd_printk(KERN_ERR "cannot create workqueue %s\n", + bus->workq_name); kfree(bus); return -ENOMEM; } diff --git a/trunk/sound/pci/hda/hda_codec.h b/trunk/sound/pci/hda/hda_codec.h index 5810ef588402..09a332ada0c6 100644 --- a/trunk/sound/pci/hda/hda_codec.h +++ b/trunk/sound/pci/hda/hda_codec.h @@ -614,6 +614,7 @@ struct hda_bus { /* unsolicited event queue */ struct hda_bus_unsolicited *unsol; + char workq_name[16]; struct workqueue_struct *workq; /* common workqueue for codecs */ /* assigned PCMs */