Lines Matching refs:sctrl
346 unsigned sctrl; member
488 s->sctrl = (s->sctrl & ~(SCTRL_P1LOOPSEL | SCTRL_P1PAUSE | SCTRL_P1SCTRLD)) | SCTRL_P1INTEN; in start_dac1()
489 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in start_dac1()
491 fshift = sample_shift[(s->sctrl & SCTRL_P1FMT) >> SCTRL_SH_P1FMT]; in start_dac1()
510 s->sctrl = (s->sctrl & ~(SCTRL_P2LOOPSEL | SCTRL_P2PAUSE | SCTRL_P2DACSEN | in start_dac2()
512 (((s->sctrl & SCTRL_P2FMT) ? 2 : 1) << SCTRL_SH_P2ENDINC) | in start_dac2()
514 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in start_dac2()
516 fshift = sample_shift[(s->sctrl & SCTRL_P2FMT) >> SCTRL_SH_P2FMT]; in start_dac2()
535 s->sctrl = (s->sctrl & ~SCTRL_R1LOOPSEL) | SCTRL_R1INTEN; in start_adc()
536 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in start_adc()
538 fshift = sample_shift[(s->sctrl & SCTRL_R1FMT) >> SCTRL_SH_R1FMT]; in start_adc()
625 (s->sctrl >> SCTRL_SH_R1FMT) & ES1370_FMT_MASK, ES1370_REG_ADC_FRAMEADR); in prog_dmabuf_adc()
632 (s->sctrl >> SCTRL_SH_P2FMT) & ES1370_FMT_MASK, ES1370_REG_DAC2_FRAMEADR); in prog_dmabuf_dac2()
639 (s->sctrl >> SCTRL_SH_P1FMT) & ES1370_FMT_MASK, ES1370_REG_DAC1_FRAMEADR); in prog_dmabuf_dac1()
700 s->dma_dac1.fragsize, (s->sctrl & SCTRL_P1SEB) ? 0 : 0x80); in es1370_update_ptr()
723 s->dma_dac2.fragsize, (s->sctrl & SCTRL_P2SEB) ? 0 : 0x80); in es1370_update_ptr()
776 sctl = s->sctrl; in es1370_interrupt()
784 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_interrupt()
1097 tmo >>= sample_shift[(s->sctrl & SCTRL_P1FMT) >> SCTRL_SH_P1FMT]; in drain_dac1()
1133 tmo >>= sample_shift[(s->sctrl & SCTRL_P2FMT) >> SCTRL_SH_P2FMT]; in drain_dac2()
1456 s->sctrl |= SCTRL_R1SMB; in es1370_ioctl()
1458 s->sctrl &= ~SCTRL_R1SMB; in es1370_ioctl()
1459 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_ioctl()
1467 s->sctrl |= SCTRL_P2SMB; in es1370_ioctl()
1469 s->sctrl &= ~SCTRL_P2SMB; in es1370_ioctl()
1470 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_ioctl()
1484 s->sctrl |= SCTRL_R1SMB; in es1370_ioctl()
1486 s->sctrl &= ~SCTRL_R1SMB; in es1370_ioctl()
1487 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_ioctl()
1495 s->sctrl |= SCTRL_P2SMB; in es1370_ioctl()
1497 s->sctrl &= ~SCTRL_P2SMB; in es1370_ioctl()
1498 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_ioctl()
1502 …return put_user((s->sctrl & ((file->f_mode & FMODE_READ) ? SCTRL_R1SMB : SCTRL_P2SMB)) ? 2 : 1, (i… in es1370_ioctl()
1516 s->sctrl |= SCTRL_R1SEB; in es1370_ioctl()
1518 s->sctrl &= ~SCTRL_R1SEB; in es1370_ioctl()
1519 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_ioctl()
1527 s->sctrl |= SCTRL_P2SEB; in es1370_ioctl()
1529 s->sctrl &= ~SCTRL_P2SEB; in es1370_ioctl()
1530 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_ioctl()
1534 return put_user((s->sctrl & ((file->f_mode & FMODE_READ) ? SCTRL_R1SEB : SCTRL_P2SEB)) ? in es1370_ioctl()
1715 return put_user((s->sctrl & ((file->f_mode & FMODE_READ) ? SCTRL_R1SMB : SCTRL_P2SMB)) ? in es1370_ioctl()
1719 return put_user((s->sctrl & ((file->f_mode & FMODE_READ) ? SCTRL_R1SEB : SCTRL_P2SEB)) ? in es1370_ioctl()
1771 s->sctrl &= ~SCTRL_R1FMT; in es1370_open()
1773 s->sctrl |= ES1370_FMT_S16_MONO << SCTRL_SH_R1FMT; in es1370_open()
1775 s->sctrl |= ES1370_FMT_U8_MONO << SCTRL_SH_R1FMT; in es1370_open()
1780 s->sctrl &= ~SCTRL_P2FMT; in es1370_open()
1782 s->sctrl |= ES1370_FMT_S16_MONO << SCTRL_SH_P2FMT; in es1370_open()
1784 s->sctrl |= ES1370_FMT_U8_MONO << SCTRL_SH_P2FMT; in es1370_open()
1786 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_open()
2011 s->sctrl |= SCTRL_P1SMB; in es1370_ioctl_dac()
2013 s->sctrl &= ~SCTRL_P1SMB; in es1370_ioctl_dac()
2014 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_ioctl_dac()
2028 s->sctrl |= SCTRL_P1SMB; in es1370_ioctl_dac()
2030 s->sctrl &= ~SCTRL_P1SMB; in es1370_ioctl_dac()
2031 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_ioctl_dac()
2034 return put_user((s->sctrl & SCTRL_P1SMB) ? 2 : 1, (int *)arg); in es1370_ioctl_dac()
2047 s->sctrl |= SCTRL_P1SEB; in es1370_ioctl_dac()
2049 s->sctrl &= ~SCTRL_P1SEB; in es1370_ioctl_dac()
2050 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_ioctl_dac()
2053 return put_user((s->sctrl & SCTRL_P1SEB) ? AFMT_S16_LE : AFMT_U8, (int *)arg); in es1370_ioctl_dac()
2153 return put_user((s->sctrl & SCTRL_P1SMB) ? 2 : 1, (int *)arg); in es1370_ioctl_dac()
2156 return put_user((s->sctrl & SCTRL_P1SEB) ? 16 : 8, (int *)arg); in es1370_ioctl_dac()
2212 s->sctrl &= ~SCTRL_P1FMT; in es1370_open_dac()
2214 s->sctrl |= ES1370_FMT_S16_MONO << SCTRL_SH_P1FMT; in es1370_open_dac()
2216 s->sctrl |= ES1370_FMT_U8_MONO << SCTRL_SH_P1FMT; in es1370_open_dac()
2217 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_open_dac()
2631 s->sctrl = 0; in es1370_probe()
2656 outl(s->sctrl, s->io+ES1370_REG_SERIAL_CONTROL); in es1370_probe()