On Wed, Jun 29, 2016 at 07:50:23PM +0100, Mark Brown wrote:
On Wed, Jun 29, 2016 at 09:38:11AM +0530, Subhransu S. Prusty wrote:
On Tue, Jun 28, 2016 at 12:15:20PM +0100, Mark Brown wrote:
On Tue, Jun 28, 2016 at 10:51:38AM +0530, Subhransu S. Prusty wrote:
This is HDA specific and the tag is to support use of same DMA channel by both host and codec.
What is a "DMA channel"?
Ok. I agree this looks like TDM and we should model it like that :)
Now, the issue is how? The current TDM API doesn't seem so intutive to invoke for this case. What do you suggest...
Without knowing what tags and DMA channels are it's hard to make suggestions...
Hi Mark,
Sure. Let me explain more.
Each DMA channel can be mapped to a stream in HDA. Each stream is mapped uniquely with a stream tag. The stream is programmed in both host and codec. In host the DMA is programmed with this stream tag and based on this DMA picks data from host buffer and puts it onto the link. Similarly the codec converter is programmed with the same stream tag and codec receives packet from the link associated with the stream tag.
Regards, Subhransu
--