Skip to content

Commit

Permalink
ALSA: compress: Fix compress device unregister.
Browse files Browse the repository at this point in the history
snd_unregister_device() should return the device type and not stream
direction.

Signed-off-by: Liam Girdwood <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Tested-by: Vinod Koul <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
lrgirdwo authored and tiwai committed Sep 19, 2013
1 parent 272b98c commit 4028b6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/core/compress_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4028b6c

Please sign in to comment.