Commit-ID: 7b42176a2969bc913cd2949e7edd935466745b11 Gitweb: http://git.kernel.org/tip/7b42176a2969bc913cd2949e7edd935466745b11 Author: Markus Pietrek <markus.pietrek@xxxxxxxxxx> AuthorDate: Wed, 4 Aug 2010 15:59:50 +0900 Committer: Paul Mundt <lethal@xxxxxxxxxxxx> CommitDate: Wed, 4 Aug 2010 15:59:50 +0900 sound/soc/sh/siu: Fixed undefined dma_length of scatter gather list Without this patch, an undefined/random sg->dma_length is used and the sound will be played/captured wrongly. Signed-off-by: Markus Pietrek <markus.pietrek@xxxxxxxxxx> Signed-off-by: Paul Mundt <lethal@xxxxxxxxxxxx> --- sound/soc/sh/siu_pcm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sound/soc/sh/siu_pcm.c b/sound/soc/sh/siu_pcm.c index 36170be..b0ccd0b 100644 --- a/sound/soc/sh/siu_pcm.c +++ b/sound/soc/sh/siu_pcm.c @@ -127,6 +127,7 @@ static int siu_pcm_wr_set(struct siu_port *port_info, sg_init_table(&sg, 1); sg_set_page(&sg, pfn_to_page(PFN_DOWN(buff)), size, offset_in_page(buff)); + sg_dma_len(&sg) = size; sg_dma_address(&sg) = buff; desc = siu_stream->chan->device->device_prep_slave_sg(siu_stream->chan, @@ -176,6 +177,7 @@ static int siu_pcm_rd_set(struct siu_port *port_info, sg_init_table(&sg, 1); sg_set_page(&sg, pfn_to_page(PFN_DOWN(buff)), size, offset_in_page(buff)); + sg_dma_len(&sg) = size; sg_dma_address(&sg) = buff; desc = siu_stream->chan->device->device_prep_slave_sg(siu_stream->chan, -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html