Lines Matching refs:cobsc
25 static void snd_cobalt_card_free(struct snd_cobalt_card *cobsc) in snd_cobalt_card_free() argument
27 if (cobsc == NULL) in snd_cobalt_card_free()
30 cobsc->s->alsa = NULL; in snd_cobalt_card_free()
32 kfree(cobsc); in snd_cobalt_card_free()
46 struct snd_cobalt_card **cobsc) in snd_cobalt_card_create() argument
48 *cobsc = kzalloc(sizeof(struct snd_cobalt_card), GFP_KERNEL); in snd_cobalt_card_create()
49 if (*cobsc == NULL) in snd_cobalt_card_create()
52 (*cobsc)->s = s; in snd_cobalt_card_create()
53 (*cobsc)->sc = sc; in snd_cobalt_card_create()
55 sc->private_data = *cobsc; in snd_cobalt_card_create()
61 static int snd_cobalt_card_set_names(struct snd_cobalt_card *cobsc) in snd_cobalt_card_set_names() argument
63 struct cobalt_stream *s = cobsc->s; in snd_cobalt_card_set_names()
65 struct snd_card *sc = cobsc->sc; in snd_cobalt_card_set_names()
86 struct snd_cobalt_card *cobsc; in cobalt_alsa_init() local
103 ret = snd_cobalt_card_create(s, sc, &cobsc); in cobalt_alsa_init()
111 snd_cobalt_card_set_names(cobsc); in cobalt_alsa_init()
113 ret = snd_cobalt_pcm_create(cobsc); in cobalt_alsa_init()
123 s->alsa = cobsc; in cobalt_alsa_init()
138 kfree(cobsc); in cobalt_alsa_init()
145 struct snd_cobalt_card *cobsc = s->alsa; in cobalt_alsa_exit() local
147 if (cobsc) in cobalt_alsa_exit()
148 snd_card_free(cobsc->sc); in cobalt_alsa_exit()