Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2651595imj; Mon, 11 Feb 2019 06:29:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IZG4N+TA/8oYTPjqwZpjeP+I0DMuE2lhyNZK1jTS8DRdP4ER9Lw1czsiPYmmgA/Qe8nkvcO X-Received: by 2002:a17:902:8643:: with SMTP id y3mr25316155plt.80.1549895391718; Mon, 11 Feb 2019 06:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895391; cv=none; d=google.com; s=arc-20160816; b=PyQnYqw7d3Ns8Mz8U6ogkDqIxPbULle3lO7P3UXisgvOM/dijvsxBFxMAzEVg+8EJR lOitn3EdtPMuMSO0OU38hALjFjTbMPodfmY7/WSkfe84hqoCakXy0eQ2d/k+CCCahmSn aeOeW3eC7wni4NmJFQhjEJjfX86j2GYducnl+oepN9trsBvWW8lq4s6HFKjMUTT02gxc 1UrF/TU6xviQr6Etv80Iwt1QInK5rRLATDUusYvQMJuXQCJ5+uFqmnSaKLIoEN09IpV+ VRwb4DEKdX+lnNW0yHp5SF7fpgZE5+KByValgoTFJ2anVXfZ+o82DTaBdPkBvMqw6mwK c5EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2U5hBH9SOY1CCjwsikIikKTqHknult8ECcYw6YvdHok=; b=jnwwHkpIBEFP+icDfoWwSl5DLX+rtnsABrtUmvzbnRRVUBtHH4ViAgTqGjvo3vZtTR cdysahNmyJf4CjtygOKV5XFrWhYTxsHH5ykxKR984eveaYlj4hfZSCJewHfEXRWpxEnt CT9fEKpfYQCpHLA13TOEG5fDuX3sCIyFGiFM2JNGjW5TyHnoAlo5Map/9k3wiz+353UG W5P3MdFYkcmcNmWf7iMuYRlX30VhIANyBY7e2NNU76oQ7ysmGh5PhY81dLs7Qk+brTUn P/SElE6LJMlXjNeIZwrpE0F0Mjz8XaSUXn5V0IJLjyoYKtwlpM0ykbFyuq/bc1Q/PQIm HB7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ih40jaoy; 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 a18si9309363pgw.530.2019.02.11.06.29.35; Mon, 11 Feb 2019 06:29:51 -0800 (PST) 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=@kernel.org header.s=default header.b=Ih40jaoy; 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 S1729643AbfBKO1C (ORCPT + 99 others); Mon, 11 Feb 2019 09:27:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:60928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727247AbfBKO06 (ORCPT ); Mon, 11 Feb 2019 09:26:58 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 27F4321855; Mon, 11 Feb 2019 14:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895217; bh=LvFom4aUZURAW5OByWQFjPjv9PMk0b5Oo66qnMAY+hM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ih40jaoyZwwbW5du2pmb9OQy5Z3Cj5InLbJhFm1Bqq4UsoTFM4l9Xu03qtXeAQJJx 14jxNNEI5HdPRs24WHRpmn4W/6IQkbGHLYErmYXLzqqI6gZxZS1oDfkbh+Sp1HQLGw uhkXD+tCwwLQ0/BcumPL3Kx0k4rsscJfNklFM1pU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Janusz Krzysztofik , Tony Lindgren , Sasha Levin Subject: [PATCH 4.20 132/352] ARM: OMAP1: ams-delta: Fix audio permanently muted Date: Mon, 11 Feb 2019 15:15:59 +0100 Message-Id: <20190211141854.897960207@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 2afdb4c41d7876e430b9bc6e2d7e2fe28609fd6a ] Since commit 1137ceee76ba ("ARM: OMAP1: ams-delta: Don't request unused GPIOs"), on-board audio has appeared muted. Believed to be unused GPIO pin "hookflash1", apparently set high regardless of the corresponding bit of "latch2" port attempted to be set low during .init_machine(), has been identified as the reason. According to Amstrad E3 wiki, the purpose of the pin hasn't been clearly identified. Original Amstrad software used to produce a high pulse on it when the phone was taken off hook or recall was pressed. With the current finding, we can assume the pin provides a kind of audio mute function. Proper resolution of the issue should be done in two steps: - resolution of an issue with the pin state not reflecting the value the corresponding bit of the port was attempted to be initialized with, - extension of on-board audio driver with a new control. For now, rename the pin to "audio_mute" to reflect its function and, as a quick fix, hogg it as output low so on-board audio can produce audible sound again. Fixes: 1137ceee76ba ("ARM: OMAP1: ams-delta: Don't request unused GPIOs") Signed-off-by: Janusz Krzysztofik Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/mach-omap1/board-ams-delta.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 17886744dbe6..55bf73710a59 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c @@ -247,8 +247,8 @@ static struct platform_device latch2_gpio_device = { #define LATCH2_PIN_SCARD_CMDVCC 11 #define LATCH2_PIN_MODEM_NRESET 12 #define LATCH2_PIN_MODEM_CODEC 13 -#define LATCH2_PIN_HOOKFLASH1 14 -#define LATCH2_PIN_HOOKFLASH2 15 +#define LATCH2_PIN_AUDIO_MUTE 14 +#define LATCH2_PIN_HOOKFLASH 15 static struct regulator_consumer_supply modem_nreset_consumers[] = { REGULATOR_SUPPLY("RESET#", "serial8250.1"), @@ -588,6 +588,8 @@ static int gpiochip_match_by_label(struct gpio_chip *chip, void *data) static struct gpiod_hog ams_delta_gpio_hogs[] = { GPIO_HOG(LATCH2_LABEL, LATCH2_PIN_KEYBRD_DATAOUT, "keybrd_dataout", GPIO_ACTIVE_HIGH, GPIOD_OUT_LOW), + GPIO_HOG(LATCH2_LABEL, LATCH2_PIN_AUDIO_MUTE, "audio_mute", + GPIO_ACTIVE_HIGH, GPIOD_OUT_LOW), {}, }; -- 2.19.1