Lines Matching refs:sc
94 static void snd_ivtv_card_private_free(struct snd_card *sc) in snd_ivtv_card_private_free() argument
96 if (sc == NULL) in snd_ivtv_card_private_free()
98 snd_ivtv_card_free(sc->private_data); in snd_ivtv_card_private_free()
99 sc->private_data = NULL; in snd_ivtv_card_private_free()
100 sc->private_free = NULL; in snd_ivtv_card_private_free()
104 struct snd_card *sc, in snd_ivtv_card_create() argument
112 (*itvsc)->sc = sc; in snd_ivtv_card_create()
114 sc->private_data = *itvsc; in snd_ivtv_card_create()
115 sc->private_free = snd_ivtv_card_private_free; in snd_ivtv_card_create()
123 struct snd_card *sc = itvsc->sc; in snd_ivtv_card_set_names() local
126 strlcpy(sc->driver, "CX2341[56]", sizeof(sc->driver)); in snd_ivtv_card_set_names()
129 snprintf(sc->shortname, sizeof(sc->shortname), "IVTV-%d", in snd_ivtv_card_set_names()
133 snprintf(sc->longname, sizeof(sc->longname), in snd_ivtv_card_set_names()
143 struct snd_card *sc = NULL; in snd_ivtv_init() local
158 THIS_MODULE, 0, &sc); in snd_ivtv_init()
166 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
198 ret = snd_card_register(sc); in snd_ivtv_init()
207 __func__, itv->instance, sc->number); in snd_ivtv_init()
212 if (sc != NULL) in snd_ivtv_init()
213 snd_card_free(sc); in snd_ivtv_init()
272 snd_card_free(itvsc->sc); in snd_ivtv_exit()