From patchwork Wed Nov 28 06:10:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 13262 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 AD85023E08 for ; Wed, 28 Nov 2012 06:04:15 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 62BA2A1854A for ; Wed, 28 Nov 2012 06:04:15 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so6707301iag.11 for ; Tue, 27 Nov 2012 22:04:15 -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=W3sG2ePgq8xmflcrTptJAZueRgRlcrkTHlxWrMhRCNA=; b=Rgo7OiXH/yKkvbAENINGF0EiIMtUU7U4s3RwLrHUtSq7tET7TlcpkqXrEDsa7tDgDj eUlKUonj1Ziva9nO4yQhknvP5nR1GI0pLF4skviwhTRj3Vv7DRKUPlpHQoO6fJkH5ZBa CW5VSBui67cqhNtSUZFXXT/7s4LFlCLGflzj4XgQOJWaT1Wo9HxdfUmVUeJyxS02c3WF XKk8LHN6CabvCuXjfEs5xdeziw9axBLoMT3DxUvm95ItSJ68WkuQsHKjNO2LIUf5G2hE arypS7huL+Fe67TErPD42CdY6eS3uNuFnEMdl2umO8pHTdQrf7lbWYbEF2dCmr5p8LGg OzaA== Received: by 10.50.91.195 with SMTP id cg3mr20524913igb.57.1354082655163; Tue, 27 Nov 2012 22:04:15 -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 n20csp594684igt; Tue, 27 Nov 2012 22:04:14 -0800 (PST) Received: by 10.68.242.40 with SMTP id wn8mr55991984pbc.16.1354082654522; Tue, 27 Nov 2012 22:04:14 -0800 (PST) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id qu6si27625760pbc.195.2012.11.27.22.04.14; Tue, 27 Nov 2012 22:04:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0ME6005E5OTY8PN0@mailout3.samsung.com>; Wed, 28 Nov 2012 15:03:56 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.126]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 6B.E4.12699.C49A5B05; Wed, 28 Nov 2012 15:03:56 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-60-50b5a94ca3c4 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id FA.E4.12699.C49A5B05; Wed, 28 Nov 2012 15:03:56 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0ME600J1EOU4G930@mmp2.samsung.com>; Wed, 28 Nov 2012 15:03:56 +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 7/7 V2] Sound: Add FDT support to CMD. Date: Wed, 28 Nov 2012 11:40:13 +0530 Message-id: <1354083013-5213-8-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1354083013-5213-1-git-send-email-rajeshwari.s@samsung.com> References: <1354083013-5213-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsWyRsSkTtdn5dYAg2PfzSwerr/JYjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBlvO27zF4wna1i5dM1rA2MP1i6GDk5JARMJFZ0vmOG sMUkLtxbz9bFyMUhJLCUUWLq4a1sMEWz7x9kBLGFBKYzSpz9agVRNJFJYtKa7awgCTYBI4mt J6eBFYkISEj86r8KZjMLxEi83v8DbJCwgJnEg/PHwOIsAqoSl379BbI5OHgF3CWuno2H2KUg cWzqV7CRnAIeEvd6F7FD7HWXWNG8mwmiVUDi2+RDLCCtEgKyEpsOMIOcIyFwnU3i/ORGVog5 khIHV9xgmcAovICRYRWjaGpBckFxUnqukV5xYm5xaV66XnJ+7iZGYDCe/vdMegfjqgaLQ4wC HIxKPLwOjlsDhFgTy4orcw8xSnAwK4nw8rQBhXhTEiurUovy44tKc1KLDzH6AF0ykVlKNDkf GCl5JfGGxibmpsamlkZGZqamOISVxHmbPVIChATSE0tSs1NTC1KLYMYxcXBKNTAGzvGNdEna tOzIfcvXS8I+PV14qM/62NU/19r/rgwveVsivEX+UMDR8xMuWR5f6bTXXrVjcTzv+b13yq0W SclOtRauuXxje39B8eoroRK1Jxr/aO331vm95MrMsKlJq98XSS58ITH9YpzGTrWJU5siOiZ5 b752et+xG32GxZyGeoa5O57K75uapMRSnJFoqMVcVJwIAJeL881zAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42I5/e+xoK7Pyq0BBtdfaFs8XH+TxWLK4S8s Dkwed67tYQtgjGpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLx CdB1y8wBmq2kUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxhzHjbd5m9YDpb xcqna1gbGH+wdDFyckgImEjMvn+QEcIWk7hwbz0biC0kMJ1R4uxXqy5GLiB7IpPEpDXbWUES bAJGEltPTgNrEBGQkPjVfxXMZhaIkXi9/wdYs7CAmcSD88fA4iwCqhKXfv0Fsjk4eAXcJa6e jYfYpSBxbOpXsJGcAh4S93oXsUPsdZdY0bybaQIj7wJGhlWMoqkFyQXFSem5RnrFibnFpXnp esn5uZsYwaH+THoH46oGi0OMAhyMSjy8Do5bA4RYE8uKK3MPMUpwMCuJ8PK0AYV4UxIrq1KL 8uOLSnNSiw8x+gAdNZFZSjQ5HxiHeSXxhsYm5qbGppYmFiZmljiElcR5mz1SAoQE0hNLUrNT UwtSi2DGMXFwSjUwqs+29E/gvVN33sYw40SyxoGlMocEfj5KfCFa0Xz14b8JnGpRrZY+c74p hPD+iX0aYWbyVPnqV7sPPJ9VOdV00+SboxslSxzPPxT/smq+W1HtPG/LBzemC6+tOneE76Hm fy3lXt/Jr7vubzhseLJt/x+2iGdcM819S6y0p2epXzZ/v6Rj8SUmJZbijERDLeai4kQAlkC7 uKICAAA= X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQnXJZ/q1iuLD4KvJnjhLG/hV2HYUG2uK1OAz2k+Ap7x3UKvYfggCPkNc9UYZpgfZfpjKAlf This patch adds FDT support to sound init in CMD. Signed-off-by: Rajeshwari Shinde --- Changes in V2: - Same function call for sound init in case of FDT or non FDT support. common/cmd_sound.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/common/cmd_sound.c b/common/cmd_sound.c index 459d1eb..e06b1db 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; - ret = sound_init(); +#ifdef CONFIG_OF_CONTROL + ret = sound_init(gd->fdt_blob); +#else + ret = sound_init(NULL); +#endif if (ret) { printf("Initialise Audio driver failed\n"); return CMD_RET_FAILURE;