[alsa-devel] [PATCH MC Next Gen v3 1/6] sound/usb: Fix media_stream_delete() to remove intf devnode
Shuah Khan
shuahkh at osg.samsung.com
Tue Nov 10 21:40:44 CET 2015
media_stream_delete() doesn't remove intf_devnode. Fix it to
call media_devnode_remove() to remove the intf_devnode.
Signed-off-by: Shuah Khan <shuahkh at osg.samsung.com>
---
sound/usb/media.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/usb/media.c b/sound/usb/media.c
index 9b455ad..0cbfee6 100644
--- a/sound/usb/media.c
+++ b/sound/usb/media.c
@@ -173,6 +173,7 @@ void media_stream_delete(struct snd_usb_substream *subs)
mdev = media_device_find_devres(&subs->dev->dev);
if (mdev) {
media_entity_remove_links(&mctl->media_entity);
+ media_devnode_remove(mctl->intf_devnode);
media_device_unregister_entity(&mctl->media_entity);
media_entity_cleanup(&mctl->media_entity);
}
--
2.5.0
More information about the Alsa-devel
mailing list