Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp388660pxx; Wed, 28 Oct 2020 07:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE+ST1n9IrGte3ODLPIpYljPUI7GrUINYlZC6rtt2JOJ+yXvwnU6fJYKQ+WH/loicq7MHg X-Received: by 2002:a17:906:3e1a:: with SMTP id k26mr7943521eji.96.1603894586926; Wed, 28 Oct 2020 07:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603894586; cv=none; d=google.com; s=arc-20160816; b=Y2uWjnn0Dt7CisBOZu2NeVuzYT2+7lcHkmJZLgaHYcd3aXhhgXwfmVtuacXGAI1sjs 13yNguljFv26pHuMAGJ4tgkFwbqN/WQqdPYbJxrt4G2B2kkocBtSL2cJWzPNwTmH5qWA GwEJ3jr22ZBKom480z6ARxU3HFllEU0DQNiatBnyxfiK9T9GuiJLutSYpsUonhWA/xb6 ZFBbq3EM3fLI5QF4BKgzPplqZbWHycdYdwnYEDmyWpyCJzOwNGXfVimnsSHBV3JrCHdF 4w8zmezo3bqSqRwx+tbdBzhq7M37yVnOv10z9rWgXc6jF7F8PjcswdagWEWLK9NegneK 9v7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=abfy3sDa3oDkk8YzjwX+CZGMMz3Jxb9I57TXLKEexZU=; b=p/MaYkBT3DYhi/q8UH2QlVGAre6X21V3Sv6uHi/MjAOwUitmsDkrOD+D5AVPCjwLZW /RDmGak6DHL0r4xb6+cOgg8gnfugk3ay0dYcnrfXtRpf9P7SA2zLHbyI3TsJdSbubLIF gN8FmvtCU3XTVAqNGT09Z6qq+PaWQfqTRCRoaQystLezzFPfOmlfwZAZow6tdDJRwQ/F TIOFgLvQLZEGjScn4Y4Hw4CO/6BFDkVCi0d/TJEz5zyOfG+ile7BTzOchWbSxQzt3539 Fq1o8EXsfQVbUKuyjJwUGeSYr7aFJVVtAR8ii5fS9HR4cEvu7UUPoDYW9I/1N5XB8OD8 jADw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IcglUcru; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si2524555edb.466.2020.10.28.07.16.04; Wed, 28 Oct 2020 07:16:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IcglUcru; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1805048AbgJ0QAZ (ORCPT + 99 others); Tue, 27 Oct 2020 12:00:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:52894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1796264AbgJ0PQT (ORCPT ); Tue, 27 Oct 2020 11:16:19 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 5CBA22224A; Tue, 27 Oct 2020 15:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811779; bh=+4Rvx/4igygj3eEWflGXS7nSIwGctC1nLqeaaOxGn98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IcglUcruZAabHJcEHe8VWtq9tt6dsP2O9Xa8MCwZYdra1mNv6qjBoRPfS+dbIwW5Z clkSnmYesvwhf3FwrrIhWlFFkrvF0ccrQmuKLu+12TXG4pVgfk6/5gATOLC2eGh2Le 0c27JEKbeue0CnAswgraie5TZO1Ty4LQWfpU/F9Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Connor McAdams , Takashi Iwai , Sasha Levin Subject: [PATCH 5.8 612/633] ALSA: hda/ca0132 - Add AE-7 microphone selection commands. Date: Tue, 27 Oct 2020 14:55:55 +0100 Message-Id: <20201027135551.537244004@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Connor McAdams [ Upstream commit ed93f9750c6c2ed371347d0aac3dcd31cb9cf256 ] Add AE-7 quirk data for setting of microphone. The AE-7 has no front panel connector, so only rear-mic/line-in have new commands. Signed-off-by: Connor McAdams Link: https://lore.kernel.org/r/20200825201040.30339-19-conmanx360@gmail.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_ca0132.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 6dfa864d3fe7b..62a9be5b827eb 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -4675,6 +4675,15 @@ static int ca0132_alt_select_in(struct hda_codec *codec) ca0113_mmio_command_set(codec, 0x30, 0x28, 0x00); tmp = FLOAT_THREE; break; + case QUIRK_AE7: + ca0113_mmio_command_set(codec, 0x30, 0x28, 0x00); + tmp = FLOAT_THREE; + chipio_set_conn_rate(codec, MEM_CONNID_MICIN2, + SR_96_000); + chipio_set_conn_rate(codec, MEM_CONNID_MICOUT2, + SR_96_000); + dspio_set_uint_param(codec, 0x80, 0x01, FLOAT_ZERO); + break; default: tmp = FLOAT_ONE; break; @@ -4720,6 +4729,14 @@ static int ca0132_alt_select_in(struct hda_codec *codec) case QUIRK_AE5: ca0113_mmio_command_set(codec, 0x30, 0x28, 0x00); break; + case QUIRK_AE7: + ca0113_mmio_command_set(codec, 0x30, 0x28, 0x3f); + chipio_set_conn_rate(codec, MEM_CONNID_MICIN2, + SR_96_000); + chipio_set_conn_rate(codec, MEM_CONNID_MICOUT2, + SR_96_000); + dspio_set_uint_param(codec, 0x80, 0x01, FLOAT_ZERO); + break; default: break; } @@ -4729,7 +4746,10 @@ static int ca0132_alt_select_in(struct hda_codec *codec) if (ca0132_quirk(spec) == QUIRK_R3DI) chipio_set_conn_rate(codec, 0x0F, SR_96_000); - tmp = FLOAT_ZERO; + if (ca0132_quirk(spec) == QUIRK_AE7) + tmp = FLOAT_THREE; + else + tmp = FLOAT_ZERO; dspio_set_uint_param(codec, 0x80, 0x00, tmp); switch (ca0132_quirk(spec)) { -- 2.25.1