mirror of https://github.com/thesofproject/sof.git
drivers: imx: sdma: Fix status r/w position
sdma channel type can also be _MCU2SHP/_SHP2MCU but this case was missed from sdma_status. Fix it now. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
parent
33a0990cc4
commit
a27633a958
|
@ -618,11 +618,13 @@ static int sdma_status(struct dma_chan_data *channel,
|
||||||
status->w_pos = bd->buf_xaddr;
|
status->w_pos = bd->buf_xaddr;
|
||||||
break;
|
break;
|
||||||
case SDMA_CHAN_TYPE_AP2MCU:
|
case SDMA_CHAN_TYPE_AP2MCU:
|
||||||
|
case SDMA_CHAN_TYPE_MCU2SHP:
|
||||||
status->r_pos = bd->buf_addr;
|
status->r_pos = bd->buf_addr;
|
||||||
status->w_pos = pdata->fifo_paddr;
|
status->w_pos = pdata->fifo_paddr;
|
||||||
/* We cannot see the target address */
|
/* We cannot see the target address */
|
||||||
break;
|
break;
|
||||||
case SDMA_CHAN_TYPE_MCU2AP:
|
case SDMA_CHAN_TYPE_MCU2AP:
|
||||||
|
case SDMA_CHAN_TYPE_SHP2MCU:
|
||||||
status->w_pos = bd->buf_addr;
|
status->w_pos = bd->buf_addr;
|
||||||
status->r_pos = pdata->fifo_paddr;
|
status->r_pos = pdata->fifo_paddr;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue