Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2903909iog; Mon, 27 Jun 2022 05:27:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t4dfhE9+JNnohZtCvzDSasAS/JQtzCmoOw9VUZJPhRNd/4aWaAZTlup6pbtvI15AKubNOf X-Received: by 2002:a63:31d3:0:b0:40d:dfdf:55c8 with SMTP id x202-20020a6331d3000000b0040ddfdf55c8mr6758951pgx.618.1656332859234; Mon, 27 Jun 2022 05:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656332859; cv=none; d=google.com; s=arc-20160816; b=zgPdXOF/w+PedaeHtU3bgEjmD4wuf5G3wAp8wvQAh2eOu8jQSh5w/MZ6xhF7Cpkk1s X7oKM4UNU14hFVcP+e3bZiY85rcmPTqSrw3jMy5gae4IBJA6T91wOUDO/uCkKEZEtaSA DWmtC5nfN9gIfOhRO9pR+Nwah8AVL6f/qu0fymvVNA7j1+x2Xk9FKiStq6HoO2sySI/M PQgG7uLWcHWDe7nnQ4RhyAtF5S02ySTNgaiwM4M4326C0x6nhkr3NSNGlsppA0rS6VWA tHVckUSylDE6kOl7RH3w2mvJ7IKmmv+WRZQVhZsydbkUzr/yVLYwZW0qpq0BjgMxxOXN QUpw== 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=SJmymejVLLmOsbAKFMLmWgVV5wCA3J89X2UngfKzA4k=; b=Kz5uvex4e+JTTjN2zQ9b+Z/DpYHwQsOWjZ41bedX0+ayT8ajLrnnyXT6ds7tXLZVyQ foeqPaYS34RN8reGfv1ZnlIQkooyxC4HjJ0Wm/EPQaqfWxU3QqqEqpSNQWeMWgfTq3Fk feP+JD+a3soL8RRKYGI/7XNJHZFATOhuLcowGw2uEzWlKD1reV+40x7TJlYUeVYAac+x NX7idVaBNyrds/OML7OLvd9yasbFjObzxZB3f3f5snHpHokOf3ROyw4D+5n7tKAs+Oep Cxkz6Lgo4vDowcb8BcbJJWqbKBsxkVNNWy3LyCmO4nNmfClnj65Jp2iuzOGCBxtdecAy hJfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0ojnwlVz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a656c12000000b0040ce4de349csi15487356pgu.291.2022.06.27.05.27.26; Mon, 27 Jun 2022 05:27:39 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0ojnwlVz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235612AbiF0Lbi (ORCPT + 99 others); Mon, 27 Jun 2022 07:31:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235505AbiF0LbG (ORCPT ); Mon, 27 Jun 2022 07:31:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C02ED43; Mon, 27 Jun 2022 04:28:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7810AB81120; Mon, 27 Jun 2022 11:28:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF189C3411D; Mon, 27 Jun 2022 11:28:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329325; bh=XOIx0qfVQ5fqLo+dyftsQnSrhrY/uehJbydbzUAbTuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0ojnwlVzdBB+MwzPDqWnMernuopeZP4GtiFajVRKFkFr6o10gZrSvu45HbxJu8OW/ sr6hZY6/WbuGNQtU/FvZ5ICrznK0edlQjViAXC/buqZUjXqjLnsA/W3QbSnN5s/t6k NsRGAyXVG5xWnF/eF+Nop80QiAtSoDD880yx65PM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 5.4 04/60] ALSA: hda/conexant: Fix missing beep setup Date: Mon, 27 Jun 2022 13:21:15 +0200 Message-Id: <20220627111927.778951830@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111927.641837068@linuxfoundation.org> References: <20220627111927.641837068@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Takashi Iwai commit 5faa0bc69102f3a4c605581564c367be5eb94dfa upstream. Currently the Conexant codec driver sets up the beep NID after calling snd_hda_gen_parse_auto_config(). It turned out that this results in the insufficient setup for the beep control, as the generic parser handles the fake path in snd_hda_gen_parse_auto_config() only if the beep_nid is set up beforehand. For dealing with the beep widget properly, call cx_auto_parse_beep() before snd_hda_gen_parse_auto_config() call. Fixes: 51e19ca5f755 ("ALSA: hda/conexant - Clean up beep code") Cc: Link: https://bugzilla.kernel.org/show_bug.cgi?id=216152 Link: https://lore.kernel.org/r/20220620104008.1994-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_conexant.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c @@ -1048,11 +1048,11 @@ static int patch_conexant_auto(struct hd if (err < 0) goto error; - err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); + err = cx_auto_parse_beep(codec); if (err < 0) goto error; - err = cx_auto_parse_beep(codec); + err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); if (err < 0) goto error;