Lines Matching refs:enable

273 		unsigned char fmt, enable, trigger;  member
700 if (!dmabuf->enable) in ali_get_dma_addr()
750 dmabuf->enable &= ~ADC_RUNNING; in __stop_adc()
779 && !dmabuf->enable && (dmabuf->trigger & PCM_ENABLE_INPUT)) { in __start_adc()
780 dmabuf->enable |= ADC_RUNNING; in __start_adc()
805 dmabuf->enable &= ~DAC_RUNNING; in __stop_dac()
828 if (dmabuf->count > 0 && dmabuf->ready && !dmabuf->enable && in __start_dac()
830 dmabuf->enable |= DAC_RUNNING; in __start_dac()
852 dmabuf->enable &= ~CODEC_SPDIFOUT_RUNNING; in __stop_spdifout()
863 dmabuf->enable &= ~CONTROLLER_SPDIFOUT_RUNNING; in __stop_spdifout()
886 if (dmabuf->count > 0 && dmabuf->ready && !dmabuf->enable && in __start_spdifout()
889 dmabuf->enable |= CODEC_SPDIFOUT_RUNNING; in __start_spdifout()
894 dmabuf->enable |= CONTROLLER_SPDIFOUT_RUNNING; in __start_spdifout()
984 if (dmabuf->enable & DAC_RUNNING) in prog_dmabuf()
986 if (dmabuf->enable & ADC_RUNNING) in prog_dmabuf()
988 if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) in prog_dmabuf()
990 if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) in prog_dmabuf()
1099 if (!dmabuf->enable && dmabuf->ready) { in __ali_update_lvi()
1153 if (dmabuf->enable == ADC_RUNNING) { in ali_update_ptr()
1174 if (dmabuf->enable == DAC_RUNNING) { in ali_update_ptr()
1206 if (dmabuf->enable == CODEC_SPDIFOUT_RUNNING) { in ali_update_ptr()
1231 if (dmabuf->enable == CONTROLLER_SPDIFOUT_RUNNING) { in ali_update_ptr()
1322 if (!dmabuf->enable) { in drain_dac()
1388 if (!dmabuf->enable) { in drain_spdifout()
1448 if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) { in ali_channel_interrupt()
1453 if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1456 if (dmabuf->enable & DAC_RUNNING) { in ali_channel_interrupt()
1458 } else if (dmabuf->enable & ADC_RUNNING) { in ali_channel_interrupt()
1481 if (dmabuf->enable & DAC_RUNNING) in ali_channel_interrupt()
1483 else if (dmabuf->enable & ADC_RUNNING) in ali_channel_interrupt()
1485 else if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1487 else if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1492 if (dmabuf->enable & DAC_RUNNING) in ali_channel_interrupt()
1494 else if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1496 else if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1499 if (dmabuf->enable & DAC_RUNNING) in ali_channel_interrupt()
1501 if (dmabuf->enable & ADC_RUNNING) in ali_channel_interrupt()
1503 if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1505 if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1507 dmabuf->enable = 0; in ali_channel_interrupt()
1515 if (dmabuf->enable & DAC_RUNNING) in ali_channel_interrupt()
1517 else if (dmabuf->enable & ADC_RUNNING) in ali_channel_interrupt()
1519 else if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1521 else if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1527 if (dmabuf->enable & DAC_RUNNING) in ali_channel_interrupt()
1529 else if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1531 else if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1534 if (dmabuf->enable & DAC_RUNNING) in ali_channel_interrupt()
1536 if (dmabuf->enable & ADC_RUNNING) in ali_channel_interrupt()
1538 if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1540 if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) in ali_channel_interrupt()
1542 dmabuf->enable = 0; in ali_channel_interrupt()
1591 if (dmabuf->enable & DAC_RUNNING) in ali_read()
1731 if (dmabuf->enable & ADC_RUNNING) in ali_write()
1911 if (file->f_mode & FMODE_READ && dmabuf->enable & ADC_RUNNING) { in ali_poll()
1915 …if (file->f_mode & FMODE_WRITE && (dmabuf->enable & (DAC_RUNNING|CODEC_SPDIFOUT_RUNNING|CONTROLLE… in ali_poll()
1987 if (dmabuf->enable == DAC_RUNNING) { in ali_ioctl()
1991 if (dmabuf->enable == ADC_RUNNING) { in ali_ioctl()
1995 if (dmabuf->enable == CODEC_SPDIFOUT_RUNNING) { in ali_ioctl()
1999 if (dmabuf->enable == CONTROLLER_SPDIFOUT_RUNNING) { in ali_ioctl()
2021 if (dmabuf->enable != CODEC_SPDIFOUT_RUNNING in ali_ioctl()
2028 if (dmabuf->enable != in ali_ioctl()
2035 if (dmabuf->enable != DAC_RUNNING in ali_ioctl()
2131 if (dmabuf->enable & DAC_RUNNING) { in ali_ioctl()
2134 if (dmabuf->enable & ADC_RUNNING) { in ali_ioctl()
2137 if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) { in ali_ioctl()
2140 if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) { in ali_ioctl()
2185 if (dmabuf->enable & DAC_RUNNING) { in ali_ioctl()
2188 if (dmabuf->enable & CODEC_SPDIFOUT_RUNNING) { in ali_ioctl()
2191 if (dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING) { in ali_ioctl()
2194 if (dmabuf->enable & ADC_RUNNING) { in ali_ioctl()
2240 if (!dmabuf->ready || (dmabuf->enable != CODEC_SPDIFOUT_RUNNING)) in ali_ioctl()
2244 if (!dmabuf->ready || (dmabuf->enable != CONTROLLER_SPDIFOUT_RUNNING)) in ali_ioctl()
2247 if (!dmabuf->ready || (dmabuf->enable != DAC_RUNNING)) in ali_ioctl()
2462 if (!(val & PCM_ENABLE_INPUT) && dmabuf->enable == ADC_RUNNING) { in ali_ioctl()
2465 if (!(val & PCM_ENABLE_OUTPUT) && dmabuf->enable == DAC_RUNNING) { in ali_ioctl()
2468 if (!(val & SPDIF_ENABLE_OUTPUT) && dmabuf->enable == CODEC_SPDIFOUT_RUNNING) { in ali_ioctl()
2471 if (!(val & SPDIF_ENABLE_OUTPUT) && dmabuf->enable == CONTROLLER_SPDIFOUT_RUNNING) { in ali_ioctl()
2475 if (val & PCM_ENABLE_OUTPUT && !(dmabuf->enable & DAC_RUNNING)) { in ali_ioctl()
2497 if (val & SPDIF_ENABLE_OUTPUT && !(dmabuf->enable & CODEC_SPDIFOUT_RUNNING)) { in ali_ioctl()
2519 if (val & SPDIF_ENABLE_OUTPUT && !(dmabuf->enable & CONTROLLER_SPDIFOUT_RUNNING)) { in ali_ioctl()
2540 if (val & PCM_ENABLE_INPUT && !(dmabuf->enable & ADC_RUNNING)) { in ali_ioctl()
2670 if (dmabuf->enable == DAC_RUNNING) { in ali_ioctl()
3538 if (dmabuf->enable & DAC_RUNNING || in ali_pm_suspend()
3546 if (dmabuf->enable & ADC_RUNNING) { in ali_pm_suspend()