From patchwork Mon Nov 23 08:59:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "A. Porodko" X-Patchwork-Id: 62114 Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAN8xt60020115 for ; Mon, 23 Nov 2009 08:59:56 GMT Received: from dlep34.itg.ti.com ([157.170.170.115]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id nAN8xtKV032426 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 23 Nov 2009 02:59:55 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id nAN8xtXY025213 for ; Mon, 23 Nov 2009 02:59:55 -0600 (CST) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 7BADB806BD for ; Mon, 23 Nov 2009 02:59:44 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id CFBA980626 for ; Mon, 23 Nov 2009 02:59:16 -0600 (CST) Received: from neches.ext.ti.com (localhost [127.0.0.1]) by dflp52.itg.ti.com (8.13.7/8.13.7) with ESMTP id nAN8xGii006938 for ; Mon, 23 Nov 2009 02:59:16 -0600 (CST) Received: from mail107-va3-R.bigfish.com (mail-va3.bigfish.com [216.32.180.113]) by neches.ext.ti.com (8.13.7/8.13.7) with ESMTP id nAN8xFDK024124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 23 Nov 2009 02:59:16 -0600 Received: from mail107-va3 (localhost.localdomain [127.0.0.1]) by mail107-va3-R.bigfish.com (Postfix) with ESMTP id 776141200500 for ; Mon, 23 Nov 2009 08:59:15 +0000 (UTC) X-SpamScore: 3 X-BigFish: vps3(zzzz1202h1082kzzz2fh6bh61h) X-Spam-TCS-SCL: 0:0 X-MS-Exchange-Organization-Antispam-Report: OrigIP: 83.142.161.14; Service: EHS Received: from mail107-va3 (localhost.localdomain [127.0.0.1]) by mail107-va3 (MessageSwitch) id 125896675315806_31899; Mon, 23 Nov 2009 08:59:13 +0000 (UTC) Received: from VA3EHSMHS029.bigfish.com (unknown [10.7.14.235]) by mail107-va3.bigfish.com (Postfix) with ESMTP id 502D5F5004C for ; Mon, 23 Nov 2009 08:59:10 +0000 (UTC) Received: from relay.intersvyaz.net (83.142.161.14) by VA3EHSMHS029.bigfish.com (10.7.99.39) with Microsoft SMTP Server id 14.0.482.32; Mon, 23 Nov 2009 08:59:09 +0000 Received: from localhost (unknown [10.100.10.115]) by relay.intersvyaz.net (Postfix) with ESMTP id E7C7080A995 for ; Mon, 23 Nov 2009 13:59:07 +0500 (YEKT) Received: from relay.intersvyaz.net ([10.100.10.225]) by localhost (relay.intersvyaz.net [10.100.10.115]) (amavisd-new, port 10024) with ESMTP id bRwVX1zKHwvx; Mon, 23 Nov 2009 13:59:03 +0500 (YEKT) Received: from localhost.localdomain (pool-94.24.189-122.is74.ru [94.24.189.122]) by relay.intersvyaz.net (Postfix) with ESMTP id DA2D280A972; Mon, 23 Nov 2009 13:59:02 +0500 (YEKT) From: Andrey Porodko To: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH] Davinci sound soc driver patch for Neuros OSD2 board support. Date: Mon, 23 Nov 2009 13:59:02 +0500 Message-ID: <1258966742-13301-1-git-send-email-panda@chelcom.ru> X-Mailer: git-send-email 1.5.6.5 MIME-Version: 1.0 X-Reverse-DNS: mail.is74.ru Cc: Andrey Porodko 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+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index 67414f6..ffdd30e 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c @@ -55,6 +55,9 @@ static int evm_hw_params(struct snd_pcm_substream *substream, else if (machine_is_davinci_evm()) sysclk = 12288000; + else if (machine_is_neuros_osd2()) + sysclk = 27000000; + else if (machine_is_davinci_da830_evm() || machine_is_davinci_da850_evm()) sysclk = 24576000; @@ -246,6 +249,9 @@ static int __init evm_init(void) if (machine_is_davinci_evm()) { evm_snd_dev_data = &evm_snd_devdata; index = 0; + } else if (machine_is_neuros_osd2()) { + evm_snd_dev_data = &evm_snd_devdata; + index = 0; } else if (machine_is_davinci_dm355_evm()) { evm_snd_dev_data = &evm_snd_devdata; index = 1;