Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10649708rwp; Fri, 21 Jul 2023 02:43:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlFZIZypMBpJtT1VSn5JxjxTCA7cw9hf92G+LBXrH0UDGBOS1Fj8mWxp6WFnAF0ILug/h6M+ X-Received: by 2002:a17:906:15b:b0:991:c842:2ca2 with SMTP id 27-20020a170906015b00b00991c8422ca2mr1297343ejh.15.1689932587607; Fri, 21 Jul 2023 02:43:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689932587; cv=none; d=google.com; s=arc-20160816; b=HFuZgOf4KCZQSFbtOPcL0MEUbGnOktjM90EmQLFhnsty9jkzaIUK0+8KqTPOXWd2pQ SUjdexf8tCrsWEPyZf6+ByfckmzCkPgY9abYiBGh7lWcKXDtxE9NrN+V3o+0Yqhpsovs MVR+xyVPtQN9fYg82XQ+d3DCpP8lXg/w2IDK1b6VHkjtakHPD8BGZFX+YfyB6ei8923g AGOEt5xTaa7wETJ4A7SybrfHS+Y0kx81P3Td1SReFAjq8whvkjTvaKmg8WEChA7uMNgf bYw5rNOeG8h0WPUyhYawqX/waEaiGxKbdPI4hV1GHcqYKEjZuXtN/50hP7oW2uEt28tu Dd2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from; bh=0kUGC5/yLwhY+RidF6bOSJuXRb5zawSr04iSP/eeCdA=; fh=CiF4KsH7QpbhjtVei4+kz6AImrK+JpHN44G0mbZSmAk=; b=r03oKpoHIEEV6itFSiarDQHH4WE+uGReREpnKcmBg37vOO0qj8q6/+j8lZ77HVhchU tNsTAA5ywshm9pO9skTYv5v/vFmWhTzkS52FYXYj/ZsBAdzN3xAO0ADCc9mycQJ/eG4b XqjZzTO1cceJ2lO8+ZR1PQJ9mw6ENv7R0+JwvJuX5jHlnTu1pqC3O9y+6aFM1G1zKVbQ 43KgyTo5Z7V1Le0y9O6KN6N7+GSdfUyzNYpap5bAqyUlVd6XLiJM0kljzv5XmTqY74re 2SZ9n8BPoN3YvT2mXTni3NmY4xz9TpVZaCulNbNKrFrQCWsVx1B9Rrh1roDbISvQKetq JHFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a170906230200b0099b46fc04f6si1770010eja.1006.2023.07.21.02.42.43; Fri, 21 Jul 2023 02:43:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229925AbjGUI6J (ORCPT + 99 others); Fri, 21 Jul 2023 04:58:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbjGUI5u (ORCPT ); Fri, 21 Jul 2023 04:57:50 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA1CC30C0 for ; Fri, 21 Jul 2023 01:57:48 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 53C102004DB; Fri, 21 Jul 2023 10:57:47 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1AFC02004B5; Fri, 21 Jul 2023 10:57:47 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id B7DF21820F57; Fri, 21 Jul 2023 16:57:45 +0800 (+08) From: Shengjiu Wang To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, ckeepax@opensource.cirrus.com, kuninori.morimoto.gx@renesas.com, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ASoC: wm8960: Add DAC filter characteristics selection Date: Fri, 21 Jul 2023 16:24:02 +0800 Message-Id: <1689927842-21165-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Support DAC filter characteristics selection: Normal mode and Sloping stopband. Sloping stopband may have better frequency response. Signed-off-by: Shengjiu Wang Acked-by: Charles Keepax --- changes in v2: - modify capitalise sound/soc/codecs/wm8960.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index 366f5d769d6d..5db9b0338396 100644 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c @@ -155,6 +155,7 @@ static const char *wm8960_adc_data_output_sel[] = { "Left Data = Right ADC; Right Data = Left ADC", }; static const char *wm8960_dmonomix[] = {"Stereo", "Mono"}; +static const char *wm8960_dacslope[] = {"Normal", "Sloping"}; static const struct soc_enum wm8960_enum[] = { SOC_ENUM_SINGLE(WM8960_DACCTL1, 5, 4, wm8960_polarity), @@ -165,6 +166,7 @@ static const struct soc_enum wm8960_enum[] = { SOC_ENUM_SINGLE(WM8960_ALC3, 8, 2, wm8960_alcmode), SOC_ENUM_SINGLE(WM8960_ADDCTL1, 2, 4, wm8960_adc_data_output_sel), SOC_ENUM_SINGLE(WM8960_ADDCTL1, 4, 2, wm8960_dmonomix), + SOC_ENUM_SINGLE(WM8960_DACCTL2, 1, 2, wm8960_dacslope), }; static const int deemph_settings[] = { 0, 32000, 44100, 48000 }; @@ -307,6 +309,7 @@ SOC_SINGLE_TLV("Right Output Mixer RINPUT3 Volume", SOC_ENUM("ADC Data Output Select", wm8960_enum[6]), SOC_ENUM("DAC Mono Mix", wm8960_enum[7]), +SOC_ENUM("DAC Filter Characteristics", wm8960_enum[8]), }; static const struct snd_kcontrol_new wm8960_lin_boost[] = { -- 2.34.1