Lines Matching refs:sc
89 static void snd_ivtv_card_private_free(struct snd_card *sc) in snd_ivtv_card_private_free() argument
91 if (sc == NULL) in snd_ivtv_card_private_free()
93 snd_ivtv_card_free(sc->private_data); in snd_ivtv_card_private_free()
94 sc->private_data = NULL; in snd_ivtv_card_private_free()
95 sc->private_free = NULL; in snd_ivtv_card_private_free()
99 struct snd_card *sc, in snd_ivtv_card_create() argument
107 (*itvsc)->sc = sc; in snd_ivtv_card_create()
109 sc->private_data = *itvsc; in snd_ivtv_card_create()
110 sc->private_free = snd_ivtv_card_private_free; in snd_ivtv_card_create()
118 struct snd_card *sc = itvsc->sc; in snd_ivtv_card_set_names() local
121 strlcpy(sc->driver, "CX2341[56]", sizeof(sc->driver)); in snd_ivtv_card_set_names()
124 snprintf(sc->shortname, sizeof(sc->shortname), "IVTV-%d", in snd_ivtv_card_set_names()
128 snprintf(sc->longname, sizeof(sc->longname), in snd_ivtv_card_set_names()
138 struct snd_card *sc = NULL; in snd_ivtv_init() local
151 THIS_MODULE, 0, &sc); in snd_ivtv_init()
159 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
191 ret = snd_card_register(sc); in snd_ivtv_init()
202 if (sc != NULL) in snd_ivtv_init()
203 snd_card_free(sc); in snd_ivtv_init()
262 snd_card_free(itvsc->sc); in snd_ivtv_exit()