Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2703675pxb; Thu, 3 Feb 2022 12:19:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWUXtYV2T9PAzgOmoHo1+nayNwJTZCmCQ1vc9gnwP6EVB4YJYG9qbMh68YTcAfbXuozm1u X-Received: by 2002:a17:90b:4c0e:: with SMTP id na14mr15580745pjb.164.1643919567087; Thu, 03 Feb 2022 12:19:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643919567; cv=none; d=google.com; s=arc-20160816; b=O0yPykdKyRq+A3q/EBiWUaXWHQ0Fzt1uGRSjvZDJ0DaZ/wE1XzdPBkvKsBC481FdSS lXNhkoB3S8+kz21gtOD58p9u2GOwlDHDSOcFbzu7vTxFw05Pg5ctY6+w2s2g1txav9zL sFT4XGHtWtLgj/QIlbEg0KEb89tB/p09N33uDektX3GYg2KojWwRAGRZau9gr1r+uehS o0He1WoxhGsistE3yW/B/pZDr0Mtdnx1fPgNQLcd3/TOyi3mymilsmaBsza9z/8omHr7 xFu/jKsf/QqNyXm8pQy6rkCz7QJStw9WF/ya66jrOaXwRQGr/U6qye4FbkhiCaHRNGrP 509w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=D+mAcFAcbyBszsXN3/NgIUpqHIBliIiifG7mp3GXGbE=; b=Ty+stkMw/N5+IpYdWLN4mPJUmKMQwTigi3ZzMFsf87m6Bc3PJB8ZBFCA4P/V8Ig02T WWHEgyrvQV2Armrzz9SWVhE2PoBOEwbbW8hWc0xhrThwacNtqCXZccw3aGuJ5wgHEeMT z47V/0rEvt0aUgxt6OlIIgyEZPiSGu/HeElbJPbr0GjJLh3FPglWkvzrigNpBkxXH3cW jazL+p8fxLCqRA15zvG7Fr6CAJmeaZidP4DSjT7Elh4w1TcVbP6Ov59kOidhk9g9xWA3 7+krbnzkd4kI2frjxV1hvB9JqG6mJGWMq+P6pr/+jHruDBFTwoUzJ+nGSHM2EEIAE8H+ BJhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=b9BgcXMS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13si22905937pfm.244.2022.02.03.12.19.14; Thu, 03 Feb 2022 12:19:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=b9BgcXMS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235185AbiBAVn7 (ORCPT + 99 others); Tue, 1 Feb 2022 16:43:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235272AbiBAVnu (ORCPT ); Tue, 1 Feb 2022 16:43:50 -0500 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79AE7C06173D for ; Tue, 1 Feb 2022 13:43:50 -0800 (PST) Received: by mail-qv1-xf2f.google.com with SMTP id b12so17254253qvz.5 for ; Tue, 01 Feb 2022 13:43:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=D+mAcFAcbyBszsXN3/NgIUpqHIBliIiifG7mp3GXGbE=; b=b9BgcXMSncv17JHEDhnOzkHw0nRL2RywNKVr2K0qJei+Zb8LTy9UiNrKnprc0mwvx/ BPDZxGjhCDDV19HEwJwT/poVjkdjeoqOOx3ceF4gHbQkjZ7qHI0IqJU/WUvedmxMbQfO CIbCGB8JqYUKZjwSCb+TcNpW3TAt6ufT0h5oQvEjWAsHl7njwQftTZ6ue44y8/cOVu+l RgNxYi+5Jf74hRxvf+MGnOiGOOMafaQyBr+5lUTHXWcYtVfXt7QEuDCzxIOahYQKDbTh riCPBtDoNpKwA8asxVHEbRHdWSLH9kBpQXGjLw8MKavkD0O66u8RP2WpyVx+U4wC1HGP ogSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D+mAcFAcbyBszsXN3/NgIUpqHIBliIiifG7mp3GXGbE=; b=wfnAG9vp7l02OD73/E4ZfrQYsPESU1hH0xA7nDdTVqlu7qH5uOZZaLHJ12DjXY8FtX tmllrnj/bvaBImomKpHjJn9nEhVEM04rVmLQOxYHINJQcw09ysm42z5Y5gwrFzbMq0Qe KcUhvGmCgMp/tyVB4ikhbx+eh2usj4g/0GJ3cZ49S1p0dLbd3Z+X75Od731n/9OcG95T 4p69gRoQVvtLDa9dAVTLSI0FlOwGu9sxCxFAkO4mFmORa0yOor/P9qzu3ht3XMi0o/Xs ov1Dhj8PFvu+EJtnsNnnUQ5rDQhpV1diBcWeahyu+UKWrIWohYM+CQh1xNYHxSUpHYm+ TP8g== X-Gm-Message-State: AOAM5300gUnXHn3jnpdm7XzMpqpqCz7ojwx+kVxQfCYzCdbTKapFgNtt aAkVPli76nyefismc3t5zMFYKacVaWu5o+myaBHUFQ== X-Received: by 2002:a05:6214:da2:: with SMTP id h2mr24368654qvh.49.1643751829350; Tue, 01 Feb 2022 13:43:49 -0800 (PST) MIME-Version: 1.0 References: <20220131203225.1418648-1-vsujithkumar.reddy@amd.com> In-Reply-To: From: Curtis Malainey Date: Tue, 1 Feb 2022 13:43:38 -0800 Message-ID: Subject: Re: [PATCH] ASoC: amd: acp: Set gpio_spkr_en to None for max speaker amplifer in machine driver To: Mark Brown Cc: V sujith kumar Reddy , ALSA development , Vijendar.Mukunda@amd.com, "Hiregoudar, Basavaraj" , "Dommati, Sunil-kumar" , "Pandey, Ajit Kumar" , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 1, 2022 at 10:56 AM Mark Brown wrote: > > On Tue, Feb 01, 2022 at 02:02:15AM +0530, V sujith kumar Reddy wrote: > > > Maxim codec driver already enabling/disabling spk_en_gpio in form of sd_mode gpio > > hence remove such gpio access control from machine driver to avoid conflict > > > > - .gpio_spkr_en = EN_SPKR_GPIO_NK, > > + .gpio_spkr_en = EN_SPKR_GPIO_NONE, > > }; > > > > static struct acp_card_drvdata sof_rt5682s_rt1019_data = { > > @@ -56,7 +56,7 @@ static struct acp_card_drvdata sof_rt5682s_max_data = { > > .hs_codec_id = RT5682S, > > .amp_codec_id = MAX98360A, > > .dmic_codec_id = DMIC, > > - .gpio_spkr_en = EN_SPKR_GPIO_NK, > > + .gpio_spkr_en = EN_SPKR_GPIO_NONE, > > }; > > This looks like a good fix for the immediate issue which fixes the > MAX9360A systems without breaking the RT1019 ones, however as I said in > the thread about Curtis' revert it's not clear what the ideal thing is > here. There's no documentation about the RT1019 that I can find so it's > not clear to me what exactly the GPIO is controlling, if it's part of > the RT1019 or something else. That influences where the most tasteful > place to control this GPIO is. Curtis noted that the RT1019 driver > includes gpiolib headers but that could just as easily be cut'n'paste as > intentional. What's the story here? > > I do also note that the current code just turns the GPIO on and leaves > it on which presumably isn't great from a power management point of > view. Yes that is correct, this is the quick fix that will alleviate the gpio contention issue. But I think there is a better solution here. According to the sheet I have, the pin for the alc1019 is the same as the max98357a and its a shutdown pin for the amp.