Lines Matching refs:audio_mask
787 int audio_mask, int *retry) in pcxhr_prepair_pipe_start() argument
794 while (audio_mask) { in pcxhr_prepair_pipe_start()
795 if (audio_mask & 1) { in pcxhr_prepair_pipe_start()
820 audio_mask>>=1; in pcxhr_prepair_pipe_start()
826 static int pcxhr_stop_pipes(struct pcxhr_mgr *mgr, int audio_mask) in pcxhr_stop_pipes() argument
832 while (audio_mask) { in pcxhr_stop_pipes()
833 if (audio_mask & 1) { in pcxhr_stop_pipes()
852 audio_mask>>=1; in pcxhr_stop_pipes()
858 static int pcxhr_toggle_pipes(struct pcxhr_mgr *mgr, int audio_mask) in pcxhr_toggle_pipes() argument
864 while (audio_mask) { in pcxhr_toggle_pipes()
865 if (audio_mask & 1) { in pcxhr_toggle_pipes()
881 audio_mask>>=1; in pcxhr_toggle_pipes()
902 int audio_mask; in pcxhr_set_pipe_state() local
908 audio_mask = (playback_mask | in pcxhr_set_pipe_state()
913 start ? "START" : "STOP", audio_mask, state); in pcxhr_set_pipe_state()
916 audio_mask &= ~state; in pcxhr_set_pipe_state()
917 state = audio_mask; in pcxhr_set_pipe_state()
927 audio_mask &= state; /* stop only pipes that are started */ in pcxhr_set_pipe_state()
929 if (audio_mask == 0) in pcxhr_set_pipe_state()
932 err = pcxhr_toggle_pipes(mgr, audio_mask); in pcxhr_set_pipe_state()
940 if ((state & audio_mask) == (start ? audio_mask : 0)) in pcxhr_set_pipe_state()
949 err = pcxhr_stop_pipes(mgr, audio_mask); in pcxhr_set_pipe_state()