Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1681578ioo; Mon, 23 May 2022 00:07:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjqHqkjJWqhjgtXB4zQdGVQZb32107itTAUDD8yzcYehlL/Zsbv97oJfUnYtuemY0NV2af X-Received: by 2002:a05:6a00:1c76:b0:510:8b76:93b5 with SMTP id s54-20020a056a001c7600b005108b7693b5mr22463441pfw.44.1653289622566; Mon, 23 May 2022 00:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653289622; cv=none; d=google.com; s=arc-20160816; b=LRpm1hjPN6PV8krt4UnrYWdJ/g8XmkmTJZXP0zj1hbzpmRfxVgN/akt+IQ990e8UwA qgTvZSqie7uw0XaODa7k0SyhqFF74Hp45wz4eLKJt0nivRiRosNauQF9vew+6/iXbRdN 6wPzov91BAGyofMnA0KIgNu9pc6CFuBcQdzc1BuOHJKzCy6LDGeXs05RfuvxjG7Br3ja hQd6PExzSj4M9og2ajgrSExL7WWTvFDwGr0vIsIZdayl4E3JGOndEh6wFYhENv6LQ/5k 8rGMzb7jj/0AUglX+xQAOlpR7IMBTdsm3hNWf1hIw+EvuJwvMeMAMzs1n8BG7VLdqu1p RiJg== 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=6aisJkQZmyWcJEYqaOIOicZJw3B1l30ihxIGmoJY4Yo=; b=Vz1dUnXl0i29engCk4XLlw2oByMu5iSUv2G/0xYtegGpz82hIA7+HRTRBtFxm4uyvB donrdGU9G72VYKBpPuNxfSiVvA1xJN/8z6VU+pOWIt7pRZ21qCeOePf6+/JQ+j0195mI qYVU7xrukz/Zn9F9VbEPFULhr/5yQ+tRkP0/uXVnEP+Vk1J/UuFsk3pF+B8SqNe2SyJF 25qIXy5/y/6egInzGtG902B4th21bl5/yz2AKFDEzSAxIz3f9Clu6n3BXZ937dhTF8E9 DPxKuUbPXkywSapdTBG1uAa3jsVL/RzG3aM+6lnhTtDXDZ+B/cLM2IeZhYHe4o+Jhzkr r+mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xCkBp2WG; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e17-20020a170902ef5100b00158d6dbbfc2si9050217plx.145.2022.05.23.00.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xCkBp2WG; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0EAA86B7C2; Sun, 22 May 2022 23:28:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346310AbiETIIX (ORCPT + 99 others); Fri, 20 May 2022 04:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235947AbiETIIT (ORCPT ); Fri, 20 May 2022 04:08:19 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A16488DDEA for ; Fri, 20 May 2022 01:08:18 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 57DAB21B90; Fri, 20 May 2022 08:08:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1653034097; 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=6aisJkQZmyWcJEYqaOIOicZJw3B1l30ihxIGmoJY4Yo=; b=xCkBp2WGW0DK9jDiTCoKo35Z1JeC3ANr8QlKto6Ea/VQl3T5Kcf+1jJeCY0906JTOqu2Mr QsxcCyBr/UvVxim1OwnhezDwOmt4KcX3JN/mwUbVbMxl5wT3TwJyAfduuxBDDe8Ikeo1Nt F3D10d1Til30mUop0ZF5Oc8/I+BtiTg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1653034097; 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=6aisJkQZmyWcJEYqaOIOicZJw3B1l30ihxIGmoJY4Yo=; b=RFDTc3FCID6ziAt/dntQrqJxWNTG5n29QEzx98MGavv6doCwmZm6VSmToVJyGz4WvJQTr8 7pcGfL0zdihXuHBA== Received: from valkyrie.site.suse.de (unknown [10.163.18.242]) by relay2.suse.de (Postfix) with ESMTP id 49F972C141; Fri, 20 May 2022 08:08:16 +0000 (UTC) Date: Fri, 20 May 2022 10:08:16 +0200 Message-ID: <87k0agr5hr.wl-tiwai@suse.de> From: Takashi Iwai To: Vitaly Rodionov Cc: Jaroslav Kysela , Takashi Iwai , Mark Brown , , , , Stefan Binding Subject: Re: [PATCH v3 16/17] ALSA: hda: cs35l41: Support Firmware switching and reloading In-Reply-To: <20220519174749.15459-17-vitalyr@opensource.cirrus.com> References: <20220519174749.15459-1-vitalyr@opensource.cirrus.com> <20220519174749.15459-17-vitalyr@opensource.cirrus.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/27 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, 19 May 2022 19:47:48 +0200, Vitaly Rodionov wrote: > > From: Stefan Binding > > This is required to support CS35L41 calibration. > > By default, speaker protection firmware will be loaded, if > available. However, different firmware is required to run > the calibration sequence, so it is necessary to add support > to be able to unload, switch and reload firmware. > > This patch adds 2 ALSA Controls for each amp: > "DSP1 Firmware Load" > "DSP1 Firmware Type" > > "DSP1 Firmware Load" can be used to unload and > load the firmware. > "DSP1 Firmware Type" can be used to switch the > target firmware to be loaded by "DSP1 Firmware Load" Hmm. This essentially means that you can execute the firmware load and the whole DSP init / removal just by changing this control element value, right? The end-effect is too strong, IMO. The control element is available to all users who can access the sound device, and any malicious program may change it randomly thousands times per second. That is, it can easily lead to some weird issue, I'm afraid. thanks, Takashi