This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bug in the generic EDMA McBSP driver?

I'm working on a IOM mini-driver based on the generic EDMA McBSP Device Driver for TMS320C6x1x DSPs (SPRA846A).

In my opinion, there is a bug in  c6x1x_edma_mcbsp.c  which turns up when using two instances of the driver on a c6713 dsp:

On line 675 both instances get the same EDMA channels and therefore the second instantiation fails.

I think more correct would be

static Int edmaChans[NUMPORTS][2] = {{13,12},{15,14}};

instead of

static Int edmaChans[2] = {15,14};

on line 121, and

edmaChan = EDMA_map(eventIds[port->devid][chan->mode], edmaChans[port->devid][chan->mode]);

instead of

edmaChan = EDMA_map(eventIds[port->devid][chan->mode], edmaChans[chan->mode]);

Robert