From patchwork Thu Jan 3 12:37:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Yan X-Patchwork-Id: 10747449 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8EE0791E for ; Thu, 3 Jan 2019 14:33:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C9A9212E8 for ; Thu, 3 Jan 2019 14:33:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F2D22862A; Thu, 3 Jan 2019 14:33:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RDNS_NONE autolearn=no version=3.3.1 Received: from alsa0.perex.cz (unknown [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF868212E8 for ; Thu, 3 Jan 2019 14:33:10 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9D613267BD7; Thu, 3 Jan 2019 13:37:55 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6400B267BC8; Thu, 3 Jan 2019 13:37:51 +0100 (CET) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by alsa0.perex.cz (Postfix) with ESMTP id A4AC4267BC0; Thu, 3 Jan 2019 13:37:47 +0100 (CET) Received: by mail-pl1-f193.google.com with SMTP id e5so15881909plb.5; Thu, 03 Jan 2019 04:37:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:from:to:cc:subject:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=M65/emCEEN96MvL0PUz0ALadcGEi77KgrHaf2xskel8=; b=SUx3Xts4yN2FkDMFg59js+WMU95TNne2s8AIwzzyeRvKPOcSKr+SHZVKTsbgH01PX6 +zrUq8ZJlHt/F3AwQKh4mur0rzXZC4kwSQS4fPWb4oHTxUA8Rjb3pn8SHo7d2ClsnMpL mKYdUCt+goS/qc0vIv7kJNS2NtHOKPeH9WUifyBBFJ89nmi6rxIOb6Pgd2LtrPf+Fzxo JeEqWwsMdTET9LKb+oNm6cUpCRgco3IJThxu9EAJf6lc1GaoAm/MPADUwKkndT/VgC4Z fX7gee/NTj5y3ZvhrALVkN4NUTX+Oky3m4PMTKXvLDJFdFe6Izlanz2x/oOjmHQFZs5Z IlMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:subject:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=M65/emCEEN96MvL0PUz0ALadcGEi77KgrHaf2xskel8=; b=BEr59OMXpP0z0YVxVEWKxeWtgXg1+0lj6rjcbm4CXD4Ic0Hfq073//6C6+BS6T2Mum /7qfRR1AxaFeuUFMJiliqtBGjMB8FWEK1gFjajCiMyZfBng1Qf8rs7XGnp+rM/OLztAZ nEXsJ1+ybVhjbOwB5s3uRmXC5S4BpbIBnoI1o0hM0toU3TMCVhKaXpqGvJQ+TNEJhmxm J3zEyRJmnNYdTwr5BRlcn1okbog7CR40WJ/u8P/9HdVfebFoB7kv/qh8cnFYAFBdfVmR Gosk5Os6xWSXQHTjdm5aTUn1NBCpvsI9UhKZTMJxNaZSaGYBsfczueg448L+u3fkNmtC W/uQ== X-Gm-Message-State: AJcUukdsstn+95NyTDfmEKpW75QuqPcu/nnDYKdYS7mEoJaK5c7AdV9l zirGM5Hxl2BzVN05J2mQ3aUWOdZFPLM= X-Google-Smtp-Source: ALg8bN7flh6HGg4FDW1tWBk3Q6j6z2c8FRoj/J0ydmEhRFqlCG913Mx4VHDQz7m0fqvIbz6D0iRf1g== X-Received: by 2002:a17:902:3181:: with SMTP id x1mr5747830plb.58.1546519066853; Thu, 03 Jan 2019 04:37:46 -0800 (PST) Received: from localhost.localdomain (123202047155.ctinets.com. [123.202.47.155]) by smtp.gmail.com with ESMTPSA id g28sm96378896pfd.100.2019.01.03.04.37.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Jan 2019 04:37:46 -0800 (PST) Message-ID: <5c2e021a.1c69fb81.b8dff.5bbe@mx.google.com> X-Google-Original-Message-ID: <20190103123727.21705-2-me> From: tom.ty89@gmail.com X-Google-Original-From: me To: patch@alsa-project.org Date: Thu, 3 Jan 2019 20:37:27 +0800 X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190103123727.21705-1-me> References: <20190103123727.21705-1-me> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Tom Yan Subject: [alsa-devel] [PATCH 2/2] ALSA: oxygen: initialize spdif_playback_enable to 0 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tom Yan oxygen_init() has been clearing the OXYGEN_SPDIF_OUT_ENABLE bit and initializing dac_mute to 1. Signed-off-by: Tom Yan diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c index b4ef5804212d..6a743c878415 100644 --- a/sound/pci/oxygen/oxygen_lib.c +++ b/sound/pci/oxygen/oxygen_lib.c @@ -373,7 +373,7 @@ static void oxygen_init(struct oxygen *chip) for (i = 0; i < 8; ++i) chip->dac_volume[i] = chip->model.dac_volume_min; chip->dac_mute = 1; - chip->spdif_playback_enable = 1; + chip->spdif_playback_enable = 0; chip->spdif_bits = OXYGEN_SPDIF_C | OXYGEN_SPDIF_ORIGINAL | (IEC958_AES1_CON_PCM_CODER << OXYGEN_SPDIF_CATEGORY_SHIFT); chip->spdif_pcm_bits = chip->spdif_bits;