Lines Matching refs:running
161 if (p->running & SNDRV_SB_CSP_ST_RUNNING) in snd_sb_csp_free()
210 info.state = p->running; in snd_sb_csp_ioctl()
219 err = (p->running & SNDRV_SB_CSP_ST_RUNNING ? in snd_sb_csp_ioctl()
223 err = (p->running & SNDRV_SB_CSP_ST_RUNNING ? in snd_sb_csp_ioctl()
359 p->running = 0; in snd_sb_csp_riff_load()
443 p->running = SNDRV_SB_CSP_ST_LOADED; /* set LOADED flag */ in snd_sb_csp_riff_load()
456 if (p->running & SNDRV_SB_CSP_ST_RUNNING) in snd_sb_csp_unload()
458 if (!(p->running & SNDRV_SB_CSP_ST_LOADED)) in snd_sb_csp_unload()
469 p->running = 0; in snd_sb_csp_unload()
728 if (p->running & (SNDRV_SB_CSP_ST_RUNNING | SNDRV_SB_CSP_ST_LOADED)) in snd_sb_csp_autoload()
733 p->running = SNDRV_SB_CSP_ST_AUTO; in snd_sb_csp_autoload()
764 if (p->running & SNDRV_SB_CSP_ST_AUTO) { in snd_sb_csp_autoload()
769 p->running = 0; /* clear autoloaded flag */ in snd_sb_csp_autoload()
777 p->running = 0; /* clear autoloaded flag */ in snd_sb_csp_autoload()
781 p->running = SNDRV_SB_CSP_ST_AUTO; /* set autoloaded flag */ in snd_sb_csp_autoload()
788 return (p->running & SNDRV_SB_CSP_ST_AUTO) ? 0 : -ENXIO; in snd_sb_csp_autoload()
802 if (!(p->running & (SNDRV_SB_CSP_ST_LOADED | SNDRV_SB_CSP_ST_AUTO))) { in snd_sb_csp_start()
806 if (p->running & SNDRV_SB_CSP_ST_RUNNING) { in snd_sb_csp_start()
848 p->running |= SNDRV_SB_CSP_ST_RUNNING; in snd_sb_csp_start()
855 p->running |= SNDRV_SB_CSP_ST_QSOUND; in snd_sb_csp_start()
882 if (!(p->running & SNDRV_SB_CSP_ST_RUNNING)) in snd_sb_csp_stop()
894 if (p->running & SNDRV_SB_CSP_ST_QSOUND) { in snd_sb_csp_stop()
900 p->running &= ~SNDRV_SB_CSP_ST_QSOUND; in snd_sb_csp_stop()
912 p->running &= ~(SNDRV_SB_CSP_ST_PAUSED | SNDRV_SB_CSP_ST_RUNNING); in snd_sb_csp_stop()
924 if (!(p->running & SNDRV_SB_CSP_ST_RUNNING)) in snd_sb_csp_pause()
931 p->running |= SNDRV_SB_CSP_ST_PAUSED; in snd_sb_csp_pause()
944 if (!(p->running & SNDRV_SB_CSP_ST_PAUSED)) in snd_sb_csp_restart()
951 p->running &= ~SNDRV_SB_CSP_ST_PAUSED; in snd_sb_csp_restart()
1109 if (p->running & SNDRV_SB_CSP_ST_QSOUND) { in snd_sb_csp_qsound_transfer()
1143 snd_iprintf(buffer, "State: %cx%c%c%c\n", ((p->running & SNDRV_SB_CSP_ST_QSOUND) ? 'Q' : '-'), in info_read()
1144 ((p->running & SNDRV_SB_CSP_ST_PAUSED) ? 'P' : '-'), in info_read()
1145 ((p->running & SNDRV_SB_CSP_ST_RUNNING) ? 'R' : '-'), in info_read()
1146 ((p->running & SNDRV_SB_CSP_ST_LOADED) ? 'L' : '-')); in info_read()
1147 if (p->running & SNDRV_SB_CSP_ST_LOADED) { in info_read()
1173 if (p->running & SNDRV_SB_CSP_ST_AUTO) { in info_read()
1176 if (p->running & SNDRV_SB_CSP_ST_RUNNING) { in info_read()
1181 if (p->running & SNDRV_SB_CSP_ST_QSOUND) { in info_read()