From patchwork Tue Dec 28 04:17:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lambert X-Patchwork-Id: 435581 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBS63ofc003623 for ; Tue, 28 Dec 2010 06:04:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753389Ab0L1ERu (ORCPT ); Mon, 27 Dec 2010 23:17:50 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:59043 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753309Ab0L1ERn (ORCPT ); Mon, 27 Dec 2010 23:17:43 -0500 Received: from dlep34.itg.ti.com ([157.170.170.115]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id oBS4HUej026871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 27 Dec 2010 22:17:32 -0600 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 oBS4HUm6021231; Mon, 27 Dec 2010 22:17:30 -0600 (CST) Received: from localhost (dta0193948-ubuntu.am.dhcp.ti.com [128.247.75.14]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id oBS4HTf24896; Mon, 27 Dec 2010 22:17:29 -0600 (CST) From: David Lambert To: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org Cc: Liam Girdwood , Mark Brown , Tony Lindgren , Paul Walmsley , David Lambert Subject: [PATCH 5/5] MAP4: DMIC: Add DMIC codec platform devices Date: Mon, 27 Dec 2010 22:17:06 -0600 Message-Id: <1293509826-23253-6-git-send-email-dlambert@ti.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1293509826-23253-1-git-send-email-dlambert@ti.com> References: <1293509826-23253-1-git-send-email-dlambert@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 28 Dec 2010 06:04:20 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index df5a425..bf271e5 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c @@ -505,6 +505,16 @@ static void __init omap_sfh7741prox_init(void) } } +static struct platform_device codec_dmic0 = { + .name = "dmic-codec", + .id = 0, +}; + +static inline void omap_dmic_init(void) +{ + platform_device_register(&codec_dmic0); +} + static void __init omap_4430sdp_init(void) { int status; @@ -528,6 +538,7 @@ static void __init omap_4430sdp_init(void) spi_register_board_info(sdp4430_spi_board_info, ARRAY_SIZE(sdp4430_spi_board_info)); } + omap_dmic_init(); } static void __init omap_4430sdp_map_io(void)