Lines Matching refs:audio_mask
741 static int pcxhr_prepair_pipe_start(struct pcxhr_mgr *mgr, int audio_mask, int *retry)
748 while (audio_mask) {
749 if (audio_mask & 1) {
771 audio_mask>>=1;
777 static int pcxhr_stop_pipes(struct pcxhr_mgr *mgr, int audio_mask)
783 while (audio_mask) {
784 if (audio_mask & 1) {
803 audio_mask>>=1;
809 static int pcxhr_toggle_pipes(struct pcxhr_mgr *mgr, int audio_mask)
815 while (audio_mask) {
816 if (audio_mask & 1) {
831 audio_mask>>=1;
849 int audio_mask;
855 audio_mask = (playback_mask | (capture_mask << PCXHR_PIPE_STATE_CAPTURE_OFFSET));
859 start ? "START" : "STOP", audio_mask, state);
861 audio_mask &= ~state; /* start only pipes that are not yet started */
862 state = audio_mask;
872 audio_mask &= state; /* stop only pipes that are started */
874 if (audio_mask == 0)
877 err = pcxhr_toggle_pipes(mgr, audio_mask);
885 if ((state & audio_mask) == (start ? audio_mask : 0))
894 err = pcxhr_stop_pipes(mgr, audio_mask);