From patchwork Thu Nov 8 05:37:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 12757 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id F030423E00 for ; Thu, 8 Nov 2012 05:35:24 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 87D47A1946E for ; Thu, 8 Nov 2012 05:35:24 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3506813iej.11 for ; Wed, 07 Nov 2012 21:35:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :dlp-filter:x-mtr:x-brightmail-tracker:x-brightmail-tracker :x-cfilter-loop:x-gm-message-state; bh=afHse2WPeIxcLFD+1wycYLDEX1qbMS6ddy8KMQKFPf0=; b=ibMdNlZoVpd6ogmPH7d2rrdAYTC0AriAQdL5x4O12JKILO6KgVWoC1c863nF6u38Ar 6ZE5/BMRPQpN/GlqfRKjH43xFffsMXM4Z8avcNof70W1Uyow3LGQ+qttCKAN9dj8jQT/ 0mmznurq8xxxzFnBWVPzPXoquBrGfYlxjHkO7P+bKBh6P1YL+b3rJj7OhkgpmxIMhiwy uV8RDGNgw+6dW6BV8EGlpGMX6npzo6Sh0vwDFgcMB5mBCD+UZEXhZLd91zK7s+sC5VOj X7Pu8Lj9S5tKTgVqV5OGbq+FZFP9O4ABIu0EKJFQlpY/lVmHtdLEJoTafuh+ISZhADb6 YVHQ== Received: by 10.50.152.137 with SMTP id uy9mr6876144igb.62.1352352924003; Wed, 07 Nov 2012 21:35:24 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp325477igt; Wed, 7 Nov 2012 21:35:23 -0800 (PST) Received: by 10.66.86.3 with SMTP id l3mr19253538paz.55.1352352923389; Wed, 07 Nov 2012 21:35:23 -0800 (PST) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id yl9si34195403pbc.302.2012.11.07.21.35.23; Wed, 07 Nov 2012 21:35:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD500HZCM6YO8N0@mailout4.samsung.com>; Thu, 08 Nov 2012 14:35:22 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 5A.E2.12699.A944B905; Thu, 08 Nov 2012 14:35:22 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-c2-509b449a429a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F9.E2.12699.A944B905; Thu, 08 Nov 2012 14:35:22 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MD500CD1M0GTL50@mmp1.samsung.com>; Thu, 08 Nov 2012 14:35:22 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org Subject: [PATCH 5/5] Sound: Add FDT support to CMD. Date: Thu, 08 Nov 2012 11:07:19 +0530 Message-id: <1352353039-17165-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1352353039-17165-1-git-send-email-rajeshwari.s@samsung.com> References: <1352353039-17165-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsWyRsSkWneWy+wAg2uPRC0err/JYjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBlfPjyjb1gMmtFV/9TxgbGaSxdjJwcEgImEh+2HISy xSQu3FvP1sXIxSEksJRR4uyBk2wwRU83f2AHsYUEFjFK7FolA1E0kUmieeoKVpAEm4CRxNaT 0xhBbBEBCYlf/VfBbGaBGInX+3+ADRIWMJaYOHsZM4jNIqAqcXj3TbA4r4CHxPfT+5ghlilI HJv6FWwmp4CnxLQJS4DiHEDLPCQuHiuAaBWQ+Db5EAtIWEJAVmLTAajO62wSE9/lQtiSEgdX 3GCZwCi8gJFhFaNoakFyQXFSeq6RXnFibnFpXrpecn7uJkZgKJ7+90x6B+OqBotDjAIcjEo8 vBqSswOEWBPLiitzDzFKcDArifAucwYK8aYkVlalFuXHF5XmpBYfYvQBOmQis5Rocj4wTvJK 4g2NTcxNjU0tjYzMTE1xCCuJ8zZ7pAQICaQnlqRmp6YWpBbBjGPi4JQCRsvqGQ4x7dlGQc/6 Zb98bn3423l57N6ohsulpy562i9J/hzpeNVCfd21ne8/s5gdZrijkHn8pzWje+9KI3/bf5nf fz98c2qD0+5Uhysy8RbH3khuKJ15J39r29no0w+ZHllwPn5+qP8C37wAY/37jR93iD7XZMtZ 0txfx3Z+woT34Wuf7Szv9FViKc5INNRiLipOBABq01VBcgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42I5/e+xgO4sl9kBBv+fclo8XH+TxWLK4S8s Dkwed67tYQtgjGpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLx CdB1y8wBmq2kUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxhzPjw5Rt7wWTW iq7+p4wNjNNYuhg5OSQETCSebv7ADmGLSVy4t54NxBYSWMQosWuVTBcjF5A9kUmieeoKVpAE m4CRxNaT0xhBbBEBCYlf/VfBbGaBGInX+3+ANQsLGEtMnL2MGcRmEVCVOLz7JlicV8BD4vvp fcwQyxQkjk39CjaTU8BTYtqEJUBxDqBlHhIXjxVMYORdwMiwilE0tSC5oDgpPddIrzgxt7g0 L10vOT93EyM41J9J72Bc1WBxiFGAg1GJh1dDcnaAEGtiWXFl7iFGCQ5mJRHeZc5AId6UxMqq 1KL8+KLSnNTiQ4w+QEdNZJYSTc4HxmFeSbyhsYm5qbGppYmFiZklDmElcd5mj5QAIYH0xJLU 7NTUgtQimHFMHJxSDYysM6L7VWfNl49hjexleW9lPElzoi7/6YL3V5geXdtrnrP/nrv+Wufd 6xI3O7YwxSpvnJe65OhJ5Sk78uq2JFif+mNSVPvft8oz/lMB64OZGo2WjjmvjJQ4eN32xX8P vPJc07t1qu/mZpO3WTPspe9NW3BHuIutkOEZp41v+vGjHd5W4r7LTJRYijMSDbWYi4oTAexX UQKiAgAA X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQmvWa84/+eQbaTMoL2RV/DsD9DkIbDdp87KerhOBX1xP8LGvrV4Yr4jeg7mpbUL4sgeCiDS This patch adds FDT support to sound init. Signed-off-by: Rajeshwari Shinde --- common/cmd_sound.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/common/cmd_sound.c b/common/cmd_sound.c index 459d1eb..ad8669f 100644 --- a/common/cmd_sound.c +++ b/common/cmd_sound.c @@ -33,7 +33,11 @@ static int do_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { int ret; +#ifdef CONFIG_OF_CONTROL + ret = sound_init(gd->fdt_blob); +#else ret = sound_init(); +#endif if (ret) { printf("Initialise Audio driver failed\n"); return CMD_RET_FAILURE;