Lines Matching defs:sc
138 struct onyx_softc *sc = (struct onyx_softc *)self;
140 sc->sc_setvolume = onyx_set_volume;
141 sc->sc_setinput = onyx_set_input;
143 i2s_attach(parent, sc, aux);
150 struct onyx_softc *sc = (struct onyx_softc *)dev;
156 sc->sc_i2c = dv;
157 if (sc->sc_i2c == NULL) {
158 printf("%s: unable to find i2c\n", sc->sc_dev.dv_xname);
164 audio_attach_mi(&onyx_hw_if, sc, NULL, &sc->sc_dev);
166 deq_reset(sc);
167 onyx_set_volume(sc, 192, 192);
168 onyx_set_input(sc, 1);
172 onyx_set_volume(struct onyx_softc *sc, int left, int right)
176 sc->sc_vol_l = left;
177 sc->sc_vol_r = right;
179 kiic_setmode(sc->sc_i2c, I2C_STDSUBMODE, 0);
181 kiic_write(sc->sc_i2c, PCM3052_I2C_ADDR,
184 kiic_write(sc->sc_i2c, PCM3052_I2C_ADDR,
189 onyx_set_input(struct onyx_softc *sc, int mask)
193 sc->sc_record_source = mask;
205 kiic_write(sc->sc_i2c, PCM3052_I2C_ADDR,