Commit 4028b6c4 authored by Liam Girdwood's avatar Liam Girdwood Committed by Takashi Iwai

ALSA: compress: Fix compress device unregister.

snd_unregister_device() should return the device type and not stream
Signed-off-by: default avatarLiam Girdwood <>
Acked-by: default avatarVinod Koul <>
Tested-by: default avatarVinod Koul <>
Cc: <>
Signed-off-by: default avatarTakashi Iwai <>
parent 272b98c6
......@@ -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,
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment