From patchwork Tue Jul 13 15:12:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pietrek, Markus" X-Patchwork-Id: 111806 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6DFCBst011977 for ; Tue, 13 Jul 2010 15:12:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756807Ab0GMPMK (ORCPT ); Tue, 13 Jul 2010 11:12:10 -0400 Received: from mail3.emtrion.de ([80.150.99.69]:40848 "EHLO mail3.emtrion.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756444Ab0GMPMJ convert rfc822-to-8bit (ORCPT ); Tue, 13 Jul 2010 11:12:09 -0400 Received: from [192.168.2.11] (192.168.2.11) by BMK019S01.emtrion.local (172.26.48.1) with Microsoft SMTP Server id 8.2.176.0; Tue, 13 Jul 2010 17:12:06 +0200 Message-ID: <4C3C8245.9030906@emtrion.de> Date: Tue, 13 Jul 2010 17:12:05 +0200 From: Markus Pietrek User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Subject: Re: [PATCH] sound/soc/sh/siu: Fixed undefined dma_length of scatter gather list References: <4C3C7E45.8010102@emtrion.de> In-Reply-To: <4C3C7E45.8010102@emtrion.de> X-TM-AS-Product-Ver: SMEX-8.0.0.1307-6.000.1038-17380.005 X-TM-AS-Result: No--10.213000-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 13 Jul 2010 15:12:11 +0000 (UTC) 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,