From patchwork Fri Oct 24 17:50:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5149101 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 77300C11AC for ; Fri, 24 Oct 2014 17:53:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C1462017E for ; Fri, 24 Oct 2014 17:53:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC7FE20155 for ; Fri, 24 Oct 2014 17:53:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xhj0c-00064e-IS; Fri, 24 Oct 2014 17:50:42 +0000 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xhj0Y-0005yk-EL for linux-arm-kernel@lists.infradead.org; Fri, 24 Oct 2014 17:50:39 +0000 Received: by mail-wi0-f174.google.com with SMTP id q5so1856298wiv.7 for ; Fri, 24 Oct 2014 10:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=UItTj6cgacC68oa1P7Ymon8PGVXvMi2nCDj0cePMQLU=; b=K+FgOoLWs6vmNsQNKtt/0pBjDlxEHThXnwkeXTxKZZmKHd5AbLpfua+dvMZ0cr5SwC OHsxrE3zIVPSjidbdIBy8Fg0x2QSg6QYj7I65hzyZSeDTvTnQvTkTzmlhAjpewpqRiz+ cqqCeHqhTpdEf94+4qnErlNoaDrcel3Fywix35csLmaRj1+0STgGrJ6qXIHwsWkS0sQr 2ns27+3S2Dpgc1T8YGUYlrU1K5+PiIwatJsNLp0nRvuIEYoiH+Dvnq1S5/+/4hblXSxb y5M4qMbIUVmmEDfOPjrxQ4JInGkA8Fd16+B9F23CWh/voIVrskRwZQ0ThZ3vRRXwFlLG m8jA== X-Received: by 10.194.236.232 with SMTP id ux8mr6450930wjc.96.1414173016158; Fri, 24 Oct 2014 10:50:16 -0700 (PDT) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id ex6sm6370456wjb.20.2014.10.24.10.50.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Oct 2014 10:50:15 -0700 (PDT) From: Dmitry Eremin-Solenikov To: linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org Subject: [PATCH V3 1/2] ARM: pxa: spitz: register spitz-audio device Date: Fri, 24 Oct 2014 21:50:04 +0400 Message-Id: <1414173005-20967-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141024_105038_713903_40E5FE48 X-CRM114-Status: GOOD ( 10.57 ) X-Spam-Score: -0.8 (/) Cc: Mark Brown , Robert Jarzmik , Daniel Mack , Haojian Zhuang , Liam Girdwood X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Register spitz-audio device to be used by ASoC driver to bind ASoC platform driver. Currently old 'soc-audio' approach is used, which needs to be replaced with proper device. Signed-off-by: Dmitry Eremin-Solenikov --- arch/arm/mach-pxa/spitz.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 840c3a4..962a7f3 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c @@ -924,6 +924,14 @@ static inline void spitz_i2c_init(void) {} #endif /****************************************************************************** + * Audio devices + ******************************************************************************/ +static inline void spitz_audio_init(void) +{ + platform_device_register_simple("spitz-audio", -1, NULL, 0); +} + +/****************************************************************************** * Machine init ******************************************************************************/ static void spitz_poweroff(void) @@ -970,6 +978,7 @@ static void __init spitz_init(void) spitz_nor_init(); spitz_nand_init(); spitz_i2c_init(); + spitz_audio_init(); } static void __init spitz_fixup(struct tag *tags, char **cmdline)