Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

ALSA: compress: Fix compress device unregister.



snd_unregister_device() should return the device type and not stream
direction.

Signed-off-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
Tested-by: default avatarVinod Koul <vinod.koul@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 272b98c6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}