stream.c (95d002e0a34cb0f238abb39987f9980f325d8332) stream.c (66354f18fe5fbb65f7b10a519654013d6df09f80)
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 24 unchanged lines hidden (view full) ---

33#include "quirks.h"
34#include "endpoint.h"
35#include "pcm.h"
36#include "helper.h"
37#include "format.h"
38#include "clock.h"
39#include "stream.h"
40#include "power.h"
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 24 unchanged lines hidden (view full) ---

33#include "quirks.h"
34#include "endpoint.h"
35#include "pcm.h"
36#include "helper.h"
37#include "format.h"
38#include "clock.h"
39#include "stream.h"
40#include "power.h"
41#include "media.h"
41
42/*
43 * free a substream
44 */
45static void free_substream(struct snd_usb_substream *subs)
46{
47 struct audioformat *fp, *n;
48
49 if (!subs->num_formats)
50 return; /* not initialized */
51 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) {
52 kfree(fp->rate_table);
53 kfree(fp->chmap);
54 kfree(fp);
55 }
56 kfree(subs->rate_list.list);
57 kfree(subs->str_pd);
42
43/*
44 * free a substream
45 */
46static void free_substream(struct snd_usb_substream *subs)
47{
48 struct audioformat *fp, *n;
49
50 if (!subs->num_formats)
51 return; /* not initialized */
52 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) {
53 kfree(fp->rate_table);
54 kfree(fp->chmap);
55 kfree(fp);
56 }
57 kfree(subs->rate_list.list);
58 kfree(subs->str_pd);
59 snd_media_stream_delete(subs);
58}
59
60
61/*
62 * free a usb stream instance
63 */
64static void snd_usb_audio_stream_free(struct snd_usb_stream *stream)
65{

--- 1146 unchanged lines hidden ---
60}
61
62
63/*
64 * free a usb stream instance
65 */
66static void snd_usb_audio_stream_free(struct snd_usb_stream *stream)
67{

--- 1146 unchanged lines hidden ---