Message ID | 20230918095129.440-1-rf@opensource.cirrus.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp2553286vqi; Mon, 18 Sep 2023 03:28:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEx0QxsHCY66SRit8ojsmSjvh3yrqX+/pSXINDu+UdOMwC2dYckGWKWt2TiG2H79TmSn+70 X-Received: by 2002:a05:6a00:1306:b0:68e:41e9:10be with SMTP id j6-20020a056a00130600b0068e41e910bemr8160531pfu.20.1695032898955; Mon, 18 Sep 2023 03:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695032898; cv=none; d=google.com; s=arc-20160816; b=ZU5piROPct3k1QXBWL2y4TP64B755OO4qpkzSgxw1md+bTVqGJQUoEQACySPmvpG56 XNapQO+4rAKPS1aAVemGm6QD0MSRDpghA4kLLE1/dqrskWVQuN6fADJ66EAaSeDzUo+R veji3msrX6UEtJ/MgroVN6JQhRMcZgp1zfuUL0UCAP+MQpmX+QdipMT/P82S/ZQ8HBBi 6TM/xDauGEHvi1nH3ZBBHtjEB+N+wbjFRtAfXm7KzpYcp1wt1+LJB+IgFQ+j+Ts4VVQh vmUQ+I9NQkpiivIt7SZCRppoJxKCh138giK5Tkgpbu+y1OkLT4Y4i+J/zDueiqbqyuFS shTA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=OekxzRcVaZo051lSiRKtMaMlNmQuGAT/oxmqstQ4suc=; fh=SyhPsGKNo/JGCZgOgs8oor82YQAWZ9kc5f/0PFOAxm0=; b=GswFog0aWjFEfiQ5NhEZLO2RkkqqZavihW2V6TMGdRK7Ms6x1AcgNnogmEvJ7J2lvW aMr6Vi+sxTgrMc8pYEV9XD7e0M4rtjuTJmHHzg3yzcFb9CCs9+XwBHoimgbGqIM1sM6t qBGEy1XCbVNIT0flHeOOH/u98M+CIOVwByFnEcvUQWAfxyfmGqgcBpVkICMNgnlucRoe wmgNZ61FhvrNU1cRMotCpYD3vA9Rz7dWEuSEQ9UCgDl4LjXcSnZTLKonehZYNgBJlo4a xY90FwyTn9GEUovZxlGNxMSDeGf35+H8HXHYneM0nayDWPHXfxp4umtJyMwXsof57sBn 4hoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=gfd3uiuO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id cj25-20020a056a00299900b0068fa57cc15bsi8043442pfb.124.2023.09.18.03.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 03:28:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=gfd3uiuO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8DC1180F72AB; Mon, 18 Sep 2023 02:53:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240860AbjIRJwT (ORCPT <rfc822;kernel.ruili@gmail.com> + 27 others); Mon, 18 Sep 2023 05:52:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239166AbjIRJvs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 18 Sep 2023 05:51:48 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16521115 for <linux-kernel@vger.kernel.org>; Mon, 18 Sep 2023 02:51:42 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38I6K0DO017792; Mon, 18 Sep 2023 04:51:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=O ekxzRcVaZo051lSiRKtMaMlNmQuGAT/oxmqstQ4suc=; b=gfd3uiuOnWYePPdhl bCXvCzRs1/ROHAIha7pMHyteS/I6mlruBwTeyXRtpgxlgeLKNQXE907/VaAk7CTM OvccVfFLSL6ymPd2HLqjpBw4h/OvRDxRspctV1f6eS8Bsh3zqt1DY45BbCt9LTLV DDUNDmkS9RMMTCDYMHs3kO3z222qocZOR3MO4XY3ReiEFxVr3odd8f8qSK+XQltL w+xDCkMRPKVx8rLyc+NeplW8p3G0LWGRm+tWZiW/aqlU9ldAvZmjOcurFg+ZfwiF F/ashZ07xeRG3U1oZ2LVtRdILoWjjPyJHWfuFAxt5WyfSmhUNcL5bjuyc7SDXHcZ SplWQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3t59ry256c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Sep 2023 04:51:35 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Mon, 18 Sep 2023 10:51:33 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Mon, 18 Sep 2023 10:51:33 +0100 Received: from EDIN4L06LR3.ad.cirrus.com (EDIN4L06LR3.ad.cirrus.com [198.90.238.137]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 9DE0611AA; Mon, 18 Sep 2023 09:51:32 +0000 (UTC) From: Richard Fitzgerald <rf@opensource.cirrus.com> To: <tiwai@suse.com> CC: <alsa-devel@alsa-project.org>, <patches@opensource.cirrus.com>, <linux-kernel@vger.kernel.org>, Richard Fitzgerald <rf@opensource.cirrus.com> Subject: [PATCH 0/2] ALSA: hda: cs35l56: Handle speaker id GPIOs Date: Mon, 18 Sep 2023 10:51:27 +0100 Message-ID: <20230918095129.440-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: lvXNau_bsidQSZVhdqEAskyfFpke2A4r X-Proofpoint-ORIG-GUID: lvXNau_bsidQSZVhdqEAskyfFpke2A4r X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 02:53:09 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777370816695358785 X-GMAIL-MSGID: 1777370816695358785 |
Series |
ALSA: hda: cs35l56: Handle speaker id GPIOs
|
|
Message
Richard Fitzgerald
Sept. 18, 2023, 9:51 a.m. UTC
Some manufacturers use multiple sources of speakers. Motherboard GPIOs are set to indicate which type of speaker is fitted so that the correct tunings can be loaded. Patch #1 adds support for this and patch #2 adds a KUnit test for the new code. Richard Fitzgerald (2): ALSA: hda: cs35l56: Add support for speaker id ALSA: hda: cirrus_scodec: Add KUnit test MAINTAINERS | 1 + sound/pci/hda/Kconfig | 17 ++ sound/pci/hda/Makefile | 4 + sound/pci/hda/cirrus_scodec.c | 73 ++++++ sound/pci/hda/cirrus_scodec.h | 13 + sound/pci/hda/cirrus_scodec_test.c | 370 +++++++++++++++++++++++++++++ sound/pci/hda/cs35l56_hda.c | 24 +- 7 files changed, 501 insertions(+), 1 deletion(-) create mode 100644 sound/pci/hda/cirrus_scodec.c create mode 100644 sound/pci/hda/cirrus_scodec.h create mode 100644 sound/pci/hda/cirrus_scodec_test.c
Comments
On Mon, 18 Sep 2023 11:51:27 +0200, Richard Fitzgerald wrote: > > Some manufacturers use multiple sources of speakers. Motherboard > GPIOs are set to indicate which type of speaker is fitted so that > the correct tunings can be loaded. Patch #1 adds support for this > and patch #2 adds a KUnit test for the new code. > > Richard Fitzgerald (2): > ALSA: hda: cs35l56: Add support for speaker id > ALSA: hda: cirrus_scodec: Add KUnit test Applied both patches to for-next branch now. thanks, Takashi