Commit 80d5bd93 authored by Cliff Cai's avatar Cliff Cai Committed by Mark Brown

ASoC: Blackfin: set the transfer size according the ac97_frame size

Signed-off-by: default avatarCliff Cai <cliff.cai@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 2552a710
...@@ -190,7 +190,7 @@ static inline int sport_hook_rx_dummy(struct sport_device *sport) ...@@ -190,7 +190,7 @@ static inline int sport_hook_rx_dummy(struct sport_device *sport)
desc = get_dma_next_desc_ptr(sport->dma_rx_chan); desc = get_dma_next_desc_ptr(sport->dma_rx_chan);
/* Copy the descriptor which will be damaged to backup */ /* Copy the descriptor which will be damaged to backup */
temp_desc = *desc; temp_desc = *desc;
desc->x_count = 0xa; desc->x_count = sport->dummy_count / 2;
desc->y_count = 0; desc->y_count = 0;
desc->next_desc_addr = sport->dummy_rx_desc; desc->next_desc_addr = sport->dummy_rx_desc;
local_irq_restore(flags); local_irq_restore(flags);
...@@ -309,7 +309,7 @@ static inline int sport_hook_tx_dummy(struct sport_device *sport) ...@@ -309,7 +309,7 @@ static inline int sport_hook_tx_dummy(struct sport_device *sport)
desc = get_dma_next_desc_ptr(sport->dma_tx_chan); desc = get_dma_next_desc_ptr(sport->dma_tx_chan);
/* Store the descriptor which will be damaged */ /* Store the descriptor which will be damaged */
temp_desc = *desc; temp_desc = *desc;
desc->x_count = 0xa; desc->x_count = sport->dummy_count / 2;
desc->y_count = 0; desc->y_count = 0;
desc->next_desc_addr = sport->dummy_tx_desc; desc->next_desc_addr = sport->dummy_tx_desc;
local_irq_restore(flags); local_irq_restore(flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment