Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2017735ybi; Thu, 18 Jul 2019 02:05:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMLlJDSTEJJW5aHEDDCmbYS/WlMpNtdvzHmmn9/LRrsRrlWIcHhDHS+GTm8YzpVqrAoNCx X-Received: by 2002:a63:e14d:: with SMTP id h13mr46590623pgk.431.1563440728082; Thu, 18 Jul 2019 02:05:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563440728; cv=pass; d=google.com; s=arc-20160816; b=MZAFhKfj7kjg7yaOU3ZBq2bWV660ME+n/wnwG4sxhopVvHn19ckJykXcz++v5lzDAd T90CM/aQEkzKdq4koystQdTr7sIGdWCA5HPA4nT9p1otfYq/akjGyoqdmYl6dSCofxeT PeayEDgKLOBzDQOSkfEQg/s3bmgA/x1RO6XhG5TczbNl6zb8gkNPlpYCDinBQpg1h9j/ BVV9DmEbTvWWPvdBl+TrVbVhnZTweIFyPpfK4bYxn0DL/I7YVT2gAFMA2P3xUhwUKuIh VEvevsYMmxt723eA+5MEpZOHkmGzyxqMOf0syr6/4ma1Sd9+6AVwrWvYvs9h0u59H2gI Y4UA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=sGpVGZImbmc95FSXPYKBCpMGSiJdr0hGDbnoCUCGxtM=; b=hLA3buoJVLe8QL/gcQvmyMcBP59KBmtvJlJc6gDWRvYQ/Be9KbQVz1PRA/wy2aGP4p /QI84cUhK4VUVk1ZKeF7Ho9EqVpK/aC02wpjYNp/Y8QQyEAN0CuQj4emZ9AaJkVeGYf8 lKnpfEUT3Fi5rHPWja6IRA++i2vuEdKmkwg6AKIR438RfpfpsCZK3iVD/3qfqjTBJ1uq 4ZEuCrvUpnxjDDppmVSwKu88i+g7X+wRxex1pOn49keMBo6HjxJWyI+rpBz4DHrDrOMy mcBOvUOyZOm4YlgiTUpiztPkWUq/GoZl3JeN7TW7MY5OTU/w9LoXYyvI14dkAwOdUXy7 t+Ug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector1 header.b=GKDK60aT; 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 k1si2154208pgh.69.2019.07.18.02.05.11; Thu, 18 Jul 2019 02:05:28 -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=selector1 header.b=GKDK60aT; 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 S2389490AbfGRJCt (ORCPT + 99 others); Thu, 18 Jul 2019 05:02:49 -0400 Received: from mail-eopbgr150109.outbound.protection.outlook.com ([40.107.15.109]:61477 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726383AbfGRJCt (ORCPT ); Thu, 18 Jul 2019 05:02:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QF8aqQvjepihxdOqJpfr9UEAD+8YRZnYVqTWhjFl8EbMVm4hI1Z+SRb5v48k74NHbQAUbI/32ujfNz/ideZd+K0snR8b5F6wc3lvXi9qXdm3J+4CCVktCcuFgHtOAFFBPDxcubJvtm9PwSNe11Mq3jpJddToztGGDhIQITIXsDlYD+zIAG+DZugBddLd1+SFxK6iGaElO8BaD+WOszkso6hmEN1Bx11P/h1ZjOKaAtk6KnhsAwNucUFMNKZefmAdV7no2/tuGR87tAlYEFQ9x1xgPsMyxnVNHFdxaHl3bOwvPBjjUqbKLwBLNGTXuhheMANbYIUH40LjjOv3BNX9rg== 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=sGpVGZImbmc95FSXPYKBCpMGSiJdr0hGDbnoCUCGxtM=; b=oNTJMt0eXKd69iJXUmuMMHcgKELUblDk/oemnd3Uedxc5MUQyHBeVVkie0Fmf4TYKn6egLPfLLOlapthvGT7r7XUIONDqweSSfhLjrPWhN7DBzP29bxZMipJgGrGZ2gKVRzn8AtTq5SJeM93qAPNKi6clhFkfAmPPjVotVi9XU+F3HEJGG2f65b0lvDa0dGmngd/+cJi4aXjx+mGOGWYVEr8fzlJougMNOBCXCAtlk0LlXujNaC+CujMauJOhX0PkpX22RdA7z38WiqfvQlJnbtLEat7BJAG4TTmEejNLAO4SMgJ+Pyw21gBzTyDfTZTmo3ZmyHwSH6awF9VY2x9ZQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sGpVGZImbmc95FSXPYKBCpMGSiJdr0hGDbnoCUCGxtM=; b=GKDK60aTNIUh/FDYW+qRuy4oDLZNhVkZ8BS3oMWO0ANEwBg21AyXrM2dZtvrZhPyxcTYq4vpITTo1A6CuQTooD0XxR7Yqnj9vzOrbYrMpAreP7nfRbCuJq0ugmDHsmEU2YUEYynkVx169QREPyDuKE+jgF0rRx50h4OmJTRIdTY= Received: from AM6PR05MB6535.eurprd05.prod.outlook.com (20.179.18.16) by AM6PR05MB5013.eurprd05.prod.outlook.com (20.177.35.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.12; Thu, 18 Jul 2019 09:02:44 +0000 Received: from AM6PR05MB6535.eurprd05.prod.outlook.com ([fe80::c860:b386:22a:8ec9]) by AM6PR05MB6535.eurprd05.prod.outlook.com ([fe80::c860:b386:22a:8ec9%6]) with mapi id 15.20.2094.011; Thu, 18 Jul 2019 09:02:43 +0000 From: Oleksandr Suvorov To: Fabio Estevam CC: "linux-kernel@vger.kernel.org" , Igor Opaniuk , Marcel Ziswiler , "alsa-devel@alsa-project.org" , Oleksandr Suvorov , Jaroslav Kysela , Sasha Levin , Mark Brown , "stable@vger.kernel.org" , Takashi Iwai , Liam Girdwood Subject: [PATCH v5 0/6] VAG power control improvement for sgtl5000 codec Thread-Topic: [PATCH v5 0/6] VAG power control improvement for sgtl5000 codec Thread-Index: AQHVPUeP/ONI1wldyUSM7jeicVl0+w== Date: Thu, 18 Jul 2019 09:02:43 +0000 Message-ID: <20190718090240.18432-1-oleksandr.suvorov@toradex.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM4PR08CA0060.eurprd08.prod.outlook.com (2603:10a6:205:2::31) To AM6PR05MB6535.eurprd05.prod.outlook.com (2603:10a6:20b:71::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [194.105.145.90] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fe4f0ca2-27a7-434c-5ca0-08d70b5eb1fd x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM6PR05MB5013; x-ms-traffictypediagnostic: AM6PR05MB5013: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:241; x-forefront-prvs: 01026E1310 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(39850400004)(346002)(366004)(376002)(396003)(136003)(199004)(189003)(2616005)(99286004)(68736007)(476003)(50226002)(486006)(86362001)(8936002)(81166006)(81156014)(26005)(14454004)(4326008)(186003)(386003)(6506007)(316002)(102836004)(6916009)(54906003)(52116002)(36756003)(6486002)(6436002)(71190400001)(71200400001)(6306002)(6512007)(25786009)(14444005)(66066001)(256004)(966005)(66946007)(64756008)(66476007)(66556008)(66446008)(1076003)(1411001)(5660300002)(8676002)(478600001)(7736002)(44832011)(6116002)(3846002)(305945005)(53936002)(2906002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR05MB5013;H:AM6PR05MB6535.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: HjPMpirg55Hfib9grPLE+5DmoMUtNsmea5b8MthajO6Jcp1F5oMUd6XW0ApwwMS9O0W+9w69yxPIG5Ih2gh+lI7orv5DLsth/UmX8G5BppPA6h/pXtqY3WLDwBaFZyG+62gtMe+uOVVHiuhqTNCJE5KeVZjEInG7Fh0b6Kec+2YsHjRWxwhBPmy+j1w3n3AERl/J5yOt3nHTX77PXlHAA0rbCD/bPos/YvjpCstk/M4TWyvBvQdm8BqvbqSzEGM46mTXQ7intcqibiR5zMCz24BixM2RoWynIwZVaY9LgFNBRF7Iz1oOyp9C7fX4VBvi+B9fFAXbQgaa3nE9tnQCGNPsxMqj2u7fuMGb6SaDLx3dcaV5vwM/QO1Y/MdpMHSOK/Y/6PkrF6B70Q4CQrAUF6pUOUiEhimFPk9fyQAEZAk= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe4f0ca2-27a7-434c-5ca0-08d70b5eb1fd X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2019 09:02:43.8246 (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: oleksandr.suvorov@toradex.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5013 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VAG power control is improved to fit the manual [1]. This patchset fixes as minimum one bug: if customer muxes Headphone to Line-In right after boot, the VAG power remains off that leads to poor sound quality from line-in. I.e. after boot: - Connect sound source to Line-In jack; - Connect headphone to HP jack; - Run following commands: $ amixer set 'Headphone' 80% $ amixer set 'Headphone Mux' LINE_IN Also this series includes fixes of non-important bugs in sgtl5000 codec driver. [1] https://www.nxp.com/docs/en/data-sheet/SGTL5000.pdf Changes in v5: - Add explicit stable tag - Improve commit message - Add explicit stable tag Changes in v4: - CC the patch to kernel-stable - Code optimization, simplify function signature (thanks to Cezary Rojewski for an idea) - CC the patch to kernel-stable - Add a Fixes tag Changes in v3: - Add the reference to NXP SGTL5000 data sheet to commit message - Add the reference to NXP SGTL5000 data sheet to commit message - Fix multi-line comment format Changes in v2: - Fix patch formatting - Fix patch formatting - Fix patch formatting - Fix patch formatting - Fix patch formatting - Fix patch formatting Oleksandr Suvorov (6): ASoC: Define a set of DAPM pre/post-up events ASoC: sgtl5000: Improve VAG power and mute control ASoC: sgtl5000: Fix definition of VAG Ramp Control ASoC: sgtl5000: add ADC mute control ASoC: sgtl5000: Fix of unmute outputs on probe ASoC: sgtl5000: Fix charge pump source assignment include/sound/soc-dapm.h | 2 + sound/soc/codecs/sgtl5000.c | 240 ++++++++++++++++++++++++++++++------ sound/soc/codecs/sgtl5000.h | 2 +- 3 files changed, 203 insertions(+), 41 deletions(-) --=20 2.20.1