From patchwork Fri Feb 22 15:16:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 10826433 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6DA9415AC for ; Fri, 22 Feb 2019 15:17:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A0BD32853 for ; Fri, 22 Feb 2019 15:17:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AC693285F; Fri, 22 Feb 2019 15:17:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6D5D232853 for ; Fri, 22 Feb 2019 15:17:57 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D701F1606; Fri, 22 Feb 2019 16:17:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D701F1606 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1550848675; bh=QXOTQiSpMyoCVdxeVz8OeB4BUwpyHVKoYNXi789LR64=; h=From:Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Af5dvvmYZoukcE8L8GS4eFMKVTufXY7PwjvWBV+pqga09BVwXWLs/Kvs/0H2prxZL ada0vccy3YkodnO0MsVmcFJgPLfWq28Q2yCY3HEGGp6PcPBzJCx7hiwmAbvBTqskO+ IAn3p//mcmOEojUx/VaSgtEuUnIDtf2ZgUZcQ47U= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 39412F807BB; Fri, 22 Feb 2019 16:17:04 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id C4484F807BB; Fri, 22 Feb 2019 16:17:01 +0100 (CET) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 95F94F807B6 for ; Fri, 22 Feb 2019 16:16:58 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 95F94F807B6 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qAOfXnjR" Received: by mail-ed1-x535.google.com with SMTP id d9so2004635edh.12 for ; Fri, 22 Feb 2019 07:16:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=h59uwq/Du2aFt+bWrUbnmKbCfMUtJ1W/ERDZAY5rY9s=; b=qAOfXnjRN8Bkkfqlj4yEzfrLOcaa2iy/trC2KI0wjxaSphQ8riFnhg1r1KPlU+MVIA CE2ZB0rOu0TF+2U/OqiTMV1hYFnUTC/NA/YhZW4zd9axf2tgLm2eiH/Z11ibFgflGHiG Lx+J/fG0M6S3oO7DbDrS4LzBl24JjUJOpivN6KV/VzG46RDlJzpntCRmCqQ/9iEWfG/q bSBTTKTX3cF+EKFXbq6NaO1RqP7N8UuSoq17bVAaAKneV4+N4FlT1drD2qKvEzY3AfuA 9eZj5CI9ZBa55f87BE3CPLFvh0os9GT35+uBhoGVl81eZABaV0SLUzHVAPbGeoIA8f9i qiMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=h59uwq/Du2aFt+bWrUbnmKbCfMUtJ1W/ERDZAY5rY9s=; b=po2bIbVbwpoYuLhJM5K7fwof+cGUEj/iaIHQ0cGci/2KIp2HOgUmYBqNNLKvVvo1Co eyE1FdFbRJiQVnp+12X5lDCz9IU1Lmq1BDBF8jEvxZU2elXyJwA173fRmfQ+P4YhdsAc ZQPAv8Gn7q9Lwbv6HoPyc/QruW946ITR3XXnnqBwvyxNNul7AoE/LV5wswvNMBHydM4c wvMdATxJhCNhE50nEw/OVo8nolzU3f3pT0dBN6eOhSXGyYRtJ2M3gMyyyXR1Drh7DwF0 no39QUhtUouC2TDODATNosmWZcVF4KKJoTGkhOolJEKG+DlDBkpZSjKujxKQIxXDphAk W9eQ== X-Gm-Message-State: AHQUAua1g0HgsrPvKCI8QE7FVcoR2HWy49QYpX34jOffVRCk0r56Dhzi gSX0hLIgEpgfC87OsgYGHwUTycQ5g00OtARV/mg1ol7T X-Google-Smtp-Source: AHgI3IbZSr0QgIyrZHd5dCVZzutsRjdhbOd4EqyH5wtzGY8Ac3dNt1RfNIEM73nl2En0Z7DCfuE+ONnxrplbT5UGRcw= X-Received: by 2002:a17:906:ca09:: with SMTP id jt9mr3265885ejb.74.1550848617602; Fri, 22 Feb 2019 07:16:57 -0800 (PST) MIME-Version: 1.0 From: Daniel Baluta Date: Fri, 22 Feb 2019 17:16:46 +0200 Message-ID: To: Kuninori Morimoto Cc: Linux-ALSA , Mark Brown , Daniel Baluta , "S.j. Wang" , dl-linux-imx Subject: [alsa-devel] simple-audio-card,mclk-fs X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hello Morimoto-san, Do you have any plans on adding support for multiple mclk-fs values in simple-card? Usually one constant mclk-fs value is not enough because usually codecs have different value depending on rate. For example, for wm8524 [1] one can use mclk-fs = 256 for rates between 8kHz and 96kHz but it needs to change mclk-fs = 128 for 176.4hHz and 192kHz. I am thinking of something like this: Let me know if this would be a good direction and I will send a patch. thanks, Daniel. [1] https://www.cirrus.com/products/wm8524/ --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts @@ -44,6 +44,8 @@ compatible = "simple-audio-card"; simple-audio-card,name = "wm8524-audio"; simple-audio-card,format = "i2s"; + simple-audio-card,lrclk-fs = <8000>, <32000>, <44100> <48000>, <96000>, <176400>, <192000>; + simple-audio-card,mclk-fs = <256>, <256>, <256>, <256>, <256>, <128>, <128>;