From patchwork Wed Jul 6 12:02:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cezary Rojewski X-Patchwork-Id: 12908052 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ECDABC43334 for ; Wed, 6 Jul 2022 11:56:13 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 39F8A16EA; Wed, 6 Jul 2022 13:55:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 39F8A16EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1657108572; bh=bQ+aAZlbc5HXs25ux9Ak17W/MeBwcyWe5vefkvQKEpk=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=kjzIGwvZ0GeePKaYiVAvS9jeoU7XbnwuWTUoKDvohDVN7T/1vLAXdQ4L+Ccq0yImd seZ9+Fcff0qAobG5Mk2HdD3akgbt7ajlELWW6Nzh607hnAVDW9xHPHr43czDUbuwQU SXOXJTWP1+dKIDaB+y00bouQR+77PGfnZIQaGvgw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C3240F8057A; Wed, 6 Jul 2022 13:52:57 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C4B69F80553; Wed, 6 Jul 2022 13:52:54 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0A487F80551 for ; Wed, 6 Jul 2022 13:52:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0A487F80551 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kbxgKL3n" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657108373; x=1688644373; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bQ+aAZlbc5HXs25ux9Ak17W/MeBwcyWe5vefkvQKEpk=; b=kbxgKL3nKrHBjPzq8gloKJdHz48SMRlshv6hOPdx3Cww20z0rvqUFR9o CwSq6yQVuHo8Q1BPmSUEzHRiuZook4PzgRWb0uTEPH/qa19Dx1y9oTUwX dCE5s3DHO2Ym5P1+ME2kOr5G+WJILjbfH70bShk5U+cFIP5m1aHoHUb7W s0selGfjQZCqf3WXUl90FRqvjGBI82PgzwrcuHhwd3g86iCp8nOEmbEqk YXUSezqTldMTD4tKqSz5BX8goL/3xxnbmQRmlvBRYsQ2C9W8IsXi8wrGt BHS4/czX2Nhol6vM5bOxUc2bhdxg26O/A7nSYg/erIFWGxtYUOZpoPILw A==; X-IronPort-AV: E=McAfee;i="6400,9594,10399"; a="370042666" X-IronPort-AV: E=Sophos;i="5.92,249,1650956400"; d="scan'208";a="370042666" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 04:52:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,249,1650956400"; d="scan'208";a="920136326" Received: from crojewsk-ctrl.igk.intel.com ([10.102.9.28]) by fmsmga005.fm.intel.com with ESMTP; 06 Jul 2022 04:52:49 -0700 From: Cezary Rojewski To: alsa-devel@alsa-project.org, tiwai@suse.com Subject: [PATCH 9/9] ALSA: hda/realtek: Remove redundant init_hook() in alc_default_init() Date: Wed, 6 Jul 2022 14:02:30 +0200 Message-Id: <20220706120230.427296-10-cezary.rojewski@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220706120230.427296-1-cezary.rojewski@intel.com> References: <20220706120230.427296-1-cezary.rojewski@intel.com> MIME-Version: 1.0 Cc: Cezary Rojewski , pierre-louis.bossart@linux.intel.com, hdegoede@redhat.com, broonie@kernel.org, amadeuszx.slawinski@linux.intel.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" snd_hda_gen_init() does that for every codec already. Signed-off-by: Cezary Rojewski --- sound/pci/hda/patch_realtek.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index f3ad454b3fbf..a8688025352d 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -923,9 +923,6 @@ static int alc_init(struct hda_codec *codec) if (is_s4_resume(codec)) alc_pre_init(codec); - if (spec->init_hook) - spec->init_hook(codec); - spec->gen.skip_verbs = 1; /* applied in below */ snd_hda_gen_init(codec); alc_fix_pll(codec);