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=-3.8 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 15859C2BA83 for ; Wed, 12 Feb 2020 05:56:37 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 91A162073C for ; Wed, 12 Feb 2020 05:56:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="C4UEPZ2n"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="tEOI3lDb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 91A162073C Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 0060915F9; Wed, 12 Feb 2020 06:55:44 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0060915F9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581486995; bh=Yw70hAjHJYCG0rYxKxlNsnrDOAHmH0gC/52HEUSSvws=; h=Date:From:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=C4UEPZ2nFpHxwpFhnpwP7HSlWeUyua2DWf3VBnb483cMOvRXGS+hNWAenczi+onIx +JSQRRTPovA77BlTl6sPlB/PD4/0I5lmmYY09akWXB28HTr0dzpRuaUmBbidiP5MGF WFaey39pmVHtBjVLXFga2Zmu49qnZBF6AlZgBLg8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 4028CF80157; Wed, 12 Feb 2020 06:55:44 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 96E7EF8014F; Wed, 12 Feb 2020 06:55:40 +0100 (CET) Received: from mail-qk1-x74a.google.com (mail-qk1-x74a.google.com [IPv6:2607:f8b0:4864:20::74a]) (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 4E047F800F0 for ; Wed, 12 Feb 2020 06:55:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4E047F800F0 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tEOI3lDb" Received: by mail-qk1-x74a.google.com with SMTP id z1so667729qkl.15 for ; Tue, 11 Feb 2020 21:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=i3GJFghNJWgAJT5Q8U3z/189MiDHBS2gQdYNGGe6NtY=; b=tEOI3lDbPfJlI/TgyojqHCpjuldER2VFfw4ibEL4aMEbniWS3fHDxtfu9C3NPiVWS2 8+naHFOzs9U/efdrYNvsSVWFXgB5fG4WARQdOtFIKV1WFaGYKhYfZNChy6K6MB9GYiyK 62z5AvB7mPXwSsKd0D/b8SyPYnuOshTYoNYAUvu/7x/eGTm9uNndTZPNxtCidyZbQQB/ H+4P8ElMqk0ZlffakUZ0S5qqqMRG1h/7p/ax/puzYAB4aLnGppASfn75f1ey38ZPCFa4 XIYMf6j+QbQEO5eXg+SMi0XoS3JBekpxTdlGVyaYuhrAGmspRe4J/yHdjakx4oraCvBU 49NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=i3GJFghNJWgAJT5Q8U3z/189MiDHBS2gQdYNGGe6NtY=; b=Pq/Tk8i+1o8t+G9mw+KCCjkjqNd1R2zicbQVedIwLWIMqez+9lpmIHj6FcQVOMynvC xeKUIrXHe1FqzAymgFUzfzEWLX05e8/sgoPfAawNXUHYgE0gXqTQpUXt7d8VahNtmWZF JlyUVNLY/2zxcI2vrb9QmZqm7lVTT30Kz/y9AOQjgQADTsZ2j2k86Hl+9G/Mm0xduUT7 kkAMpSJcCmcYGxf0Ok/maJX6SqL4nV9KUtX+0hqdO3XCZk0Sd2pGgzWYKLw8su920oYY CY/umHO4mxsD05RnLUXkLhEawrEIMQ1yFUEzt4e2NwXvhP801XoL0y+Wd/f5dQ+9Lfj3 yZ2Q== X-Gm-Message-State: APjAAAXSEjwJT0LcXHkJpbT+GygleorTSIeSBsalXYfInFKlLx5UFzBI Pt7ifxnXiaauYKHpfMI5a/dbn3FjlAU/ X-Google-Smtp-Source: APXvYqwBNiKLy842XAPRZCFZ//s6cI4+v7kI7yrqn3P8zf6+pwNqgRWAH3Gp9L1qNbgfmYBphS6nvTvaJBeH X-Received: by 2002:ac8:38e6:: with SMTP id g35mr18331256qtc.120.1581486933272; Tue, 11 Feb 2020 21:55:33 -0800 (PST) Date: Wed, 12 Feb 2020 13:55:15 +0800 Message-Id: <20200212055517.122728-1-tzungbi@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.25.0.225.g125e21ebc7-goog From: Tzung-Bi Shih To: broonie@kernel.org Cc: tzungbi@google.com, alsa-devel@alsa-project.org, dgreid@google.com, cychiang@google.com, jiaxin.yu@mediatek.com Subject: [alsa-devel] [PATCH 0/2] ASoC: mediatek: mt8183-da7219: add separate speaker switch 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Per previous discussion[1], the patch moves control of SD_MODE from PCM trigger to DAPM (i.e. set SD_MODE earilier if playback). Possible drawback: may generate pop noise when BCLK=on but LRCLK=off. As the datasheet[2] mentioned: > Do not remove LRCLK while BCLK is present. > Removing LRCLK while BCLK is present can cause unexpected output behavior > including a large DC output voltage. That is also the original purpose of sdmode-delay: to make sure SD_MODE is the last one to be set. [1]: https://patchwork.kernel.org/patch/11363953/ [2]: https://datasheets.maximintegrated.com/en/ds/MAX98357A-MAX98357B.pdf Tzung-Bi Shih (2): ASoC: max98357a: move control of SD_MODE to DAPM ASoC: mediatek: mt8183-da7219: add speaker switch sound/soc/codecs/max98357a.c | 36 +++++++++---------- .../mediatek/mt8183/mt8183-da7219-max98357.c | 19 ++++++++++ 2 files changed, 36 insertions(+), 19 deletions(-) -- 2.25.0.225.g125e21ebc7-goog _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel