Lines Matching defs:pipe
59 /* test max nb substream per pipe */
151 * allocate a playback/capture pipe (pcmp0/pcmc0)
154 struct pcxhr_pipe *pipe,
173 pipe->is_capture = is_capture;
174 pipe->first_audio = pin;
175 /* define pipe (P_PCM_ONLY_MASK (0x020000) is not necessary) */
186 dev_err(&mgr->pci->dev, "error pipe allocation "
190 pipe->status = PCXHR_PIPE_DEFINED;
196 * free playback/capture pipe (pcmp0/pcmc0)
199 static int pcxhr_dsp_free_pipe( struct pcxhr_mgr *mgr, struct pcxhr_pipe *pipe)
206 if (pipe->is_capture)
207 capture_mask = (1 << pipe->first_audio);
209 playback_mask = (1 << pipe->first_audio);
211 /* stop one pipe */
214 dev_err(&mgr->pci->dev, "error stopping pipe!\n");
215 /* release the pipe */
217 pcxhr_set_pipe_cmd_params(&rmh, pipe->is_capture, pipe->first_audio,
221 dev_err(&mgr->pci->dev, "error pipe release "
223 pipe->status = PCXHR_PIPE_UNDEFINED;
233 struct pcxhr_pipe *pipe;
239 pipe = &chip->playback_pipe;
240 err = pcxhr_dsp_allocate_pipe( mgr, pipe, 0, i*2);
244 chip->playback_stream[j].pipe = pipe;
247 pipe = &chip->capture_pipe[j];
248 err = pcxhr_dsp_allocate_pipe(mgr, pipe, 1, i*2 + j);
251 chip->capture_stream[j].pipe = pipe;