13 Sep
2013
13 Sep
'13
7:43 p.m.
snd_unregister_device() should return the device type and not stream direction.
Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com --- sound/core/compress_offload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index a9ae4f3..fba7e7a 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -849,7 +849,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; }
--
1.8.1.2