Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1620114lqm; Fri, 3 May 2024 00:41:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWiGgWQaMjOFpzj/L/FtBBCCdPtayEE39sNtYWJX8fST7dA12ae9Wbpreocy0U9CMYupxao/Pv+xZ57EGkE9K/tK2YNezHkYiYmrVsd4w== X-Google-Smtp-Source: AGHT+IG0Nqg44fEUORfN/Xvdw3uIN9TPw1+z4ye9w5Nvt+r2h2tCmnnazoJ4nuhMP/vsBWspwFlj X-Received: by 2002:a05:6358:7204:b0:17f:565c:8db2 with SMTP id h4-20020a056358720400b0017f565c8db2mr1891429rwa.12.1714722118543; Fri, 03 May 2024 00:41:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714722118; cv=pass; d=google.com; s=arc-20160816; b=Jb0jdh+tZuykuOvppx6aAk0hqgz1aaBQcpybz/x1hegYJ1Q8/RQF9HMuAT8BpzlpHD 0G2bzpOrPjp8ZoeaUHETotRtaOWFChIKc7HiWn/Mg6ZPR3HRNUrhTnEfLBW1UWQbegNI ikKRVonfxu70tXBnOgAt3ORsqfAUby5GSGAzB/k4dOclgjwJVusQWwCDRlDvXMGb4RrC LW8yDlCqOz0bm7LK0IWntuiZFUmXFEpEI6XJt9yn7E6BDD5PUQb1bIKE3uny5JxgM9h/ EdZEE7fUnCQ7Y6Dm2EGW6gj+rJIf38i1IXTXelUo4SGsIWrkyOeTcmJQwhmgWZg4iu8N jckQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=gunftjrVkw4beEJHcIhpNH7D+9VWjwKFtIXJPtbrtFc=; fh=fCVl7cDtprhRSRzhj5BvRjD+9C0WCaf+eYg08DEznO8=; b=x5v2qPB26KuQSKeqwIsBzE3nHTDAnbnEWMXYMH1IrFAnPY1honsu41L+1yItN4bHya D0oIQyawFyxPXQluiMnh34JJHW4zyDmD+qMTeYjRsWFhKAjl0z4fivmObQZzUmlYNH5s Ql/RUF+xjlywEMzDjjW4gOmbB6FzP6tB5fnAQeQJlTI7kMgiIxnllBffjwYKMJmsk1Nx MXDa+T6iZIJEo06DBUAYczFFmitI3+QZsjRAJm36EIH40yUXQL+scOn5XDSx/kMbRhrt +3985AwZvvYf6LMTb9UfWOzOEYoO+GxCoXtbU2eCBaIDz8g2EAdwwuQdsd3bjA62wOFR hejQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=H2h40Ybz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=H2h40Ybz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-167330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n22-20020a637216000000b005cdf37c9c29si2474954pgc.703.2024.05.03.00.41.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 00:41:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=H2h40Ybz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=H2h40Ybz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-167330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 275BB282488 for ; Fri, 3 May 2024 07:41:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 988AC147C6A; Fri, 3 May 2024 07:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="H2h40Ybz"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="d+ngBvXO"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="H2h40Ybz"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="d+ngBvXO" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C9858465 for ; Fri, 3 May 2024 07:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714722111; cv=none; b=ZHOUzFEfYIA5aYaSNYTCyZHvLX6AKM2OnHUCmW5HbwAwccTw7Ae25YGX9hxCNUrcQnImI1rJ+y7MZBgkVHgr+X9q7Il38s0ow72y1eaJI6tPq1fnxqfemqYv8TneaqQg+qsaaXkIgJEMn49X8H/4lhO8+U7ZqRBJAPDXEA2+1m0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714722111; c=relaxed/simple; bh=0LjN+RgCM/NbA+vxmMMMADV3hC1wK1/e5glTLyBwGTA=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=Q1jbOiXtwebNJuxjM6v0zGDe9VSfsYLbPkQvRjtPOX8YFSpvtMH1mr+JAkP/rwnMCPUT8BgbVNcB1UqRAi2JYoGiXpZrDvIISchlZvbO8/M0pIs1UwToTVD6hoVovaGCvk75hbM9uKrmWADlPkToBFBsvKaC3cDg9CTARMb30wE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=H2h40Ybz; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=d+ngBvXO; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=H2h40Ybz; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=d+ngBvXO; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9866A22B7E; Fri, 3 May 2024 07:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1714722108; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gunftjrVkw4beEJHcIhpNH7D+9VWjwKFtIXJPtbrtFc=; b=H2h40Ybzwl4+ohfj8rjJQDun/VElHyL793NYk6hvRAVgx/LT3OqMrJHL+d0QZFyuAJwEyk sq4i0Jw0RzOmkwoYZB232H/1hr6XOZtp7Uf8zSyYxw1giJJv5ygWNDN0GlhrYMpxEcZmzI Twa1HG+mFEhDefmERvO8QTFeqsqF2L0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1714722108; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gunftjrVkw4beEJHcIhpNH7D+9VWjwKFtIXJPtbrtFc=; b=d+ngBvXOFGAX0KV7jt2Hy2fNRxACDNnTXmilgc9h+XBhawg87yv3cPVqOSZery7PC6Tyqm pS9HcORxzb8xmXDQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1714722108; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gunftjrVkw4beEJHcIhpNH7D+9VWjwKFtIXJPtbrtFc=; b=H2h40Ybzwl4+ohfj8rjJQDun/VElHyL793NYk6hvRAVgx/LT3OqMrJHL+d0QZFyuAJwEyk sq4i0Jw0RzOmkwoYZB232H/1hr6XOZtp7Uf8zSyYxw1giJJv5ygWNDN0GlhrYMpxEcZmzI Twa1HG+mFEhDefmERvO8QTFeqsqF2L0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1714722108; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gunftjrVkw4beEJHcIhpNH7D+9VWjwKFtIXJPtbrtFc=; b=d+ngBvXOFGAX0KV7jt2Hy2fNRxACDNnTXmilgc9h+XBhawg87yv3cPVqOSZery7PC6Tyqm pS9HcORxzb8xmXDQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 2718A139CB; Fri, 3 May 2024 07:41:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id Hyf5BzyVNGa+DAAAD6G6ig (envelope-from ); Fri, 03 May 2024 07:41:48 +0000 Date: Fri, 03 May 2024 09:42:01 +0200 Message-ID: <878r0ribp2.wl-tiwai@suse.de> From: Takashi Iwai To: Shenghao Ding Cc: , , , , , <13916275206@139.com>, , , , , , , , , , Subject: Re: [PATCH v3] ALSA: ASoc/tas2781: Fix wrong loading calibrated data sequence In-Reply-To: <20240502232450.484-1-shenghao-ding@ti.com> References: <20240502232450.484-1-shenghao-ding@ti.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Flag: NO X-Spam-Score: -1.78 X-Spam-Level: X-Spamd-Result: default: False [-1.78 / 50.00]; BAYES_HAM(-2.98)[99.92%]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TAGGED_RCPT(0.00)[]; FREEMAIL_ENVRCPT(0.00)[139.com,gmail.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[kernel.org,linux.intel.com,gmail.com,perex.cz,139.com,alsa-project.org,vger.kernel.org,intel.com,ti.com,irl.hu,fpt.com]; RCPT_COUNT_TWELVE(0.00)[17]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_DN_SOME(0.00)[] On Fri, 03 May 2024 01:24:49 +0200, Shenghao Ding wrote: > > Calibrated data will be set to default after loading DSP config params, > which will cause speaker protection work abnormally. Reload calibrated > data after loading DSP config params. > > 'Fixes: 0a0877812628 ("ASoc: tas2781: Fix spelling mistake "calibraiton" > -> "calibration"")' This usage of Fixes tag is utterly wrong: first off, drop the single quote of the whole line. Moreover, the suggested commit looks very dubious. It's merely a change to correct spelling, and this can't be the culprit of the bug itself. Please point to the right commit. > @@ -13,8 +13,8 @@ > // Author: Kevin Lu > // > > -#ifndef __TASDEVICE_DSP_H__ > -#define __TASDEVICE_DSP_H__ > +#ifndef __TAS2781_DSP_H__ > +#define __TAS2781_DSP_H__ This is unnecessary / related change, better to keep or do it in another patch. > @@ -1878,7 +1878,7 @@ int tas2781_load_calibration(void *context, char *file_name, > { > struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context; > struct tasdevice *tasdev = &(tas_priv->tasdevice[i]); > - const struct firmware *fw_entry; > + const struct firmware *fw_entry = NULL; Why is this needed? If a NULL initialization is a must (for some warning fix or whatever), do it in an individual fix patch instead. The rest changes look OK, but it's a bit hard to judge because the code has too few comments, unfortunately... thanks, Takashi