Message ID | bb94d42d3b435a2de2a387f38124817e6b960a8a.1701906455.git.soyer@irl.hu |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4454858vqy; Wed, 6 Dec 2023 16:01:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuMchQdTea/tDjzdLFBupyRZ80+NKoMDIHq2sHpEK4q481y8TozLQuTEcglNJ5uJyeZsl2 X-Received: by 2002:a92:c8c5:0:b0:35d:8995:364 with SMTP id c5-20020a92c8c5000000b0035d89950364mr1850039ilq.56.1701907293207; Wed, 06 Dec 2023 16:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701907293; cv=none; d=google.com; s=arc-20160816; b=vIG99+PNej/Mv+LRkBgDYFzWARp128tqGWOYe1yvFfiMmX23HWzLXbDgbkxBUWbE3V NAe1rp3OYAAlg6+jC4OGD0HuwPKhFCxOxpalG9tEX0I9C/xDebPyiAumm2BE0tZeFvjD LH+9x3GtPtpO1yv/DRBnvQbfa8YgH1eZlrMTOyGLJth7dNqNytFjx4BbG4Q39lVDPgX5 sm6pDs7s35FAeWRWI16ih2FVpa/8ZXstg1L7dRIN19qqRNo17bQFFm2QGrnDjvy8KhjG fNiuBYuWtCd0UZzSGK5LrYggWSF8OhG3P7S+ufgCIQP4bbZyw44o+YLexEyP6y9YtHln vcmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jCR3o+49Hx+oHSoawZeuYOFQm3N6SDwvZ8WSa+sSvPs=; fh=zySoyVfK/7ExaDz2MWyww8poQ40q3tZak5TTvfb/Ovc=; b=D2SodK9foDfBN4DmTI+K69ntQWFALFuVfRedZQwk8LZHsrYN9alUg2/Dz4x5Z4B/dY /ikIz4tDHz9YJa22x6NiXUWam2l7oOt3SLE4wm/UhYEHxMRNLQQP+YDLKEo6y3DimsPw MbqCbepoJkXh20IF0E/aD+eJGs+6P7Ea8ghi5qsorMqwyaC/+DnU13IhGP2QG+cZagBr uxK+jN9tinej/+5JJml8R7JbVXsCQRyDxcMiwqIB03iwZ5YrN7S9Pqxqb76+lvsbuvwl L55n1Zd5gRHdgK4h3vvHs+0hSr7ZG/9XfBHckoI6d93iJImBbI66yXOc2gvY/Lhbonvq iKRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 14-20020a630f4e000000b0059779ae58a0si104403pgp.465.2023.12.06.16.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:01:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5DB0B808E64E; Wed, 6 Dec 2023 16:00:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232370AbjLGAAL (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 6 Dec 2023 19:00:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbjLGAAA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 6 Dec 2023 19:00:00 -0500 Received: from irl.hu (irl.hu [95.85.9.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9025111F for <linux-kernel@vger.kernel.org>; Wed, 6 Dec 2023 16:00:06 -0800 (PST) Received: from fedori.lan (51b690cd.dsl.pool.telekom.hu [::ffff:81.182.144.205]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 00000000000716EA.0000000065710B04.00119040; Thu, 07 Dec 2023 01:00:03 +0100 From: Gergo Koteles <soyer@irl.hu> To: Shenghao Ding <shenghao-ding@ti.com>, Kevin Lu <kevin-lu@ti.com>, Baojun Xu <baojun.xu@ti.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org> Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Gergo Koteles <soyer@irl.hu> Subject: [PATCH 04/16] ALSA: hda/tas2781: handle missing calibration data Date: Thu, 7 Dec 2023 00:59:45 +0100 Message-ID: <bb94d42d3b435a2de2a387f38124817e6b960a8a.1701906455.git.soyer@irl.hu> X-Mailer: git-send-email 2.43.0 In-Reply-To: <cover.1701906455.git.soyer@irl.hu> References: <cover.1701906455.git.soyer@irl.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mime-Autoconverted: from 8bit to 7bit by courier 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 16:00:22 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784579141530165707 X-GMAIL-MSGID: 1784579141530165707 |
Series |
ALSA: hda/tas2781: Add tas2563 support
|
|
Commit Message
Gergo Koteles
Dec. 6, 2023, 11:59 p.m. UTC
Also check the return value of the first get_variable call.
Signed-off-by: Gergo Koteles <soyer@irl.hu>
---
sound/pci/hda/tas2781_hda_i2c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index d272d3d08b29..7c286802b273 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -455,9 +455,9 @@ static int tas2781_save_calibration(struct tasdevice_priv *tas_priv) status = efi.get_variable(efi_name, &efi_guid, &attr, &tas_priv->cali_data.total_sz, tas_priv->cali_data.data); - if (status != EFI_SUCCESS) - return -EINVAL; } + if (status != EFI_SUCCESS) + return -EINVAL; tmp_val = (unsigned int *)tas_priv->cali_data.data;