Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2899483rdb; Fri, 22 Sep 2023 11:21:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXQMSGGc63z4rPyf0NbJKbDJfw29xkNIIsvUHaR4mNpcNz/R4sNTtKvvng3i/UYaXcqEl9 X-Received: by 2002:a05:6a20:42a4:b0:14c:446c:b188 with SMTP id o36-20020a056a2042a400b0014c446cb188mr371767pzj.37.1695406869586; Fri, 22 Sep 2023 11:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695406869; cv=none; d=google.com; s=arc-20160816; b=UuKqRgS+a3kK+VaFm6qpqLY71JLt34z+x82V5wcdGtEVBfArhPpPtkr/OGWTRdd5K/ WLcSY9wk7IuQk05aPrwKTn8ZglZGAnkJV+Ubeh0Z3dywWa307uXfzPiBLN/JcDvHGpnN pbSXJP/dT5dyTF2JHzoT28DJax8lrX5tQXkBtOJBAyJwo9Omd92hofDRHkkUqnW6YjeZ IqvQXmAPaV0AuvTlJKTfm2cfvmKQJX1bS7yv2XJa6GpFbkPuFEaKaVUjKod+w5L6+h4/ 6bX0l6PG3uKD2qgPyO+qWsG3mDLdMFtntzWoAJ+ouNqYOKeOPiHmdI2lQ1dsj/mMDOFj Nb+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=+e8d8EPK3+d0DLp3Ownkw5Gy/YEy3/TX5WBpNFkkHhs=; fh=+VautBDXUYU0oDu2/4fj1AHy5+Q1yiJM+JJnF4d0/JE=; b=J4k2/g5X6QKWh4Z3TR/wMqC4gAuqSjC+LKenLRTKpjJGVQq9BFQPmFCyUverV1Tb8i 8mFVAlPJJiyQZ4GNXJCWUmRyWDMTICHJVat4R+4/taGS/ido/7tt/iv8/XKKmlwBqmSE m0NQh/efXqVUqT3JwoQCZ6CNdbJhG2jQdwt40lm3FNkBCuReD3cD1eYN3KU784vc5uUE b7d1QkDQWs4sxUx+hAr3QJ0fUrwUiWgl3Avxyoc5A3T2A0N6RMzm/iPqciCLMvL5QjtB jgmUsOjqShAAPPzgfvDOaXWHH8ue8paQFWJ/6VAKjCzRcwM0yxwE80tMJrvH45dOXEeW cSFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="k2bw/NDz"; dkim=neutral (no key) header.i=@suse.de header.b=3keSnqGF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id z5-20020aa78885000000b00690fd7e8f85si4555702pfe.396.2023.09.22.11.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 11:21:09 -0700 (PDT) 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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="k2bw/NDz"; dkim=neutral (no key) header.i=@suse.de header.b=3keSnqGF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 82CEB8348DA0; Fri, 22 Sep 2023 07:35:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230254AbjIVOfy (ORCPT + 99 others); Fri, 22 Sep 2023 10:35:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbjIVOfw (ORCPT ); Fri, 22 Sep 2023 10:35:52 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E1F0C6 for ; Fri, 22 Sep 2023 07:35:47 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id BAEA11FEF7; Fri, 22 Sep 2023 14:35:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1695393345; 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=+e8d8EPK3+d0DLp3Ownkw5Gy/YEy3/TX5WBpNFkkHhs=; b=k2bw/NDzRNlzjlXfoDwV3zQ+0HxJ1u6oYae0ynND2XpbnAgC+RKpNCKmqwp2fwx5VUA0vD +ft3uiwAY93ePcAqMe85VNN+fAzZpYat2tG95K/f1RuqpPo6FB9EE+eefBgAiHUSRbKaJF FreAckPgto5+pZd0FZvmdxWpuw08lSU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1695393345; 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=+e8d8EPK3+d0DLp3Ownkw5Gy/YEy3/TX5WBpNFkkHhs=; b=3keSnqGF2eopnJ9IzKCWAO7qhD15ckTn/p1j3CKnAWbaWWeTAN7K3+AeLHkn6yPhLaqfy4 U84SiBiWWAl/fEAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8DD1913478; Fri, 22 Sep 2023 14:35:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /v2GIUGmDWXlAgAAMHmgww (envelope-from ); Fri, 22 Sep 2023 14:35:45 +0000 Date: Fri, 22 Sep 2023 16:35:45 +0200 Message-ID: <87a5tecm2m.wl-tiwai@suse.de> From: Takashi Iwai To: Stefan Binding Cc: Mark Brown , Jaroslav Kysela , "Takashi Iwai" , , , Subject: Re: [PATCH v1 0/2] ALSA: cs35l41: prevent old firmwares using unsupported commands In-Reply-To: <20230922142818.2021103-1-sbinding@opensource.cirrus.com> References: <20230922142818.2021103-1-sbinding@opensource.cirrus.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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: 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]); Fri, 22 Sep 2023 07:35:53 -0700 (PDT) On Fri, 22 Sep 2023 16:28:16 +0200, Stefan Binding wrote: > > Some systems use older firmware which does not support newer commands > which are used to enable external boost. For those systems, we can > workaround this by writing the registers directly. > > We can use the firmware version, stored inside cs_dsp, to determine > whether or not the command is supported. > To achieve this, it requires a cleanup in the api, to pass the cs_dsp > struct into the function. > > We can also remove the redundant boolean firmware_running from the HDA > driver, and use the equivalent state inside cs_dsp. So those are fixes needed for 6.6 kernel? Or they are something new? > This chain is based on Mark's branch, since the api change was made to > the function in sound/soc/codecs/cs35l41-lib.c. I'd need a PR from Mark before applying those, then. thanks, Takashi