Lines Matching refs:h_stream
154 u32 h_stream; member
163 u32 h_stream, /* handle to outstream. */ in hpi_stream_host_buffer_attach() argument
170 unsigned int obj = hpi_handle_object(h_stream); in hpi_stream_host_buffer_attach()
172 if (!h_stream) in hpi_stream_host_buffer_attach()
179 hpi_handle_to_indexes(h_stream, &hm.adapter_index, in hpi_stream_host_buffer_attach()
189 static u16 hpi_stream_host_buffer_detach(u32 h_stream) in hpi_stream_host_buffer_detach() argument
193 unsigned int obj = hpi_handle_object(h_stream); in hpi_stream_host_buffer_detach()
195 if (!h_stream) in hpi_stream_host_buffer_detach()
203 hpi_handle_to_indexes(h_stream, &hm.adapter_index, in hpi_stream_host_buffer_detach()
210 static inline u16 hpi_stream_start(u32 h_stream) in hpi_stream_start() argument
212 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_start()
213 return hpi_outstream_start(h_stream); in hpi_stream_start()
215 return hpi_instream_start(h_stream); in hpi_stream_start()
218 static inline u16 hpi_stream_stop(u32 h_stream) in hpi_stream_stop() argument
220 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_stop()
221 return hpi_outstream_stop(h_stream); in hpi_stream_stop()
223 return hpi_instream_stop(h_stream); in hpi_stream_stop()
227 u32 h_stream, in hpi_stream_get_info_ex() argument
236 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_get_info_ex()
237 e = hpi_outstream_get_info_ex(h_stream, pw_state, in hpi_stream_get_info_ex()
241 e = hpi_instream_get_info_ex(h_stream, pw_state, in hpi_stream_get_info_ex()
249 u32 h_stream) in hpi_stream_group_add() argument
252 return hpi_outstream_group_add(h_master, h_stream); in hpi_stream_group_add()
254 return hpi_instream_group_add(h_master, h_stream); in hpi_stream_group_add()
257 static inline u16 hpi_stream_group_reset(u32 h_stream) in hpi_stream_group_reset() argument
259 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_group_reset()
260 return hpi_outstream_group_reset(h_stream); in hpi_stream_group_reset()
262 return hpi_instream_group_reset(h_stream); in hpi_stream_group_reset()
266 u32 h_stream, u32 *mo, u32 *mi) in hpi_stream_group_get_map() argument
268 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_group_get_map()
269 return hpi_outstream_group_get_map(h_stream, mo, mi); in hpi_stream_group_get_map()
271 return hpi_instream_group_get_map(h_stream, mo, mi); in hpi_stream_group_get_map()
470 if (hpi_instream_reset(dpcm->h_stream) != 0) in snd_card_asihpi_pcm_hw_params()
474 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params()
480 err = hpi_stream_host_buffer_attach(dpcm->h_stream, in snd_card_asihpi_pcm_hw_params()
493 err = hpi_stream_get_info_ex(dpcm->h_stream, NULL, in snd_card_asihpi_pcm_hw_params()
521 hpi_stream_host_buffer_detach(dpcm->h_stream); in snd_card_asihpi_hw_free()
593 ds->h_stream, in snd_card_asihpi_trigger()
603 dpcm->h_stream, in snd_card_asihpi_trigger()
604 ds->h_stream); in snd_card_asihpi_trigger()
619 hpi_handle_error(hpi_stream_start(dpcm->h_stream)); in snd_card_asihpi_trigger()
644 hpi_handle_error(hpi_stream_stop(dpcm->h_stream)); in snd_card_asihpi_trigger()
647 hpi_outstream_reset(dpcm->h_stream)); in snd_card_asihpi_trigger()
650 hpi_handle_error(hpi_stream_group_reset(dpcm->h_stream)); in snd_card_asihpi_trigger()
655 hpi_handle_error(hpi_stream_start(dpcm->h_stream)); in snd_card_asihpi_trigger()
661 hpi_handle_error(hpi_stream_stop(dpcm->h_stream)); in snd_card_asihpi_trigger()
749 ds->h_stream, &state, in snd_card_asihpi_timer_function()
763 hpi_handle_error(hpi_stream_start(ds->h_stream)); in snd_card_asihpi_timer_function()
863 ds->h_stream, pd, xfer1, in snd_card_asihpi_timer_function()
874 ds->h_stream, pd, in snd_card_asihpi_timer_function()
883 ds->h_stream, in snd_card_asihpi_timer_function()
891 ds->h_stream, in snd_card_asihpi_timer_function()
923 hpi_handle_error(hpi_outstream_reset(dpcm->h_stream)); in snd_card_asihpi_playback_prepare()
945 u32 h_stream) in snd_card_asihpi_playback_formats() argument
970 err = hpi_outstream_query_format(h_stream, &hpi_format); in snd_card_asihpi_playback_formats()
990 substream->number, &dpcm->h_stream); in snd_card_asihpi_playback_open()
1023 snd_card_asihpi_playback_formats(card, dpcm->h_stream); in snd_card_asihpi_playback_open()
1065 hpi_handle_error(hpi_outstream_close(dpcm->h_stream)); in snd_card_asihpi_playback_close()
1109 hpi_handle_error(hpi_instream_reset(dpcm->h_stream)); in snd_card_asihpi_capture_prepare()
1121 u32 h_stream) in snd_card_asihpi_capture_formats() argument
1146 err = hpi_instream_query_format(h_stream, &hpi_format); in snd_card_asihpi_capture_formats()
1170 substream->number, &dpcm->h_stream)); in snd_card_asihpi_capture_open()
1195 snd_card_asihpi_capture_formats(card, dpcm->h_stream); in snd_card_asihpi_capture_open()
1226 hpi_handle_error(hpi_instream_close(dpcm->h_stream)); in snd_card_asihpi_capture_close()
2804 u32 h_stream; in snd_asihpi_probe() local
2875 0, &h_stream)); in snd_asihpi_probe()
2877 err = hpi_instream_host_buffer_free(h_stream); in snd_asihpi_probe()
2880 hpi_handle_error(hpi_instream_close(h_stream)); in snd_asihpi_probe()