From patchwork Sun Dec 21 12:35:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5523951 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EB0929F30B for ; Sun, 21 Dec 2014 12:32:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3236C20155 for ; Sun, 21 Dec 2014 12:32:48 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id E07D220107 for ; Sun, 21 Dec 2014 12:32:46 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3E22926059F; Sun, 21 Dec 2014 13:32:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id EF19C26059F; Sun, 21 Dec 2014 13:32:34 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4FA6F2605A1; Sun, 21 Dec 2014 13:32:34 +0100 (CET) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by alsa0.perex.cz (Postfix) with ESMTP id 368B126059D for ; Sun, 21 Dec 2014 13:32:26 +0100 (CET) Received: by mail-wg0-f42.google.com with SMTP id k14so4796338wgh.29 for ; Sun, 21 Dec 2014 04:32:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TJInioWpPO8pzmLgyF70GecWnPHwUFS/6YZpBFGhDx8=; b=ConK+5QZ8ylkQdZl8fAtcXBdUpvq1BiIzSRQlZAS708OCHtPZE+GcIS7XDshhIfRNt NsAJFUglraNcD6pexFBHaze3oNWBLgTey9ePFUgfmqlFFfTJsH4bW7o2qwauQ65zp/aP ys0YLgprYqMfvWirxDZNwZhoNF1sNAJiIt2dCcsqUk7KqOZYqG70amtu8N381YmBVlSd Crvee7pBgg2ziMMTisjz2B4h81fbSt4v0KqeihffemWOqSwG+tc65GeKlz+n3Qwy714o xInW/CPWxkd2pK2mlwZOjfzpP9KQ07PBk8zK4pT7PO59LWFHl7RI/TTZnOJJlR5iuWok dv3A== X-Gm-Message-State: ALoCoQnmkPb7Yvzuym74XuaRZfV2UZ2G5VANGUGVgLNajOa6FzQCOoHL22VRAjKTT2BDGcXpLHtf X-Received: by 10.194.178.231 with SMTP id db7mr31642006wjc.112.1419165145731; Sun, 21 Dec 2014 04:32:25 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id t6sm19712189wjf.49.2014.12.21.04.32.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Dec 2014 04:32:25 -0800 (PST) From: Rickard Strandqvist To: Jaroslav Kysela , Takashi Iwai Date: Sun, 21 Dec 2014 13:35:12 +0100 Message-Id: <1419165312-28886-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Rickard Strandqvist Subject: [alsa-devel] [PATCH] sound: pci: hda: patch_analog.c: Remove some unused functions X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Removes some functions that are not used anywhere: ad198x_ch_mode_get() ad198x_ch_mode_info() ad198x_ch_mode_info() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- sound/pci/hda/patch_analog.c | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 06275f8..0e76dcc 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c @@ -697,39 +697,6 @@ static int patch_ad1981(struct hda_codec *codec) * E/F quad mic array */ -#ifdef ENABLE_AD_STATIC_QUIRKS -static int ad198x_ch_mode_info(struct snd_kcontrol *kcontrol, - struct snd_ctl_elem_info *uinfo) -{ - struct hda_codec *codec = snd_kcontrol_chip(kcontrol); - struct ad198x_spec *spec = codec->spec; - return snd_hda_ch_mode_info(codec, uinfo, spec->channel_mode, - spec->num_channel_mode); -} - -static int ad198x_ch_mode_get(struct snd_kcontrol *kcontrol, - struct snd_ctl_elem_value *ucontrol) -{ - struct hda_codec *codec = snd_kcontrol_chip(kcontrol); - struct ad198x_spec *spec = codec->spec; - return snd_hda_ch_mode_get(codec, ucontrol, spec->channel_mode, - spec->num_channel_mode, spec->multiout.max_channels); -} - -static int ad198x_ch_mode_put(struct snd_kcontrol *kcontrol, - struct snd_ctl_elem_value *ucontrol) -{ - struct hda_codec *codec = snd_kcontrol_chip(kcontrol); - struct ad198x_spec *spec = codec->spec; - int err = snd_hda_ch_mode_put(codec, ucontrol, spec->channel_mode, - spec->num_channel_mode, - &spec->multiout.max_channels); - if (err >= 0 && spec->need_dac_fix) - spec->multiout.num_dacs = spec->multiout.max_channels / 2; - return err; -} -#endif /* ENABLE_AD_STATIC_QUIRKS */ - static int ad1988_auto_smux_enum_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) {