Lines Matching full: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()
227 /* change CSP running state */ in snd_sb_csp_ioctl()
358 p->running = 0; in snd_sb_csp_riff_load()
442 p->running = SNDRV_SB_CSP_ST_LOADED; /* set LOADED flag */ in snd_sb_csp_riff_load()
455 if (p->running & SNDRV_SB_CSP_ST_RUNNING) in snd_sb_csp_unload()
457 if (!(p->running & SNDRV_SB_CSP_ST_LOADED)) in snd_sb_csp_unload()
468 p->running = 0; in snd_sb_csp_unload()
715 * return 0 if CSP is loaded and ready to run (p->running != 0)
722 /* if CSP is running or manually loaded then exit */ in snd_sb_csp_autoload()
723 if (p->running & (SNDRV_SB_CSP_ST_RUNNING | SNDRV_SB_CSP_ST_LOADED)) in snd_sb_csp_autoload()
728 p->running = SNDRV_SB_CSP_ST_AUTO; in snd_sb_csp_autoload()
759 if (p->running & SNDRV_SB_CSP_ST_AUTO) { in snd_sb_csp_autoload()
764 p->running = 0; /* clear autoloaded flag */ in snd_sb_csp_autoload()
772 p->running = 0; /* clear autoloaded flag */ in snd_sb_csp_autoload()
776 p->running = SNDRV_SB_CSP_ST_AUTO; /* set autoloaded flag */ in snd_sb_csp_autoload()
783 return (p->running & SNDRV_SB_CSP_ST_AUTO) ? 0 : -ENXIO; in snd_sb_csp_autoload()
796 if (!(p->running & (SNDRV_SB_CSP_ST_LOADED | SNDRV_SB_CSP_ST_AUTO))) { in snd_sb_csp_start()
800 if (p->running & SNDRV_SB_CSP_ST_RUNNING) { in snd_sb_csp_start()
801 snd_printd("%s: CSP already running\n", __func__); in snd_sb_csp_start()
842 p->running |= SNDRV_SB_CSP_ST_RUNNING; in snd_sb_csp_start()
849 p->running |= SNDRV_SB_CSP_ST_QSOUND; in snd_sb_csp_start()
876 if (!(p->running & SNDRV_SB_CSP_ST_RUNNING)) in snd_sb_csp_stop()
888 if (p->running & SNDRV_SB_CSP_ST_QSOUND) { in snd_sb_csp_stop()
894 p->running &= ~SNDRV_SB_CSP_ST_QSOUND; in snd_sb_csp_stop()
906 p->running &= ~(SNDRV_SB_CSP_ST_PAUSED | SNDRV_SB_CSP_ST_RUNNING); in snd_sb_csp_stop()
918 if (!(p->running & SNDRV_SB_CSP_ST_RUNNING)) in snd_sb_csp_pause()
925 p->running |= SNDRV_SB_CSP_ST_PAUSED; in snd_sb_csp_pause()
938 if (!(p->running & SNDRV_SB_CSP_ST_PAUSED)) in snd_sb_csp_restart()
945 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()