From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99B7AC48BDF for ; Tue, 15 Jun 2021 15:48:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 835966148E for ; Tue, 15 Jun 2021 15:48:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231589AbhFOPuF (ORCPT ); Tue, 15 Jun 2021 11:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230267AbhFOPuE (ORCPT ); Tue, 15 Jun 2021 11:50:04 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E963CC061574 for ; Tue, 15 Jun 2021 08:47:59 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id t11-20020a1cc30b0000b02901cec841b6a0so1136444wmf.0 for ; Tue, 15 Jun 2021 08:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GBinx4Fgo45gvNb6Q+VwiPy/5uxor4+wH/XjaU7vEwU=; b=fKBLKEpGGji1pJ8Chsxfvqljab6qo00YqyYLcs9KAIRVzcPyZyRS/9kYae9BQhnPkS ZnpNaP5a2XEdbNdJeZViHbkyiIYIIILUexJwCWeSWF8fDuQSgpoe7MuUHFy0z4UazS32 sDdFgLVdGm9mG/b/9FD+ArxbRhqK74pHM2kr8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GBinx4Fgo45gvNb6Q+VwiPy/5uxor4+wH/XjaU7vEwU=; b=iSJnqEifWtteFNfVTat3RKG77C0W08dZytkvCzsolb7r59zri2/RF+aIQMbUqABT6I ahA701RE+vZO5CvjetBFNdYLjDv+GUp302KxlVA/0vgN/9CWL2uC059XdIZ+lShGxkE+ w2rRBu1Z3LLta+YfxeHit6s0kOIDs9IpyZ/P1gInm+Ql6ZuE4Lc90HLslPcnx+QJgD1B DWyr8mbfYp3Vtp1foIZ7cErQ7TyKyncu+HImIBf+DkD/UzIDRlCoT6cR+zJthFfu3Ar2 NeQrlOWX7s306bQJlCK9PkviSLxzbHBh4zKl5VI99IuvbcGwBH8JiUrrcJ2I8zEZIvB7 tlFw== X-Gm-Message-State: AOAM531P5MEXI//eLIIScVK0j2SCK9Biz2jfCC91NoQsLbegQtqdvMRy cHO6Q22Qqt13I5mtkvM6HEqMa+XbJHzL+s2gME7tPQ== X-Google-Smtp-Source: ABdhPJwUoEVW6kMYZC606PnYCEczrljMALiN96zNLd0kS0EL2UX5TDso3su7xUx2lhZdDpzedPnxBwH3c8Nmho87MO0= X-Received: by 2002:a7b:c5d2:: with SMTP id n18mr6083880wmk.97.1623772078396; Tue, 15 Jun 2021 08:47:58 -0700 (PDT) MIME-Version: 1.0 References: <20210526154704.114957-1-judyhsiao@chromium.org> In-Reply-To: From: Cheng-yi Chiang Date: Tue, 15 Jun 2021 23:47:30 +0800 Message-ID: Subject: Re: [PATCH] ASoC: max98357a: set channels_max to 4 To: Tzung-Bi Shih Cc: Judy Hsiao , Mark Brown , Taniya Das , Rohit kumar , Banajit Goswami , Patrick Lai , Andy Gross , Bjorn Andersson , Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , Srini Kandagatla , Stephan Gerhold , Douglas Anderson , Dylan Reid , Tzung-Bi Shih , Stephen Boyd , "moderated list:ARM/Mediatek SoC support" , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , ALSA development Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Tzung-Bi, On a platform, the four max98357a amps will be controlled by only one codec device, as GPIO for SD_MODE is shared by all amps and is the only thing to be controlled. In this sense, I think we can treat max98357a DAI as if it supports four channels. I understand that this solution is not scalable, because one can control as many amps as they want. Theoretically, the number of supported channels by this codec device is unlimited. I found that rt1015.c has similar usage. Do you have a better suggestion to support this kind of use case ? Thanks! On Tue, Jun 1, 2021 at 2:20 PM Tzung-Bi Shih wrote: > > On Wed, May 26, 2021 at 11:47 PM Judy Hsiao wrote: > > Sets channels_max to 4 to support QUAD channel. > > Could you point out probably the up-to-date MAX98357A datasheet for > 4-channel support? > > On a related note, from the public datasheet I could find[1], "Table > 5" only shows 2 channel's configuration. > > [1]: https://pdf1.alldatasheet.com/datasheet-pdf/view/623796/MAXIM/MAX98357A.html