Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1303428rwi; Thu, 13 Oct 2022 11:44:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7G6UTcpL9GnDqPkFT6/e9ZwqCRQOm0dM6JS2ihp09hP7me6NftNBAvex8FVF4nsUDI9R0h X-Received: by 2002:a17:902:d48d:b0:185:115c:b16b with SMTP id c13-20020a170902d48d00b00185115cb16bmr1077397plg.158.1665686677889; Thu, 13 Oct 2022 11:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665686677; cv=none; d=google.com; s=arc-20160816; b=uhq0RZkAZO5hA5PdV4teGN0jArpdCXUifokqQlm8Yr8dIchLgNdYRRq93nE2gGX2Kz dziZbwk1h2MhaB8rDLjUX59gFuVPrn2ZKBakRjvFChwrD7kq9fIPFyLJhFZCs9yVBpj6 zomG2OLMUZi8eLsnz+piK5aF6GHMKA0Uxezmxxim44y8rB4eZ+UAnrZK0yBKX2muTFq6 IsKDfASOLxLlfK8PtxphomVL2/blRQMggvI5zP25GsR7Cbxk4XaEoWWOO4kxHsIW5sQs WNVuv7VM6vEgDRBu+I4C7sClO2m63dKEX4SSSgWzDzjdA489spqffVKqrfuu3o+Fxqg/ HmWg== 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=KiZccsTHkuUele1UNuG6Ntr4PJ8NIyKDPrGMtz7je7o=; b=kctuFUZHmSenugwejU4NbZh7BEKjTPHX+2KQr22ojUyjqc49HVoFDP8D4Y+hLoo5NW ITCw8yQT4A0dRFumYe+4bLVg6mUVlHhsngEwV46egNZC0PtD9/hyG3cPtOzfA1+WTtwu MQSEz4fZmT8geIcq5crFutKvFHsAtbLyrcZZ8Lx/stapXGIAk8T5rEmERPIY3GOU0w6N pYaYal+XKUc4xtFm0oifIgHLfLqHS9p/anP4h75BwqO+XDKd+TUQW+n7n1zl0lQUqqYD e7CCstrER84l9PS+9qrJMuXwEHqQQ43A9/hLaFekOGrKpqIIBo6BKMD4fWtTgKRbagHQ bI5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q76DxKbr; 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 mu10-20020a17090b388a00b001fdcbf875e7si4823007pjb.35.2022.10.13.11.44.26; Thu, 13 Oct 2022 11:44:37 -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=q76DxKbr; 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 S231644AbiJMSLE (ORCPT + 99 others); Thu, 13 Oct 2022 14:11:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231488AbiJMSKR (ORCPT ); Thu, 13 Oct 2022 14:10:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B633B17579F; Thu, 13 Oct 2022 11:07:40 -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 dfw.source.kernel.org (Postfix) with ESMTPS id ACE6C61929; Thu, 13 Oct 2022 18:02:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AC39C433C1; Thu, 13 Oct 2022 18:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665684131; bh=YzomB7J4BsTWMhyhV0465aLsGEaRBA/Q+cVNwoCa4xM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q76DxKbrMFhtVtaWgGjyMr8/5fFvzgqpcIJ5Rfxx5NA/bk8kv4lqY5MtTs6geDMnR KWbJeXP3ZLLhyi4nbJGP023dufWBwWYW7Yub0Fti6SrpalEp0fgdm/L7Bnp+UuCGDH tVTwulPcRH36ArUhoWEAREy3YknenC+jk7CpxEL8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Hans de Goede Subject: [PATCH 6.0 08/34] ALSA: hda: Fix position reporting on Poulsbo Date: Thu, 13 Oct 2022 19:52:46 +0200 Message-Id: <20221013175146.737744465@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221013175146.507746257@linuxfoundation.org> References: <20221013175146.507746257@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 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 56e696c0f0c71b77fff921fc94b58a02f0445b2c upstream. Hans reported that his Sony VAIO VPX11S1E showed the broken sound behavior at the start of the stream for a couple of seconds, and it turned out that the position_fix=1 option fixes the issue. It implies that the position reporting is inaccurate, and very likely hitting on all Poulsbo devices. The patch applies the workaround for Poulsbo generically to switch to LPIB mode instead of the default position buffer. Reported-and-tested-by: Hans de Goede Cc: Link: https://lore.kernel.org/r/3e8697e1-87c6-7a7b-d2e8-b21f1d2f181b@redhat.com Link: https://lore.kernel.org/r/20221001142124.7241-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/hda_intel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2554,7 +2554,8 @@ static const struct pci_device_id azx_id .driver_data = AZX_DRIVER_SCH | AZX_DCAPS_INTEL_PCH_NOPM }, /* Poulsbo */ { PCI_DEVICE(0x8086, 0x811b), - .driver_data = AZX_DRIVER_SCH | AZX_DCAPS_INTEL_PCH_BASE }, + .driver_data = AZX_DRIVER_SCH | AZX_DCAPS_INTEL_PCH_BASE | + AZX_DCAPS_POSFIX_LPIB }, /* Oaktrail */ { PCI_DEVICE(0x8086, 0x080a), .driver_data = AZX_DRIVER_SCH | AZX_DCAPS_INTEL_PCH_BASE },