Lines Matching refs:sc
89 static void snd_cx18_card_private_free(struct snd_card *sc) in snd_cx18_card_private_free() argument
91 if (sc == NULL) in snd_cx18_card_private_free()
93 snd_cx18_card_free(sc->private_data); in snd_cx18_card_private_free()
94 sc->private_data = NULL; in snd_cx18_card_private_free()
95 sc->private_free = NULL; in snd_cx18_card_private_free()
99 struct snd_card *sc, in snd_cx18_card_create() argument
107 (*cxsc)->sc = sc; in snd_cx18_card_create()
109 sc->private_data = *cxsc; in snd_cx18_card_create()
110 sc->private_free = snd_cx18_card_private_free; in snd_cx18_card_create()
118 struct snd_card *sc = cxsc->sc; in snd_cx18_card_set_names() local
121 strlcpy(sc->driver, "CX23418", sizeof(sc->driver)); in snd_cx18_card_set_names()
124 snprintf(sc->shortname, sizeof(sc->shortname), "CX18-%d", in snd_cx18_card_set_names()
128 snprintf(sc->longname, sizeof(sc->longname), in snd_cx18_card_set_names()
138 struct snd_card *sc = NULL; in snd_cx18_init() local
151 THIS_MODULE, 0, &sc); in snd_cx18_init()
159 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc); in snd_cx18_init()
183 ret = snd_card_register(sc); in snd_cx18_init()
194 if (sc != NULL) in snd_cx18_init()
195 snd_card_free(sc); in snd_cx18_init()
254 snd_card_free(cxsc->sc); in snd_cx18_exit()