Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp916380ybb; Fri, 20 Mar 2020 10:10:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvSPy/G7W7h+jxKPu4xRnOVOaJm9istwIow12WTdZW6hRec5EypZ22oCKvaMV6RxUYS1tjX X-Received: by 2002:aca:2801:: with SMTP id 1mr7482671oix.168.1584724212085; Fri, 20 Mar 2020 10:10:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584724212; cv=pass; d=google.com; s=arc-20160816; b=tV4Vk1NQN1ZqNtHVICv/T3EFTJgO7RuHAH2w4qnJM7R7mp1N3BhjYu2oBQNnbwjxjT +Y7GWF60ocWxioyrhNHvSdiHTxxfYtyAYrJADHo1TvU8cVlhJpFLFhzVCLcJ1s9vpwn8 SXn1fXhQ1CW/1FpJEAmjrmFQtfTCu6UfaiDk+48XhIR6RWWTH/sjeFQsQHIGzaz5zB/U /eSMlG4M0a2JMryxUKXgi8TAaN7HrK4HBuJeLs+NYp03fQWjC6T7y4BBjchV1Pb6yVxB DVyMe0cNYf0FubspTSMW2BJUx1hyWXRZmEkMh1cTDVQOHwCU9t1Y5WOQBDMdakGPYt1r c1kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:cc:to:subject:message-id :date:from:in-reply-to:references:dkim-signature; bh=x+W39hN8Deiz1JC4Xe8tYUNA8xkl+TkZ4Y3YVLQs0q4=; b=URahxNQ7XZuniQYyK4nBSXxLnvt+QpMz2/2ievv6oEt0SSSK7t1cvk+V2Cjko9r/4Q X2tsQqSTuo5qA+Xt8J5oXH+z7MZLi/7TumHrpfGjpXVDi8+UZuFOgapDJf8OwhtTXllm 8YyL8zJKjeLIWtH0OYeARj3g2IZY9Ok2gD2Knd4hj6X2H+ZfgFyp3/VlOFEsoSxZdl2f 9wzqLW4BrEp7GuQtgtryqa2QPVPAZDaNgNvHB8nxI/+MPg1xf+o2olBw29fBNfF0u26n 1vQy8F1yhDaH6jo6viKMxjYaXgeXwDzckVQjF4aOlpOm8R0qiDf8eMdAqMI0pZmyVchl OkCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=i9qirCZD; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d185si3174782oif.234.2020.03.20.10.09.51; Fri, 20 Mar 2020 10:10:12 -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=@toradex.com header.s=selector2 header.b=i9qirCZD; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727502AbgCTRGB (ORCPT + 99 others); Fri, 20 Mar 2020 13:06:01 -0400 Received: from mail-db8eur05on2099.outbound.protection.outlook.com ([40.107.20.99]:35808 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727471AbgCTRGA (ORCPT ); Fri, 20 Mar 2020 13:06:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l2BBN/Z1fAaQb4J5fuBeN69Qp0fvJ5AZQDiGAfFXnaNzCqO87z8xSOmO9gddHBzwvAjsU8mFRgmAH3jM4cmi/2FDsjzrKHDIMP8pn6hI8w+mh7TYrqBvXy6+FSoGUVsd9JOJUfhiv0miVWpaBl/7NMXEy+Krp4Sqk0gI/LsN9YdwNqLlcZDW6CC+urIc9QX27Dqldef824HIR6CPD1ZfGeyo2KJTy5W8TnVTZD/uZuyKtlH9J+oEwTk8FMWsRgKFjFalweg7lAozBJ0r1VDjKGbtqJqOA5KI+Rc7USb0iG2lHRb7CPWFUHVBeyDM5UlG0mhqMCHiJl5PiBkSGze9fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x+W39hN8Deiz1JC4Xe8tYUNA8xkl+TkZ4Y3YVLQs0q4=; b=flR2LivA8ZcMQ+ChGUhHLgpFftMLG6zG3kmJLv1dz1WaqgYxUgmdhR5fl47KiBOJQUT2ciT2r3OpenZf6abqciI28+fylP4pojk1SY8BmIiCgXDsWjHgg39M028x4kjwtaXsld+He12+rU1p5qdCe9L2udu66kjYE+feGokI3/zCyYIIP1CroxCAZU/13skYq0/zEPQlYSx05ZVros1Uwb5SiZZT+3iwubL2Q7EES8EF9zYHWgbuIhF4LYJ1jhQo+SeO7uB5STmkLpCM+rGSiDX1Kf0etoGjYoTOODmBScADmIHSTWyIYPSufsbNRwXlmxXtAsHpYlm/YVceVSzOeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x+W39hN8Deiz1JC4Xe8tYUNA8xkl+TkZ4Y3YVLQs0q4=; b=i9qirCZDeLGTLCs4o7gESej/c7hJluJXuFEFqBhR6WFl6DuX4Csrqx2xLowjVolfNKH/K/A8F2GzvUqWL5en/r+Zbqkd2l/AMD1P7paM6oqU4L4SkqSoEAUDya6dp6uGKWo/DMqFp8RlrcVevaAuHjCpbdTZfB9H7Qnr4fX3Arw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; Received: from VI1PR05MB3279.eurprd05.prod.outlook.com (10.170.238.24) by VI1PR05MB3472.eurprd05.prod.outlook.com (10.170.237.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.16; Fri, 20 Mar 2020 17:05:58 +0000 Received: from VI1PR05MB3279.eurprd05.prod.outlook.com ([fe80::7cdd:4feb:a8b6:a6d2]) by VI1PR05MB3279.eurprd05.prod.outlook.com ([fe80::7cdd:4feb:a8b6:a6d2%7]) with mapi id 15.20.2835.017; Fri, 20 Mar 2020 17:05:58 +0000 X-Gm-Message-State: ANhLgQ1i68E1I2RhXov+kvq7utk7nqvHu2foPSZSKIGjE9iw2Q9z+lVJ gPAD1NTI1jusRAQNbl9RTUhQbYLihTq7f5deXcw= X-Received: by 2002:ac8:1633:: with SMTP id p48mr9494130qtj.305.1584723952240; Fri, 20 Mar 2020 10:05:52 -0700 (PDT) References: <20191212071847.45561-1-alison.wang@nxp.com> <20191212122318.GB4310@sirena.org.uk> In-Reply-To: From: Oleksandr Suvorov Date: Fri, 20 Mar 2020 19:05:40 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [alsa-devel] [EXT] Re: [PATCH] ASoC: sgtl5000: Revert "ASoC: sgtl5000: Fix of unmute outputs on probe" To: Tim Harvey 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" X-ClientProxiedBy: BL0PR1501CA0027.namprd15.prod.outlook.com (2603:10b6:207:17::40) To VI1PR05MB3279.eurprd05.prod.outlook.com (2603:10a6:802:1c::24) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mail-qt1-f170.google.com (209.85.160.170) by BL0PR1501CA0027.namprd15.prod.outlook.com (2603:10b6:207:17::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20 via Frontend Transport; Fri, 20 Mar 2020 17:05:56 +0000 Received: by mail-qt1-f170.google.com with SMTP id z8so5485642qto.12 for ; Fri, 20 Mar 2020 10:05:56 -0700 (PDT) X-Gm-Message-State: ANhLgQ1i68E1I2RhXov+kvq7utk7nqvHu2foPSZSKIGjE9iw2Q9z+lVJ gPAD1NTI1jusRAQNbl9RTUhQbYLihTq7f5deXcw= X-Received: by 2002:ac8:1633:: with SMTP id p48mr9494130qtj.305.1584723952240; Fri, 20 Mar 2020 10:05:52 -0700 (PDT) X-Gmail-Original-Message-ID: X-Originating-IP: [209.85.160.170] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 278d9382-64a1-4222-a2cc-08d7ccf0f48d X-MS-TrafficTypeDiagnostic: VI1PR05MB3472: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-Forefront-PRVS: 03484C0ABF X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4636009)(396003)(366004)(39850400004)(136003)(346002)(376002)(199004)(44832011)(52116002)(86362001)(6666004)(81156014)(8676002)(81166006)(478600001)(6862004)(316002)(8936002)(5660300002)(42186006)(55446002)(66476007)(9686003)(26005)(2906002)(4326008)(66556008)(54906003)(53546011)(107886003)(66946007)(55236004)(186003);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR05MB3472;H:VI1PR05MB3279.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; Received-SPF: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s1lEOtfAg0xyGTpKIfHj0m61Q/6dtj1b2qkN1O4IuC/mHeuSAiVQoeAUllxQXRHaRWgyaIJZ4DU22CC9v4FOrScXPE6j/AekmaOYt+/Gg6tTVU+FhfmsE/CoRZ5lLVqJl2nKkB3aDIpBzsx4+xaoMoZKFkpdH0ZwnRdk5HYw4UCaw7mZw8NJfxGU4YS4/Usav+jjqjCtUpVSa/avA9Vu4GNSWyRmiQflKnVM2r0aAuI8sIUso+O57VuxZSpMbtDJInanGwz9Q/LVuFLjdtB+lEmzK3+EZxQjhfoJI2Gb7XknlvcLaq49ZDEaPBiGwWZVoyOZZJlJW1WGOvh/W8v9ySg7STljgBjIjVDWdYHkE56WA2Qr9JWU7+etfzkajkpTUmZeLt+vw9+tJ1LAeFy9FVFg5UrukeXQ8Wxv/iF7Zq/Ai9J3kSyxKspAjqK3L14w X-MS-Exchange-AntiSpam-MessageData: URsz3IY+TSHym8l/j30kncPakL9pAJF/mz9mGdLbMpSb4l557ePsxEqv3NSWSJdy8oor6yBLBtNYf30vT4tgyjFWv+SOBA1VIUGqdbodO9ARWuMLiw0SSC+sGDzRUnp4eM/jy+fXTBj0MuXcrICdOg== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 278d9382-64a1-4222-a2cc-08d7ccf0f48d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2020 17:05:56.5983 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ahB78RQ356NzzQ96iEtquk68Jw3mjlf6P8ZeyY+Q8L12F0RzBrFllY3lfmo6aDR0IQOw+9vzkOOy5FjVdpBIWSlSI2KNz2JWqd33nEGABWY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB3472 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 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. > > Tim -- Best regards Oleksandr Suvorov Toradex AG Ebenaustrasse 10 | 6048 Horw | Switzerland | T: +41 41 500 48 00