Lines Matching refs:wcreg
184 u32 wcreg; /* cached write control register value */ member
222 #define RME32_ISWORKING(rme32) ((rme32)->wcreg & RME32_WCR_START)
383 writel(rme32->wcreg | RME32_WCR_PD, in snd_rme32_reset_dac()
385 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_reset_dac()
392 rate = ((rme32->wcreg >> RME32_WCR_BITPOS_FREQ_0) & 1) + in snd_rme32_playback_getrate()
393 (((rme32->wcreg >> RME32_WCR_BITPOS_FREQ_1) & 1) << 1); in snd_rme32_playback_getrate()
407 return (rme32->wcreg & RME32_WCR_DS_BM) ? rate << 1 : rate; in snd_rme32_playback_getrate()
475 ds = rme32->wcreg & RME32_WCR_DS_BM; in snd_rme32_playback_setrate()
478 rme32->wcreg &= ~RME32_WCR_DS_BM; in snd_rme32_playback_setrate()
479 rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) & in snd_rme32_playback_setrate()
483 rme32->wcreg &= ~RME32_WCR_DS_BM; in snd_rme32_playback_setrate()
484 rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_1) & in snd_rme32_playback_setrate()
488 rme32->wcreg &= ~RME32_WCR_DS_BM; in snd_rme32_playback_setrate()
489 rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) | in snd_rme32_playback_setrate()
495 rme32->wcreg |= RME32_WCR_DS_BM; in snd_rme32_playback_setrate()
496 rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) & in snd_rme32_playback_setrate()
502 rme32->wcreg |= RME32_WCR_DS_BM; in snd_rme32_playback_setrate()
503 rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_1) & in snd_rme32_playback_setrate()
509 rme32->wcreg |= RME32_WCR_DS_BM; in snd_rme32_playback_setrate()
510 rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) | in snd_rme32_playback_setrate()
516 if ((!ds && rme32->wcreg & RME32_WCR_DS_BM) || in snd_rme32_playback_setrate()
517 (ds && !(rme32->wcreg & RME32_WCR_DS_BM))) in snd_rme32_playback_setrate()
522 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_playback_setrate()
532 rme32->wcreg = (rme32->wcreg & ~RME32_WCR_FREQ_0) & in snd_rme32_setclockmode()
537 rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) & in snd_rme32_setclockmode()
542 rme32->wcreg = (rme32->wcreg & ~RME32_WCR_FREQ_0) | in snd_rme32_setclockmode()
547 rme32->wcreg = (rme32->wcreg | RME32_WCR_FREQ_0) | in snd_rme32_setclockmode()
553 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_setclockmode()
559 return ((rme32->wcreg >> RME32_WCR_BITPOS_FREQ_0) & 1) + in snd_rme32_getclockmode()
560 (((rme32->wcreg >> RME32_WCR_BITPOS_FREQ_1) & 1) << 1); in snd_rme32_getclockmode()
567 rme32->wcreg = (rme32->wcreg & ~RME32_WCR_INP_0) & in snd_rme32_setinputtype()
571 rme32->wcreg = (rme32->wcreg | RME32_WCR_INP_0) & in snd_rme32_setinputtype()
575 rme32->wcreg = (rme32->wcreg & ~RME32_WCR_INP_0) | in snd_rme32_setinputtype()
579 rme32->wcreg = (rme32->wcreg | RME32_WCR_INP_0) | in snd_rme32_setinputtype()
585 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_setinputtype()
591 return ((rme32->wcreg >> RME32_WCR_BITPOS_INP_0) & 1) + in snd_rme32_getinputtype()
592 (((rme32->wcreg >> RME32_WCR_BITPOS_INP_1) & 1) << 1); in snd_rme32_getinputtype()
607 frlog += (rme32->wcreg & RME32_WCR_MODE24) ? 2 : 1; in snd_rme32_setframelog()
610 frlog += (rme32->wcreg & RME32_WCR_MODE24) ? 2 : 1; in snd_rme32_setframelog()
619 rme32->wcreg &= ~RME32_WCR_MODE24; in snd_rme32_setformat()
622 rme32->wcreg |= RME32_WCR_MODE24; in snd_rme32_setformat()
627 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_setformat()
678 if ((rme32->wcreg & RME32_WCR_ADAT) == 0) { in snd_rme32_playback_hw_params()
679 rme32->wcreg &= ~(RME32_WCR_PRO | RME32_WCR_EMP); in snd_rme32_playback_hw_params()
680 rme32->wcreg |= rme32->wcreg_spdif_stream; in snd_rme32_playback_hw_params()
681 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_playback_hw_params()
705 rme32->wcreg |= RME32_WCR_AUTOSYNC; in snd_rme32_capture_hw_params()
706 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_capture_hw_params()
731 rme32->wcreg &= ~RME32_WCR_AUTOSYNC; in snd_rme32_capture_hw_params()
732 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_capture_hw_params()
755 rme32->wcreg |= RME32_WCR_START; in snd_rme32_pcm_start()
756 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_pcm_start()
769 rme32->wcreg &= ~RME32_WCR_START; in snd_rme32_pcm_stop()
770 if (rme32->wcreg & RME32_WCR_SEL) in snd_rme32_pcm_stop()
771 rme32->wcreg |= RME32_WCR_MUTE; in snd_rme32_pcm_stop()
772 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_pcm_stop()
829 rme32->wcreg &= ~RME32_WCR_ADAT; in snd_rme32_playback_spdif_open()
830 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_playback_spdif_open()
914 rme32->wcreg |= RME32_WCR_ADAT; in snd_rme32_playback_adat_open()
915 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_playback_adat_open()
980 spdif = (rme32->wcreg & RME32_WCR_ADAT) == 0; in snd_rme32_playback_close()
1014 if (rme32->wcreg & RME32_WCR_SEL) in snd_rme32_playback_prepare()
1015 rme32->wcreg &= ~RME32_WCR_MUTE; in snd_rme32_playback_prepare()
1016 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_playback_prepare()
1377 rme32->wcreg = RME32_WCR_SEL | /* normal playback */ in snd_rme32_create()
1380 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_create()
1422 if (rme32->wcreg & RME32_WCR_MODE24) { in snd_rme32_proc_read()
1427 if (rme32->wcreg & RME32_WCR_MONO) { in snd_rme32_proc_read()
1461 if (rme32->wcreg & RME32_WCR_SEL) { in snd_rme32_proc_read()
1466 if (rme32->wcreg & RME32_WCR_MUTE) { in snd_rme32_proc_read()
1474 ((!(rme32->wcreg & RME32_WCR_FREQ_0)) in snd_rme32_proc_read()
1475 && (!(rme32->wcreg & RME32_WCR_FREQ_1)))) { in snd_rme32_proc_read()
1484 if (rme32->wcreg & RME32_WCR_PRO) { in snd_rme32_proc_read()
1489 if (rme32->wcreg & RME32_WCR_EMP) { in snd_rme32_proc_read()
1515 rme32->wcreg & RME32_WCR_SEL ? 0 : 1; in snd_rme32_get_loopback_control()
1529 val = (rme32->wcreg & ~RME32_WCR_SEL) | val; in snd_rme32_put_loopback_control()
1530 change = val != rme32->wcreg; in snd_rme32_put_loopback_control()
1535 rme32->wcreg = val; in snd_rme32_put_loopback_control()
1745 rme32->wcreg &= ~(RME32_WCR_PRO | RME32_WCR_EMP); in snd_rme32_control_spdif_stream_put()
1746 rme32->wcreg |= val; in snd_rme32_control_spdif_stream_put()
1747 writel(rme32->wcreg, rme32->iobase + RME32_IO_CONTROL_REGISTER); in snd_rme32_control_spdif_stream_put()