Lines Matching full:running
159 if (p->running & SNDRV_SB_CSP_ST_RUNNING) in snd_sb_csp_free()
208 info.state = p->running; in snd_sb_csp_ioctl()
217 err = (p->running & SNDRV_SB_CSP_ST_RUNNING ? in snd_sb_csp_ioctl()
221 err = (p->running & SNDRV_SB_CSP_ST_RUNNING ? in snd_sb_csp_ioctl()
225 /* change CSP running state */ in snd_sb_csp_ioctl()
356 p->running = 0; in snd_sb_csp_riff_load()
440 p->running = SNDRV_SB_CSP_ST_LOADED; /* set LOADED flag */ in snd_sb_csp_riff_load()
453 if (p->running & SNDRV_SB_CSP_ST_RUNNING) in snd_sb_csp_unload()
455 if (!(p->running & SNDRV_SB_CSP_ST_LOADED)) in snd_sb_csp_unload()
466 p->running = 0; in snd_sb_csp_unload()
713 * return 0 if CSP is loaded and ready to run (p->running != 0)
720 /* if CSP is running or manually loaded then exit */ in snd_sb_csp_autoload()
721 if (p->running & (SNDRV_SB_CSP_ST_RUNNING | SNDRV_SB_CSP_ST_LOADED)) in snd_sb_csp_autoload()
726 p->running = SNDRV_SB_CSP_ST_AUTO; in snd_sb_csp_autoload()
757 if (p->running & SNDRV_SB_CSP_ST_AUTO) { in snd_sb_csp_autoload()
762 p->running = 0; /* clear autoloaded flag */ in snd_sb_csp_autoload()
770 p->running = 0; /* clear autoloaded flag */ in snd_sb_csp_autoload()
774 p->running = SNDRV_SB_CSP_ST_AUTO; /* set autoloaded flag */ in snd_sb_csp_autoload()
781 return (p->running & SNDRV_SB_CSP_ST_AUTO) ? 0 : -ENXIO; in snd_sb_csp_autoload()
794 if (!(p->running & (SNDRV_SB_CSP_ST_LOADED | SNDRV_SB_CSP_ST_AUTO))) { in snd_sb_csp_start()
798 if (p->running & SNDRV_SB_CSP_ST_RUNNING) { in snd_sb_csp_start()
799 snd_printd("%s: CSP already running\n", __func__); in snd_sb_csp_start()
840 p->running |= SNDRV_SB_CSP_ST_RUNNING; in snd_sb_csp_start()
847 p->running |= SNDRV_SB_CSP_ST_QSOUND; in snd_sb_csp_start()
874 if (!(p->running & SNDRV_SB_CSP_ST_RUNNING)) in snd_sb_csp_stop()
886 if (p->running & SNDRV_SB_CSP_ST_QSOUND) { in snd_sb_csp_stop()
892 p->running &= ~SNDRV_SB_CSP_ST_QSOUND; in snd_sb_csp_stop()
904 p->running &= ~(SNDRV_SB_CSP_ST_PAUSED | SNDRV_SB_CSP_ST_RUNNING); in snd_sb_csp_stop()
916 if (!(p->running & SNDRV_SB_CSP_ST_RUNNING)) in snd_sb_csp_pause()
923 p->running |= SNDRV_SB_CSP_ST_PAUSED; in snd_sb_csp_pause()
936 if (!(p->running & SNDRV_SB_CSP_ST_PAUSED)) in snd_sb_csp_restart()
943 p->running &= ~SNDRV_SB_CSP_ST_PAUSED; in snd_sb_csp_restart()
1104 if (p->running & SNDRV_SB_CSP_ST_QSOUND) { in snd_sb_csp_qsound_transfer()
1138 snd_iprintf(buffer, "State: %cx%c%c%c\n", ((p->running & SNDRV_SB_CSP_ST_QSOUND) ? 'Q' : '-'), in info_read()
1139 ((p->running & SNDRV_SB_CSP_ST_PAUSED) ? 'P' : '-'), in info_read()
1140 ((p->running & SNDRV_SB_CSP_ST_RUNNING) ? 'R' : '-'), in info_read()
1141 ((p->running & SNDRV_SB_CSP_ST_LOADED) ? 'L' : '-')); in info_read()
1142 if (p->running & SNDRV_SB_CSP_ST_LOADED) { in info_read()
1168 if (p->running & SNDRV_SB_CSP_ST_AUTO) { in info_read()
1171 if (p->running & SNDRV_SB_CSP_ST_RUNNING) { in info_read()
1176 if (p->running & SNDRV_SB_CSP_ST_QSOUND) { in info_read()