File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -360,8 +360,8 @@ static int dai_params(struct comp_dev *dev)
360360 return - EINVAL ;
361361 }
362362
363- /* get DMA channel, once the backend dma channel is known */
364- dd -> chan = dma_channel_get (dd -> dma , dev -> params .be_dma_ch );
363+ /* get DMA channel, once the stream_tag is known */
364+ dd -> chan = dma_channel_get (dd -> dma , dev -> params .stream_tag );
365365 if (dd -> chan < 0 ) {
366366 trace_dai_error ("eDc" );
367367 return - EINVAL ;
Original file line number Diff line number Diff line change @@ -515,10 +515,11 @@ static int host_params(struct comp_dev *dev)
515515 host_elements_reset (dev );
516516#endif
517517
518+ dev -> params .stream_tag -= 1 ;
518519 /* get DMA channel from DMAC
519- * note: host_dma_ch is ignored by dw-dma
520+ * note: stream_tag is ignored by dw-dma
520521 */
521- hd -> chan = dma_channel_get (hd -> dma , dev -> params .host_dma_ch );
522+ hd -> chan = dma_channel_get (hd -> dma , dev -> params .stream_tag );
522523 if (hd -> chan < 0 ) {
523524 trace_host_error ("eDC" );
524525 return - ENODEV ;
Original file line number Diff line number Diff line change @@ -500,8 +500,7 @@ struct sof_ipc_stream_params {
500500 enum sof_ipc_stream_direction direction ;
501501 enum sof_ipc_frame frame_fmt ;
502502 enum sof_ipc_buffer_format buffer_fmt ;
503- uint32_t host_dma_ch ;
504- uint32_t be_dma_ch ;
503+ uint32_t stream_tag ;
505504 uint32_t rate ;
506505 uint32_t channels ;
507506 uint32_t sample_valid_bytes ;
You can’t perform that action at this time.
0 commit comments