Lines Matching refs:SCSTATE
58 #define SCSTATE ((struct sc_state_wss *)(&sm->hw)) macro
137 if (SCSTATE->crystal) { in wss_set_codec_fmt()
145 if (SCSTATE->crystal && !fullcalib) { in wss_set_codec_fmt()
195 SCSTATE->revwss = 0; in wss_init_codec()
223 SCSTATE->revwss = inb(WSS_STATUS(dev->base_addr)) & 0x3f; in wss_init_codec()
264 SCSTATE->crystal = (read_codec(dev, 16) != 0x45); in wss_init_codec()
266 SCSTATE->crystal &= (read_codec(dev, 16) != 0xaa); in wss_init_codec()
267 if (SCSTATE->crystal) { in wss_init_codec()
268 SCSTATE->revcid = read_codec(dev, 0x19); in wss_init_codec()
269 SCSTATE->revv = (SCSTATE->revcid >> 5) & 7; in wss_init_codec()
270 SCSTATE->revcid &= 7; in wss_init_codec()
281 if (wss_set_codec_fmt(dev, sm, SCSTATE->fmt[0], SCSTATE->fmt[0], fdx, 1)) in wss_init_codec()
294 SCSTATE->revid = read_codec(dev, 0xc) & 0xf; in wss_init_codec()
298 if (SCSTATE->crystal) in wss_init_codec()
300 " Chip ID %d\n", sm_drvname, (int)SCSTATE->revid, in wss_init_codec()
301 (int)SCSTATE->revv, (int)SCSTATE->revcid); in wss_init_codec()
304 sm_drvname, (int)SCSTATE->revwss, in wss_init_codec()
305 (int)SCSTATE->revid); in wss_init_codec()
326 fmt = SCSTATE->fmt[send]; in setup_dma_wss()
341 if (read_codec(dev, 0x8) != fmt || SCSTATE->crystal) in setup_dma_wss()
513 SCSTATE->fmt[0] = j; in wss_sethw()
514 SCSTATE->fmt[1] = i; in wss_sethw()
549 SCSTATE->fmt[0] |= 0xc0; in wss_sethw()
553 SCSTATE->fmt[1] |= 0xc0; in wss_sethw()
558 SCSTATE->fmt[0] |= 0x40; in wss_sethw()
562 SCSTATE->fmt[1] |= 0x40; in wss_sethw()
600 bi.data.mix.mixer_type = SCSTATE->crystal ? in wss_ioctl()
602 if (((SCSTATE->crystal ? 0x2c0c20fflu: 0x20fflu) in wss_ioctl()
615 !SCSTATE->crystal) && in wss_ioctl()
661 wss_set_codec_fmt(dev, sm, SCSTATE->fmt[1], SCSTATE->fmt[0], 1, 1); in setup_fdx_dma_wss()
666 if (SCSTATE->crystal) { in setup_fdx_dma_wss()
689 if (SCSTATE->crystal) { in wssfdx_interrupt()
735 if (SCSTATE->crystal) { in wssfdx_interrupt()
872 SCSTATE->fmt[0] = SCSTATE->fmt[1] = i; in wssfdx_sethw()
881 SCSTATE->fmt[0] |= 0xc0; in wssfdx_sethw()
883 SCSTATE->fmt[0] |= 0x40; in wssfdx_sethw()
891 SCSTATE->fmt[1] |= 0xc0; in wssfdx_sethw()
893 SCSTATE->fmt[1] |= 0x40; in wssfdx_sethw()
937 #undef SCSTATE