Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2982274imu; Mon, 19 Nov 2018 08:58:00 -0800 (PST) X-Google-Smtp-Source: AJdET5cLpKg5Z9bRwAAvP0s6fjLY08Sx8WK3JYwrKdy/W2W9YNKW2ZZMCzlHp48JC0zRURRGMiRj X-Received: by 2002:a63:c503:: with SMTP id f3mr20252187pgd.431.1542646680576; Mon, 19 Nov 2018 08:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542646680; cv=none; d=google.com; s=arc-20160816; b=DqHgYIpAr+DkLOubbDTfhPM3JAfnc5vF/Fai3vyCY06hLPlSS/3Dw7i7p2f0odMqUP EkefNRhNwVKc1MWreitn7hzH9T7HVHWeVIwYOZXKW3AOvfVCKfNZ5mKRQxj0Favo6puT C+KFuVi+IeFD95ndOUc6UPw/NXAmTL8gkQ9bAclKpyFjaS6wiM+HGdj0HaZ8SVsxgX0Z Uh2JzyYfEky5gawI8ALAcb7uwQzNEq589scTEu/xlkDZiFnMG+QFg9k9kj6ZxJoM/fAW yo9A2tjDj3qMW2NPMvinAyeF0/LHe8rDW7843ivu+bztGW3XCAPA4szpyDUXRUCrwY5t 1KAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3G74OskS5qsY4pTK2VM6xU9IQYmTYIvdN/dwjR4XRb0=; b=SCS6uOValnJQ6Y9K0eEsf/ekiZzIgCR8h2rQDqWCYk/4U5/mCliC0VC4OZMYbYc10e mEUrcG1gIypO+z95tiTBIyXgjEKTQXITbj20IvK61riV43Stw8naW9WV0w2b8Z8OAyk7 B9/HBkwJQ8J6N3Cse9c3iN7L5XUOCnpNC6RmqeYKSur+3Cd70uWjzAfDSFqjaxyAuG4h yk3amELfO2xOWAHMonAultup43aF5RhR6c6poJAf86TJx7tKcC15cFE7p4QqFBLDSvWN wGroU9ivfKEIClAZAccMDhVNZonV1Qij/VQH9qfDGK/bpcNLVWTad39UCdmgapDgbEbc OaKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="O/hEXTC4"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11-v6si40275828plo.199.2018.11.19.08.57.45; Mon, 19 Nov 2018 08:58:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="O/hEXTC4"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404459AbeKTDVY (ORCPT + 99 others); Mon, 19 Nov 2018 22:21:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:32770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403835AbeKTDVX (ORCPT ); Mon, 19 Nov 2018 22:21:23 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EDB34206BA; Mon, 19 Nov 2018 16:57:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542646628; bh=tvqtG4pwdh5SQ2IY8hc6ud0KCL3In7aywCFLHjQlmyo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O/hEXTC4F/2nOoG0wZAfs161wHqIuHnF/r+NWSYZBP/EcQZmVgKpjF7rOWbQmbc5i bsGiFt91hBYN27tFRgeGbnPteW5q+YEg5pGvECFtRVpLzy3LVssZZsoyyKhfMbh7Tr Mphpq8c4FOONn9025c6jgnZ+V6lYYFYMawK2H/lQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alex Stanoev , Takashi Iwai Subject: [PATCH 4.4 009/160] ALSA: ca0106: Disable IZD on SB0570 DAC to fix audio pops Date: Mon, 19 Nov 2018 17:27:28 +0100 Message-Id: <20181119162631.148659191@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162630.031306128@linuxfoundation.org> References: <20181119162630.031306128@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Stanoev commit ac237c28d5ac1b241d58b1b7b4b9fa10efb22fb5 upstream. The Creative Audigy SE (SB0570) card currently exhibits an audible pop whenever playback is stopped or resumed, or during silent periods of an audio stream. Initialise the IZD bit to the 0 to eliminate these pops. The Infinite Zero Detection (IZD) feature on the DAC causes the output to be shunted to Vcap after 2048 samples of silence. This discharges the AC coupling capacitor through the output and causes the aforementioned pop/click noise. The behaviour of the IZD bit is described on page 15 of the WM8768GEDS datasheet: "With IZD=1, applying MUTE for 1024 consecutive input samples will cause all outputs to be connected directly to VCAP. This also happens if 2048 consecutive zero input samples are applied to all 6 channels, and IZD=0. It will be removed as soon as any channel receives a non-zero input". I believe the second sentence might be referring to IZD=1 instead of IZD=0 given the observed behaviour of the card. This change should make the DAC initialisation consistent with Creative's Windows driver, as this popping persists when initialising the card in Linux and soft rebooting into Windows, but is not present on a cold boot to Windows. Signed-off-by: Alex Stanoev Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/ca0106/ca0106.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/pci/ca0106/ca0106.h +++ b/sound/pci/ca0106/ca0106.h @@ -582,7 +582,7 @@ #define SPI_PL_BIT_R_R (2<<7) /* right channel = right */ #define SPI_PL_BIT_R_C (3<<7) /* right channel = (L+R)/2 */ #define SPI_IZD_REG 2 -#define SPI_IZD_BIT (1<<4) /* infinite zero detect */ +#define SPI_IZD_BIT (0<<4) /* infinite zero detect */ #define SPI_FMT_REG 3 #define SPI_FMT_BIT_RJ (0<<0) /* right justified mode */