Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3491602imu; Sun, 11 Nov 2018 16:18:31 -0800 (PST) X-Google-Smtp-Source: AJdET5fkBOn2vSV1ZkAVrOMFSsyUOBbaaRcI0AoFojAE3Azzx4o0IJahAQZSIR3N9mhbmITcnEQv X-Received: by 2002:a17:902:846:: with SMTP id 64-v6mr14036876plk.70.1541981910944; Sun, 11 Nov 2018 16:18:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981910; cv=none; d=google.com; s=arc-20160816; b=bo/eqcNzjf3bxZ/7+w5oOmQr0EdCulaNZZjY2PYkxqdWR17xapBYScpvheTC044C84 iC2Oa8lf6lczljRFPg8sNgGvVWAwEoq5n05UjSOa8pxjbaVkVLEaRKN6Yo5Zvc7Pf2YT sOcIoKt4rSWJSMmxApnMKYwZMIhd49nU6VScGEm6JgzoCx+TXUQ1arEJWPf9cSRUGBfW E/mE244Xdybi51+pO/0+v9GAPdJO9BPDvwAM+CGaBSfBNVmlFbh1sLl/jpBQKS3BFz5/ vgi3AIzdKmbHOg93OdIbgW6J+azH90qCRiBlVvb5iB+wWXvlu/4/5HNn6pOxR7wccAWI CBZw== 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=si/BoJNlxnp7SOL6JEMpHRoJGCx5eYo/T19e+LwBqcw=; b=PX5WH4YFkf4seUOdvs0Jjo/SJWPW1t8W+kAMSwGHE96JfMc/UKrfJmJvSqPltFoUkj 2mJYnmvw+rcVDGogNlluQu5KP4aC5D3pNAkUY7dEDDl5zalzRF59WoorJNZzcx0lGSO0 2d0ZBKn2GhuYom/koaFZGXIGgcQf/iXn/3IR1VjDWSG1b4ttDXXHCdd3h0/QLuGnXvr8 ob41pKvcIfMxq76yF4/fA+6BBCzwxA9gTSTAgv7bI+HusvcPv1ePQWG4DdOzcWwZOE/K Zcvr92sWPezbNQ7DuLKcsLoCgvDTC6xoJnwvA1sbxmDmZErG+uFcimDQHOc0szO4yl6Y b3Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LpjECphr; 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 o6-v6si15932601plh.197.2018.11.11.16.18.16; Sun, 11 Nov 2018 16:18:30 -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=LpjECphr; 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 S1730055AbeKLIRB (ORCPT + 99 others); Mon, 12 Nov 2018 03:17:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:58420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729914AbeKLIRA (ORCPT ); Mon, 12 Nov 2018 03:17:00 -0500 Received: from localhost (unknown [206.108.79.134]) (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 2356A21508; Sun, 11 Nov 2018 22:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975225; bh=c3MgmoSUF5gMUxIUl2njaIK0UuSFVaz4cUspyCz01uk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LpjECphrFWzkH3f/N+KOLsHFyUt7Tx+N+alDIQke5XSkcEYvFl4wetLiZs3gMrdH5 cU3Zk7vchqHcSNZAVgzHGxiFbzKxRQ5l8CiLaAVoy4nClulau24K3pIx9IACKpbu7V AiStqtGXkbedRylg9NGlDMlS2M6x+8i9ejTEqNlk= 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.19 039/361] ALSA: ca0106: Disable IZD on SB0570 DAC to fix audio pops Date: Sun, 11 Nov 2018 14:16:26 -0800 Message-Id: <20181111221625.229875960@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-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 */