ALSA: compress: Fix compress device unregister.
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Fri, 13 Sep 2013 16:43:17 +0000 (17:43 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Sep 2013 16:40:00 +0000 (18:40 +0200)
snd_unregister_device() should return the device type and not stream
direction.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Tested-by: Vinod Koul <vinod.koul@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c

index 98969541cbcc9c62ff81afb9818d2399dd6e7eb0..5863ba6dd12b7161c6b7dd9bda6a3d6205717320 100644 (file)
@@ -837,7 +837,8 @@ static int snd_compress_dev_disconnect(struct snd_device *device)
        struct snd_compr *compr;
 
        compr = device->device_data;
-       snd_unregister_device(compr->direction, compr->card, compr->device);
+       snd_unregister_device(SNDRV_DEVICE_TYPE_COMPRESS, compr->card,
+               compr->device);
        return 0;
 }