From patchwork Tue May 17 03:14:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Neri X-Patchwork-Id: 790342 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 p4H3GEXA020617 for ; Tue, 17 May 2011 03:16:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751834Ab1EQDQN (ORCPT ); Mon, 16 May 2011 23:16:13 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:32971 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751576Ab1EQDQI (ORCPT ); Mon, 16 May 2011 23:16:08 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p4H3G6H4007422 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 May 2011 22:16:06 -0500 Received: from emcc1.dextra-mty.naucm.ext.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4H3G4pd003151; Mon, 16 May 2011 22:16:04 -0500 (CDT) Received: from localhost (dexx0075479.dextra-mty.naucm.ext.ti.com [10.87.228.122]) by emcc1.dextra-mty.naucm.ext.ti.com (8.13.8+Sun/8.13.8) with ESMTP id p4H3G4Jb025095; Mon, 16 May 2011 22:16:04 -0500 (CDT) From: Ricardo Neri To: linux-omap@vger.kernel.org, tony@atomide.com, b-cousson@ti.com, paul@pwsan.com Cc: Ricardo Neri Subject: [PATCH 2/2] OMAP4: Add device for HDMI OMAP4 audio for ASoC machine driver Date: Mon, 16 May 2011 22:14:39 -0500 Message-Id: <1305602079-3852-3-git-send-email-ricardo.neri@ti.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1305602079-3852-1-git-send-email-ricardo.neri@ti.com> References: <1305602079-3852-1-git-send-email-ricardo.neri@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.6 (demeter1.kernel.org [140.211.167.41]); Tue, 17 May 2011 03:16:14 +0000 (UTC) This device is used by the OMAP4 HDMI audio machine driver to register the HDMI sound card. Signed-off-by: Ricardo Neri --- arch/arm/mach-omap2/devices.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 56e2e98..6add0d2 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -300,6 +300,14 @@ static struct platform_device omap_pcm = { }; /* + * Device for the ASoC OMAP4 HDMI machine driver + */ +static struct platform_device omap4_hdmi_audio = { + .name = "omap4-hdmi-audio", + .id = -1, +}; + +/* * OMAP2420 has 2 McBSP ports * OMAP2430 has 5 McBSP ports * OMAP3 has 5 McBSP ports @@ -327,6 +335,8 @@ static void omap_init_audio(void) NULL, 0, false); WARN(IS_ERR(od_hdmi), "%s: could not build omap_device for %s\n", __func__, dev_hdmi_name); + + platform_device_register(&omap4_hdmi_audio); } platform_device_register(&omap_mcbsp1);