Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp118050ybm; Tue, 26 May 2020 12:13:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM/OsPL8WXqXASeLVf7u4DkCZmQMFGtsbRFKOGC+sWfcBk36om9f0ITzKYEF1IHdxMprti X-Received: by 2002:a50:f057:: with SMTP id u23mr20815740edl.238.1590520396375; Tue, 26 May 2020 12:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590520396; cv=none; d=google.com; s=arc-20160816; b=aW53XzybhczpaUdGA7DgOY0kU8EBfsq0OEj0oBBORRSVQZsHO+2KciMMSmR+kTQMH8 zBpM6wdHdZmw74z5wNehVwG+6K1/IySTNZmeUjCPKv5LWiPQEckm+nfP8JbrXO/W9vwT 552RUsyCWuVZPjTNBKYEieR2kVKbGNSu89K0Mi2C3mFdMLHGNqBtNxIKcze840Dk7ftf OGLedPFEv8b9P+JA1kAbfOWfvTt4mp1jk/OvBTMx9ipfLuSQiky77Z4SED3Netmlp+NV Q0iJAlNe2+bvjhZN7Gq+YNkw0J/pYAk62ye0HFqBJZg9BW7NXLFtzUjxAkX23Y6jKy2m J1ZA== 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=wxEz/PfyyR6XRrUXWWuitJLQINe8wQt4sM7ZiRjUB6M=; b=bMf1tyBHsV6NEjyGTSdrVotCOz5Dmfs9EHpTGwf7NYcKkNkPOZpPMFNBOE872CCVg7 iJybzrxBXm+wkP0WgPiIKRsG7FePjs3zc1GoWkyKEUXFEVPL20Iq7YAVs2H691qWL0zV GGNcABxLjEKqyjtDP3EaLuSzZaZZkrRqQvGbO5ydd2V6iNeFESnuD8DHcA267HXaIlEk TgwlmH2H/6dJ+cM+gkwfBa0gKZM138wvvDgoA4OEsgz4qtHsPXubfgATv5T1Dspf7uPx fQIIKWHIsAv3AbzMBrPIbJ8OZsWPuFxNSQL2xviZg/qpSKu8i121oQCK6P5Rzufbvhqw sNgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="m/T9gWjB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si412932ejl.473.2020.05.26.12.12.52; Tue, 26 May 2020 12:13:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="m/T9gWjB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391790AbgEZTI2 (ORCPT + 99 others); Tue, 26 May 2020 15:08:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:37312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391420AbgEZTIX (ORCPT ); Tue, 26 May 2020 15:08:23 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 BA41020873; Tue, 26 May 2020 19:08:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590520102; bh=SwPBKPascMarW9xK6m+E0dQhiQ9eTDbvjwD5JhgRH/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m/T9gWjBaiC5/mTRg/ZCDG9TtW4Ms20UsyE1kAoS1KGaeIkYxUtDQIV7w8iiCmBl0 Sp9POmcg8DGIjdloonyn2xcmKQrNt2bzBaLf2DRazZpKgWni5zV/20Cq5KKPSmLsrA ZHLW1HaZ92eKGQWhA0qOKpfjMPtm3a4vp/UQml30= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Scott Bahling , Takashi Iwai Subject: [PATCH 5.4 058/111] ALSA: iec1712: Initialize STDSP24 properly when using the model=staudio option Date: Tue, 26 May 2020 20:53:16 +0200 Message-Id: <20200526183938.349107603@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200526183932.245016380@linuxfoundation.org> References: <20200526183932.245016380@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Scott Bahling commit b0cb099062b0c18246c3a20caaab4c0afc303255 upstream. The ST Audio ADCIII is an STDSP24 card plus extension box. With commit e8a91ae18bdc ("ALSA: ice1712: Add support for STAudio ADCIII") we enabled the ADCIII ports using the model=staudio option but forgot this part to ensure the STDSP24 card is initialized properly. Fixes: e8a91ae18bdc ("ALSA: ice1712: Add support for STAudio ADCIII") Signed-off-by: Scott Bahling Cc: BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1048934 Link: https://lore.kernel.org/r/20200518175728.28766-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/ice1712/ice1712.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c @@ -2360,7 +2360,8 @@ static int snd_ice1712_chip_init(struct pci_write_config_byte(ice->pci, 0x61, ice->eeprom.data[ICE_EEP1_ACLINK]); pci_write_config_byte(ice->pci, 0x62, ice->eeprom.data[ICE_EEP1_I2SID]); pci_write_config_byte(ice->pci, 0x63, ice->eeprom.data[ICE_EEP1_SPDIF]); - if (ice->eeprom.subvendor != ICE1712_SUBDEVICE_STDSP24) { + if (ice->eeprom.subvendor != ICE1712_SUBDEVICE_STDSP24 && + ice->eeprom.subvendor != ICE1712_SUBDEVICE_STAUDIO_ADCIII) { ice->gpio.write_mask = ice->eeprom.gpiomask; ice->gpio.direction = ice->eeprom.gpiodir; snd_ice1712_write(ice, ICE1712_IREG_GPIO_WRITE_MASK,