From patchwork Wed Sep 9 20:19:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mani, Arun" X-Patchwork-Id: 46695 Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8AMm4VA020442 for ; Thu, 10 Sep 2009 22:48:04 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n89KJROY020164; Wed, 9 Sep 2009 15:19:32 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id n89KJQ8g001959; Wed, 9 Sep 2009 15:19:26 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 937B580627; Wed, 9 Sep 2009 15:19:26 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dlep34.itg.ti.com (dlep34.itg.ti.com [157.170.170.115]) by linux.omap.com (Postfix) with ESMTP id EC11780626 for ; Wed, 9 Sep 2009 15:19:24 -0500 (CDT) Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id n89KJOAo014643; Wed, 9 Sep 2009 15:19:24 -0500 (CDT) Received: from gtcx26221.gt.design.ti.com (gtcx26221.gt.design.ti.com [158.218.102.36]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id n89KJOZ12306; Wed, 9 Sep 2009 15:19:24 -0500 (CDT) Received: from gtcx26221.gt.design.ti.com (localhost.localdomain [127.0.0.1]) by gtcx26221.gt.design.ti.com (8.13.1/8.13.1) with ESMTP id n89KJNiY015099; Wed, 9 Sep 2009 16:19:23 -0400 Received: (from root@localhost) by gtcx26221.gt.design.ti.com (8.13.1/8.13.1/Submit) id n89KJNuJ015096; Wed, 9 Sep 2009 16:19:23 -0400 From: avm@ti.com To: davinci-linux-open-source@linux.davincidsp.com Date: Wed, 9 Sep 2009 16:19:23 -0400 Message-Id: <1252527563-15074-1-git-send-email-avm@ti.com> X-Mailer: git-send-email 1.6.0.4 Cc: alsa-dlevel@alsa-project.org, Arun Mani Subject: [PATCH] To avoid the divide by zero error during the first execution, initialize the data type. X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.4 Precedence: list List-Id: davinci-linux-open-source.linux.davincidsp.com List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com From: Arun Mani Signed-off-by: Arun Mani --- sound/soc/davinci/davinci-i2s.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c index b1ea52f..61b1763 100644 --- a/sound/soc/davinci/davinci-i2s.c +++ b/sound/soc/davinci/davinci-i2s.c @@ -104,10 +104,12 @@ enum { static struct davinci_pcm_dma_params davinci_i2s_pcm_out = { .name = "I2S PCM Stereo out", + .data_type = 2, //Initialize the data type for playback to avoid divide by zero }; static struct davinci_pcm_dma_params davinci_i2s_pcm_in = { .name = "I2S PCM Stereo in", + .data_type = 2, //Initialize the data type for playback to avoid divide by zero }; struct davinci_mcbsp_dev {