Lines Matching defs:sc
67 static void snd_cx18_card_private_free(struct snd_card *sc)
69 if (sc == NULL)
71 snd_cx18_card_free(sc->private_data);
72 sc->private_data = NULL;
73 sc->private_free = NULL;
77 struct snd_card *sc,
85 (*cxsc)->sc = sc;
87 sc->private_data = *cxsc;
88 sc->private_free = snd_cx18_card_private_free;
96 struct snd_card *sc = cxsc->sc;
98 /* sc->driver is used by alsa-lib's configurator: simple, unique */
99 strscpy(sc->driver, "CX23418", sizeof(sc->driver));
101 /* sc->shortname is a symlink in /proc/asound: CX18-M -> cardN */
102 snprintf(sc->shortname, sizeof(sc->shortname), "CX18-%d",
105 /* sc->longname is read from /proc/asound/cards */
106 snprintf(sc->longname, sizeof(sc->longname),
116 struct snd_card *sc = NULL;
129 THIS_MODULE, 0, &sc);
137 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc);
161 ret = snd_card_register(sc);
172 if (sc != NULL)
173 snd_card_free(sc);
232 snd_card_free(cxsc->sc);