From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basealt.ru; s=dkim; t=1772188378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AilA+0PmSMvqZb5ESqevw4KpHGdMdLVqoJ8R/fF4rPc=; b=Bv7sPQw/em04CThAaZU0rV3H1exGDqYqEXmrvO7PTOD3ZpPWSnpbEke1Da1Z8vvJ4XUyQL 7IwhDaNl1gbOuyp+cWHEz2m+L3VWUSCqoeNRkT9SyWganWWKwigp/m4bNusnEC65wAHlcs lpB9234UhnqjFFdZa0W2KI6be86Fzqcvd6wPYdyKv1Ruh85Xvm8x86UDSE7lGuowQ4VvYi WZs0LsNJEEGTjtrfoHGAAzBadtzUteDfOpPgr/JJEvB2HjaxpT/p3XQimtzpXxAGLaxmL4 7jQLdW+03Z4RGblL61dmnLrZow1OHdq6npT4B87e3REETGkdKibFAyJvkuRddg== From: Daniil Gnusarev To: gnusarevda@basealt.ru, devel-kernel@lists.altlinux.org Date: Fri, 27 Feb 2026 14:32:29 +0400 Message-ID: <20260227103236.785736-29-gnusarevda@basealt.ru> X-Mailer: git-send-email 2.42.2 In-Reply-To: <20260227103236.785736-1-gnusarevda@basealt.ru> References: <20260227103236.785736-1-gnusarevda@basealt.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [d-kernel] [PATCH 28/35] sound: hda: enable jack detection in polling mode on Baikal-M X-BeenThere: devel-kernel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2026 10:33:25 -0000 Archived-At: List-Archive: List-Post: Since interrupts are not used, manual polling of codecs is required to detect new connections. Signed-off-by: Daniil Gnusarev Do-not-upstream: this is a feature of Baikal-M --- sound/hda/controllers/hda_baikal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/hda/controllers/hda_baikal.c b/sound/hda/controllers/hda_baikal.c index faf029d60662c9..86f6fa69c568e8 100644 --- a/sound/hda/controllers/hda_baikal.c +++ b/sound/hda/controllers/hda_baikal.c @@ -377,6 +377,7 @@ static int hda_baikal_create(struct snd_card *card, INIT_WORK(&hda->irq_pending_work, azx_irq_pending_work); chip->codec_probe_mask = 0x3; /* two codecs */ + chip->jackpoll_interval = msecs_to_jiffies(1000); /* 1000ms */ chip->single_cmd = false; chip->snoop = true; -- 2.42.2