From patchwork Tue Jul 13 14:55:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pietrek, Markus" X-Patchwork-Id: 111803 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 o6DF0i0t009934 for ; Tue, 13 Jul 2010 15:00:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753641Ab0GMPAo (ORCPT ); Tue, 13 Jul 2010 11:00:44 -0400 Received: from mail3.emtrion.de ([80.150.99.69]:40642 "EHLO mail3.emtrion.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751449Ab0GMPAn convert rfc822-to-8bit (ORCPT ); Tue, 13 Jul 2010 11:00:43 -0400 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:01:48 +0000 (UTC) X-Greylist: delayed 327 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Jul 2010 11:00:43 EDT 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 16:55:15 +0200 Message-ID: <4C3C7E45.8010102@emtrion.de> Date: Tue, 13 Jul 2010 16:55:01 +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: [PATCH] sound/soc/sh/siu: Fixed undefined dma_length of scatter gather list X-TM-AS-Product-Ver: SMEX-8.0.0.1307-6.000.1038-17380.005 X-TM-AS-Result: No--6.055900-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 diff --git a/sound/soc/sh/siu_pcm.c b/sound/soc/sh/siu_pcm.c index 36170be..f6fdf9c 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,