ALSA: HDA: change hd-audio as freezable workqueue
Haley Teng [Wed, 4 Jan 2012 14:31:17 +0000 (22:31 +0800)]
bug 921335

Change-Id: Ie5810536f1693a93c365a8cd9a51e4e9906d8c1a
Signed-off-by: Haley Teng <hteng@nvidia.com>
Reviewed-on: http://git-master/r/74904
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/75546
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

sound/pci/hda/hda_codec.c

index 3a1b47a..23a9c2e 100644 (file)
@@ -765,7 +765,7 @@ int /*__devinit*/ snd_hda_bus_new(struct snd_card *card,
 
        snprintf(bus->workq_name, sizeof(bus->workq_name),
                 "hd-audio%d", card->number);
-       bus->workq = create_singlethread_workqueue(bus->workq_name);
+       bus->workq = create_freezable_workqueue(bus->workq_name);
        if (!bus->workq) {
                snd_printk(KERN_ERR "cannot create workqueue %s\n",
                           bus->workq_name);