Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1218385ybb; Fri, 20 Mar 2020 15:51:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvuP+Df8HmfeODqKAU+hci7CCzLMzsuW3TilSAbZ/sykbcBudp3uU6DwQXEo2yyw9QsWwts X-Received: by 2002:aca:be57:: with SMTP id o84mr8650733oif.138.1584744719411; Fri, 20 Mar 2020 15:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584744719; cv=none; d=google.com; s=arc-20160816; b=Isv7iGlkJPBrToTDNqd48PArvQ6tMu4t7xI6Wq9itXSWNhmys4ODRETjpS3ItKI4Ma GXs4e3oEF/j5qlC/ReExaJQw7OMTtU3obXi31UqzERKJKHfESlas63VI+Hkb1k31zwmw e9AS2i4RmbhSK+vzCCShxgomRTIcqOPnkfyNoiC4//cX8/Vx5o/k8J3x5eiAsJEqlaQq 5Xr7eDmY7R0qCOBRjXUYjGd/jUOr0ume5+1x0Lcq/QG0GFmxsOgua0fqsF2aTMYezHig oDD4UHDR7xdex8lSGGzsI7EcmgBdfxHIxQ8t1i59P6NOyEUBjQ9LFgCDewfCB3xY5jnf 7hrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YJJPMLz7WHfijv4QsdDA8oo6aFkLf4z2pFfe94unjoE=; b=C33aMY80YuTX/fRwqO7H4Wd7m87zE9zyg/+WOd9sEApoV1DKlHYg0duCYtcEM+24q3 mslN+QkS5PGWoRy3A7ArUlYcQJML1FZ40UuWCwxdlYWtHlZB2LInj+c3P9YcoAV2w8V1 eD15t6gxzqL3tr58cfTXIJpRAlIRMMuC/WtvWKRE6NlEFBMj6NQ1EwIjPvkmtWvEbGRI ZzVktl+7elLhO0lCIRjU5H4YTZEyuGmyJgRtf76LmI1FV2JaseTf2FU/hlHbccJ9e0fm ASZrFZ86ATalQPDwIr9dRIH0On9QN1zTmrwxFmmAOd49OAUNWEaM6/zVMd+DGUwrZ0Fe MDYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=LLM9r0vY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i124si3709868oib.172.2020.03.20.15.51.46; Fri, 20 Mar 2020 15:51:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=LLM9r0vY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727175AbgCTWvT (ORCPT + 99 others); Fri, 20 Mar 2020 18:51:19 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36312 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbgCTWvT (ORCPT ); Fri, 20 Mar 2020 18:51:19 -0400 Received: by mail-ot1-f67.google.com with SMTP id 39so7675073otu.3 for ; Fri, 20 Mar 2020 15:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YJJPMLz7WHfijv4QsdDA8oo6aFkLf4z2pFfe94unjoE=; b=LLM9r0vYyuH2sIU2RS7aUWEyYWOB+2wa4CA44ADRkk14C5XdkRJ7swbzRiTdH39oGB CKtlEYwhcyA2wgT2iF41wWrgZHwNX/dnVTiq6ypc8AQnDP/or7M/HVp++u+U23YsSHC5 koTOcuwPKxV7YkhTOmAR/czZBpCmMBKa4x4rZOtACZvhgw8kQ3/vhquFqJGXH71RETDk MQS1ZGkTHPOK/L8uFfuONZGrfcHJUBQH7meA/1Ow4LJc3WVD+X4spdjyKnw8NF49ncTL xFS5xQa39LhiHCFc5bf5RtkatmpayKHE/sjHa9frRGF5OOUG7KjWMvIAUyEsDewnvBjM hNzw== 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=YJJPMLz7WHfijv4QsdDA8oo6aFkLf4z2pFfe94unjoE=; b=gFvTMuLevQjvOxMfGgevU/DMWBiQS/ZBiqmTt10FBYOPSB+4Gbfm5VFp8XslFeAQSq SHUsZE0drlLZ9v9uQYXNhEE+xyLTEcsZjMkP+tja+ED3g6piCiJJV0jzKb9z5hCYKMDP eBOBadhXYsNtZfG0Wk0SysDRVdvB10QaIT3eCcukXeTifZeGlzKBd6sNZQaB4qsZJToq WeRqEO8bYDn+dg/gHtMX1ZBwqaSGctYaiyEARLMTTHuafdBpz5STAigKvoOQFIHkuNO3 o32FxCQKkFeWoXDgLT3M4jzzZQo2iLoWEEn2qJy0XQ4TysWZPwppq6RsPnGI+G1zsONT 5xgA== X-Gm-Message-State: ANhLgQ2jS7RFrPbTgaZq/MY71cVh21U8CmAtsAHy3hpJwCuokX8Q6hG/ DIK9c+ySDYky0UrjLf9obkFBoflLWtGzfxSlPppjJbjjgN0= X-Received: by 2002:a9d:20e2:: with SMTP id x89mr8299168ota.252.1584744678589; Fri, 20 Mar 2020 15:51:18 -0700 (PDT) MIME-Version: 1.0 References: <20191212071847.45561-1-alison.wang@nxp.com> <20191212122318.GB4310@sirena.org.uk> In-Reply-To: From: Tim Harvey Date: Fri, 20 Mar 2020 15:51:05 -0700 Message-ID: Subject: Re: [alsa-devel] [EXT] Re: [PATCH] ASoC: sgtl5000: Revert "ASoC: sgtl5000: Fix of unmute outputs on probe" To: Oleksandr Suvorov Cc: Marcel Ziswiler , "broonie@kernel.org" , "alison.wang@nxp.com" , "lgirdwood@gmail.com" , "festevam@gmail.com" , Igor Opanyuk , "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 20, 2020 at 10:06 AM Oleksandr Suvorov wrote: > > On Fri, Mar 20, 2020 at 5:51 PM Tim Harvey wrote: > > > > On Fri, Mar 20, 2020 at 12:26 AM Marcel Ziswiler > > wrote: > > > > > > Hi Tim > > > > > > On Thu, 2020-03-19 at 13:49 -0700, Tim Harvey wrote: > > > > On Thu, Dec 12, 2019 at 4:24 AM Mark Brown > > > > wrote: > > > > > On Thu, Dec 12, 2019 at 10:46:31AM +0000, Alison Wang wrote: > > > > > > > > > > > We tested this standard solution using gstreamer and standard > > > > > > ALSA > > > > > > tools like aplay, arecord and all these tools unmute needed > > > > > > blocks > > > > > > successfully. > > > > > > [Alison Wang] I am using aplay. Do you mean I need to add some > > > > > > parameters for aplay or others to unmute the outputs? > > > > > > > > > > Use amixer. > > > > > > > > Marc / Oleksandr, > > > > > > > > I can't seem to find the original patch in my mailbox for 631bc8f: > > > > ('ASoC: sgtl5000: Fix of unmute outputs on probe') > > > > > > I forwarded you that one again. OK? > > > > > > > however I find it > > > > breaks sgtl5000 audio output on the Gateworks boards which is still > > > > broken on 5.6-rc6. > > > > > > What exactly do you mean by "breaks"? Isn't it that you just need to > > > unmute stuff e.g. using amixer or using a proper updated asound.state > > > file with default states for your controls? > > > > the audio device is in /proc/asound/cards but when I send audio to it > > I 'hear' nothing out the normal line-out output. > > > > > > > > > Was there some follow-up patches that haven't made > > > > it into mainline yet regarding this? > > > > > > I don't think so. It all works perfectly, not? > > > > > > > The response above indicates maybe there was an additional ALSA > > > > control perhaps added as a resolution but I don't see any differences > > > > there. > > > > > > Not that I am aware of, no. > > > > > > > The output of 'amixer' shows nothing different than before this patch > > where audio out worked (same controls, same settings on them). I'm > > testing this with a buildroot rootfs with no asound.conf (or at least > > none that I know of... i'm honestly not clear where all they can be). > > Tim, did you try to unmute the output with amixer? > > Could you provide the output of your amixer with and without this patch? > > Before this patch, the driver unmuted HP, LO, and ADC unconditionally > on load (while it just had to set up ZCD bits). > Now HP, LO, ADC remain muted until one unmutes them using standard > ALSA tools/interfaces. > ALSA mute/unmute controls for these outputs have been presenting in > the kernel for a long time. Please, just use them. > Oleksandr, When I first bisected to this I must have done something wrong as I thought amixer settings showed the same before and after - I see that I'm wrong about that. I see the differences now with HP, LO, and ADC muted by default. I agree using amixer controls is fine. Sorry for the noise! Tim