From patchwork Tue Jan 18 04:43:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rajashekhara, Sudhakar" X-Patchwork-Id: 485331 Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0I4jQJj027644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 18 Jan 2011 04:45:53 GMT Received: from dlep36.itg.ti.com ([157.170.170.91]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id p0I4hasO027379 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Jan 2011 22:43:36 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id p0I4hZVC020301; Mon, 17 Jan 2011 22:43:35 -0600 (CST) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 588F480627; Mon, 17 Jan 2011 22:43:35 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dbdp20.itg.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by linux.omap.com (Postfix) with ESMTP id 0E35380626 for ; Mon, 17 Jan 2011 22:43:33 -0600 (CST) Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p0I4hVgF024429; Tue, 18 Jan 2011 10:13:31 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Tue, 18 Jan 2011 10:13:31 +0530 From: "Rajashekhara, Sudhakar" To: "alsa-devel@alsa-project.org" , "davinci-linux-open-source@linux.davincidsp.com" Date: Tue, 18 Jan 2011 10:13:14 +0530 Subject: ALSA issue on DA850/OMAP-L138/AM18x Thread-Topic: ALSA issue on DA850/OMAP-L138/AM18x Thread-Index: AcuubRAm3/ixV8LcTpqdqz85KBjpxAIRepYgAATsrDAAANRZEA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-hashedpuzzle: HOJN Hv/E R9T9 UTKy XVFV aJI2 ai0U cWZC d4rC ejmn g7SG mSLI xRi4 yQ84 ygqK 1f0h; 5; YQBsAHMAYQAtAGQAZQB2AGUAbABAAGEAbABzAGEALQBwAHIAbwBqAGUAYwB0AC4AbwByAGcAOwBkAGEAdgBpAG4AYwBpAC0AbABpAG4AdQB4AC0AbwBwAGUAbgAtAHMAbwB1AHIAYwBlAEAAbABpAG4AdQB4AC4AZABhAHYAaQBuAGMAaQBkAHMAcAAuAGMAbwBtADsAawBoAGkAbABtAGEAbgBAAGQAZQBlAHAAcgBvAG8AdABzAHkAcwB0AGUAbQBzAC4AYwBvAG0AOwBsAGkAbgB1AHgALQBhAHIAbQAtAGsAZQByAG4AZQBsAEAAbABpAHMAdABzAC4AaQBuAGYAcgBhAGQAZQBhAGQALgBvAHIAZwA7AG0AaQBjAGgAYQBlAGwALgB3AGkAbABsAGkAYQBtAHMAbwBuAEAAYwByAGkAdABpAGMAYQBsAGwAaQBuAGsALgBjAG8AbQA=; Sosha1_v1; 7; {BF618FE3-8EFF-451B-9BDF-6D62FFE59F8F}; cwB1AGQAaABhAGsAYQByAC4AcgBhAGoAQAB0AGkALgBjAG8AbQA=; Tue, 18 Jan 2011 04:43:14 GMT; QQBMAFMAQQAgAGkAcwBzAHUAZQAgAG8AbgAgAEQAQQA4ADUAMAAvAE8ATQBBAFAALQBMADEAMwA4AC8AQQBNADEAOAB4AA== x-cr-puzzleid: {BF618FE3-8EFF-451B-9BDF-6D62FFE59F8F} acceptlanguage: en-US MIME-Version: 1.0 Cc: "khilman@deeprootsystems.com" , "linux-arm-kernel@lists.infradead.org" X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 18 Jan 2011 04:45:53 +0000 (UTC) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index 9eec630..17c0dbc 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -473,6 +473,11 @@ static struct resource da850_mcasp_resources[] = { }, }; +struct platform_device davinci_pcm_device = { + .name = "davinci-pcm-audio", + .id = -1, +}; + static struct platform_device da850_mcasp_device = { .name = "davinci-mcasp", .id = 0, @@ -480,8 +485,15 @@ static struct platform_device da850_mcasp_device = { .resource = da850_mcasp_resources, }; +static void davinci_init_pcm(void) +{ + platform_device_register(&davinci_pcm_device); +} + void __init da8xx_register_mcasp(int id, struct snd_platform_data *pdata) { + davinci_init_pcm(); + /* DA830/OMAP-L137 has 3 instances of McASP */ if (cpu_is_davinci_da830() && id == 1) { da830_mcasp1_device.dev.platform_data = pdata; diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index bc9e6b0..07db881 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c @@ -224,7 +224,7 @@ static struct snd_soc_dai_link da8xx_evm_dai = { .stream_name = "AIC3X", .cpu_dai_name= "davinci-mcasp.0", .codec_dai_name = "tlv320aic3x-hifi", - .codec_name = "tlv320aic3x-codec.0-001a", + .codec_name = "tlv320aic3x-codec.1-0018", .platform_name = "davinci-pcm-audio", .init = evm_aic3x_init, .ops = &evm_ops,