diff options
| author | Liam Girdwood <liam.r.girdwood@linux.intel.com> | 2013-09-13 12:43:17 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2013-09-19 12:40:00 -0400 |
| commit | 4028b6c4c03f213260e9290ff3a6b5439aad07ce (patch) | |
| tree | 80f052d5561bfdca199a7050cc86a5e656713559 | |
| parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) | |
ALSA: compress: Fix compress device unregister.
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>
| -rw-r--r-- | sound/core/compress_offload.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index 98969541cbcc..5863ba6dd12b 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c | |||
| @@ -837,7 +837,8 @@ static int snd_compress_dev_disconnect(struct snd_device *device) | |||
| 837 | struct snd_compr *compr; | 837 | struct snd_compr *compr; |
| 838 | 838 | ||
| 839 | compr = device->device_data; | 839 | compr = device->device_data; |
| 840 | snd_unregister_device(compr->direction, compr->card, compr->device); | 840 | snd_unregister_device(SNDRV_DEVICE_TYPE_COMPRESS, compr->card, |
| 841 | compr->device); | ||
| 841 | return 0; | 842 | return 0; |
| 842 | } | 843 | } |
| 843 | 844 | ||
