Merge tag 'sound-4.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[sfrench/cifs-2.6.git] / sound / usb / stream.c
index 8e9548bc1f1a922e6ceb5c99450da8ba28ee22ff..6fe7f210bd4eae0a57095ad46da85b3ec4726adf 100644 (file)
@@ -36,6 +36,7 @@
 #include "format.h"
 #include "clock.h"
 #include "stream.h"
+#include "media.h"
 
 /*
  * free a substream
@@ -52,6 +53,7 @@ static void free_substream(struct snd_usb_substream *subs)
                kfree(fp);
        }
        kfree(subs->rate_list.list);
+       media_snd_stream_delete(subs);
 }