提交 1d945e2b 编写于 作者: R Roy Huang 提交者: Bryan Wu

Blackfin arch: add set_dma_curr_addr DMA API to support sound driver recording function

Signed-off-by: NRoy Huang <roy.huang@analog.com>
Signed-off-by: NBryan Wu <bryan.wu@analog.com>
上级 518039bc
...@@ -345,6 +345,16 @@ void set_dma_sg(unsigned int channel, struct dmasg *sg, int nr_sg) ...@@ -345,6 +345,16 @@ void set_dma_sg(unsigned int channel, struct dmasg *sg, int nr_sg)
} }
EXPORT_SYMBOL(set_dma_sg); EXPORT_SYMBOL(set_dma_sg);
void set_dma_curr_addr(unsigned int channel, unsigned long addr)
{
BUG_ON(!(dma_ch[channel].chan_status != DMA_CHANNEL_FREE
&& channel < MAX_BLACKFIN_DMA_CHANNEL));
dma_ch[channel].regs->curr_addr_ptr = addr;
SSYNC();
}
EXPORT_SYMBOL(set_dma_curr_addr);
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
* Get the DMA status of a specific DMA channel from the system. * Get the DMA status of a specific DMA channel from the system.
*-----------------------------------------------------------------------------*/ *-----------------------------------------------------------------------------*/
......
...@@ -159,6 +159,7 @@ void set_dma_y_modify(unsigned int channel, short y_modify); ...@@ -159,6 +159,7 @@ void set_dma_y_modify(unsigned int channel, short y_modify);
void set_dma_config(unsigned int channel, unsigned short config); void set_dma_config(unsigned int channel, unsigned short config);
unsigned short set_bfin_dma_config(char direction, char flow_mode, unsigned short set_bfin_dma_config(char direction, char flow_mode,
char intr_mode, char dma_mode, char width); char intr_mode, char dma_mode, char width);
void set_dma_curr_addr(unsigned int channel, unsigned long addr);
/* get curr status for polling */ /* get curr status for polling */
unsigned short get_dma_curr_irqstat(unsigned int channel); unsigned short get_dma_curr_irqstat(unsigned int channel);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册