Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1332557rdb; Wed, 6 Dec 2023 16:06:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6RYw+nZjWg+kyWwFbCpri8dxRq4kXYwVJJkRqC7N8NhtFDFwnZtUA6RvvRhAXzyASOzVA X-Received: by 2002:a17:90b:144:b0:286:6cd8:ef0f with SMTP id em4-20020a17090b014400b002866cd8ef0fmr4397617pjb.39.1701907583894; Wed, 06 Dec 2023 16:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701907583; cv=none; d=google.com; s=arc-20160816; b=mFUnXR441sW9pl507zaTJM64sSS/MouxOHF9W+R54+lHraDgqpOpn2o1ZVJ1GczAgt j0AVBfP836r0h0ebQDWudyEhCqGQ+d777tp4BnhfxpWoCU0LZZZuF74x2deyHKYZ1N+X JyLJdKDidPxTORbFsvmYtkBbFEQ8Mwxa9/uOqdpIHmkAVJMJcPEsC4/2FmdfPBvsGt4N FNjKsPqcIkU5ojROQYHv6N1DWE9lxkkyjNazu0+U8YfJNAESu3kftuRiX/HC0fd0w6p+ 8YHz+GD0Eux4Y6Ia0F80T//Dm1jFAa07aD885jBq3LJY8ipZ7/oDlqvJLfHO+E0+OWyD Bukw== 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=sFugFii6oaNiWGTMYoVh7airdeh83CUtDYigNac51EE=; fh=zySoyVfK/7ExaDz2MWyww8poQ40q3tZak5TTvfb/Ovc=; b=Ty/8BGPcPoELbTKmYTzla9MEbYf98HjClwfLOiL9QXp/lCUNqnhp1Xv3iLE3XWpvl6 oKEyK2Xf8E0+k4mRSRAe4ICLQTepa2vZnKgldk9bz6jzsyV6rekrC2Z5cDAjGCKfM9LZ GQtdgcyApw3FzyT5tt632YXctENTgPpz60tkJNHokQ6Ckx69BkRAsy0j1Nger/AT1PQO YtpCVIcVVGOahx2UXKEd3VmDRqFTPQzq13LWnuHWSUOkT8jkOAXRYcb41tpXfmqhKKK3 w0C6byC0VIah0M/kIsi133IOQHoyeekvrV61s3FESngDZWV3oXwoMPmMk6OhKrKGawsE kcEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id v22-20020a17090a899600b002887d884223si27634pjn.138.2023.12.06.16.06.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:06:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 6C5958083A8F; Wed, 6 Dec 2023 16:05:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231248AbjLGAE7 (ORCPT + 99 others); Wed, 6 Dec 2023 19:04:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232511AbjLGAEm (ORCPT ); Wed, 6 Dec 2023 19:04:42 -0500 Received: from irl.hu (irl.hu [95.85.9.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FAE1D5A for ; Wed, 6 Dec 2023 16:04:38 -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 00000000000716F4.0000000065710C14.001190BB; Thu, 07 Dec 2023 01:04:36 +0100 From: Gergo Koteles To: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Gergo Koteles Subject: [PATCH 11/16] ASoC: tas2781: use 0 as default prog/conf index Date: Thu, 7 Dec 2023 01:04:27 +0100 Message-ID: <88229933b7aaf0777cbe611979712e4e144b1ca1.1701906455.git.soyer@irl.hu> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 06 Dec 2023 16:05:20 -0800 (PST) Invalid indexes are not the best default values. Signed-off-by: Gergo Koteles --- sound/soc/codecs/tas2781-comlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/tas2781-comlib.c b/sound/soc/codecs/tas2781-comlib.c index f914123c7284..635f97db033b 100644 --- a/sound/soc/codecs/tas2781-comlib.c +++ b/sound/soc/codecs/tas2781-comlib.c @@ -307,8 +307,8 @@ int tasdevice_init(struct tasdevice_priv *tas_priv) goto out; } - tas_priv->cur_prog = -1; - tas_priv->cur_conf = -1; + tas_priv->cur_prog = 0; + tas_priv->cur_conf = 0; for (i = 0; i < tas_priv->ndev; i++) { tas_priv->tasdevice[i].cur_book = -1; -- 2.43.0