Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3333841iob; Mon, 16 May 2022 19:46:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKFaKd3mIhinjB0HeY8Na2Te9MxtRwiGGuzRu0ijY9fMLevQuGlBGiu2heMpOUDnIS5s3G X-Received: by 2002:a17:90a:6a45:b0:1dd:11e4:b8e8 with SMTP id d5-20020a17090a6a4500b001dd11e4b8e8mr33524238pjm.89.1652755597939; Mon, 16 May 2022 19:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652755597; cv=none; d=google.com; s=arc-20160816; b=poDOdXcALJYupiGgE/j+aVLmEotLFTqliRissyGMyec9jtTCFKQNOFkPGDAypC6VED Xjcckgemxu3mhUxQkOL54SOXDC3P95dh9zLSL+Q8X+8Z2KZOHH0d/bLPNDZfGWZOwe6b dgiNwQ0NskAB8O7f+kfGrJp4let25fn/myOUkaZrsH3I4SuvCP3B0stQ494UB+MlhwJi 8OT+f6IDBiiy4iVVQ7miijbwwcSyq9yVsVQrPM3NwzX+FZ/PxkQWAgccUTpxeVXbUUbZ kpeQ69DZnylW2AH/F+5o88QmisMqGOFEjAfZBr2UAD3ZnW9Ct++yd7AQulQ2sJJAXIFQ BY+Q== 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=534KhiaZT/bBcerXIobKXc8vEsTaaY9k8kLou0IPIXc=; b=N/F6USjSW1r1MCWkhBv8edpd733PNzAaKdbYfBAiqMVqTYSiYMHQSSe7JA92rntkFJ PRcqunuBsjrkQvJkpNpky3U2PnvMUkaYdWKK9oFnz71fD7bav34eA4XR/tufP/Ol3eUx MCi78OT4IFN7kPaQupeq7pq2XvYTPIiGXminJPoHYDCUnXtQLONB8sni5n8F2T58hU+D 8rVfdYj3/Z7oT5dXGmzmeebb3AxIaVULZU/oG84P68eT59UEjSidKLBcTw5TQ/mdxbs6 t7CFRl4/2IOuOT1e+UVK1cue+rKPNys6+gg7F2K3+00tLcXV45uh35ETxtMZzDprTT9Q 8P+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ipcsQSFc; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Yryiunnf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a635702000000b003dbb16977e8si11791140pgb.47.2022.05.16.19.46.26; Mon, 16 May 2022 19:46:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ipcsQSFc; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Yryiunnf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241397AbiEPH6x (ORCPT + 99 others); Mon, 16 May 2022 03:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241379AbiEPH6m (ORCPT ); Mon, 16 May 2022 03:58:42 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B18552A73D for ; Mon, 16 May 2022 00:58:41 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 7106121E49; Mon, 16 May 2022 07:58:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1652687920; 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=534KhiaZT/bBcerXIobKXc8vEsTaaY9k8kLou0IPIXc=; b=ipcsQSFcHuianLFi7sdm7/3vXDalY9d5IfKqtaXpoDAHC1+N59RV3FsE4Yw6OEHBKRW1+C mBmNZHME7b4vRFsNjILUjDVUhYSf/jAW0bpla+tXfbOvLFORV0CgJ99fUEtS53jO8+OdQ1 3kxVfLVVxaRznjC2IGzp70s9rYmJfLY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1652687920; 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=534KhiaZT/bBcerXIobKXc8vEsTaaY9k8kLou0IPIXc=; b=Yryiunnf1vHJci2tfKLzhobLGdeQPFQYQuZE2hyIRs0Zq+EYWCgTj/imreQ0n+/dJnQbwp SVuTtr3Nv4bqLxAA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 6366F2C141; Mon, 16 May 2022 07:58:40 +0000 (UTC) Date: Mon, 16 May 2022 09:58:40 +0200 Message-ID: From: Takashi Iwai To: Vitaly Rodionov Cc: Jaroslav Kysela , Takashi Iwai , Mark Brown , , , Subject: Re: [PATCH v2 00/26] *ALSA: hda: cirrus: Add initial DSP support and firmware loading In-Reply-To: <20220509214703.4482-1-vitalyr@opensource.cirrus.com> References: <20220509214703.4482-1-vitalyr@opensource.cirrus.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (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=-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,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: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 09 May 2022 23:46:37 +0200, Vitaly Rodionov wrote: > > The CS35L41 Amplifier contains a DSP, capable of running firmware. > The firmware can run algorithms such as Speaker Protection, to ensure > that playback at high gains do not harm the speakers. > Adding support for CS35L41 firmware into the CS35L41 HDA driver also > allows us to support several extra features, such as hiberation > and interrupts. > > The chain adds support in stages: > - General fixes to improve generalization and code re-use inside > the CS35L41 HDA driver. > - Add support for interrupts into the driver, which is required > for complete support of the firmware. > - Refactor ASoC CS35L41 code which deals with firmware to allow > for code re-use inside the CS35L41 HDA driver. > - Add support for loading firmware and tuning files from file system, > and creating alsa controls to control it. > - Support firmware load paths for different hardware systems. > - Support suspend/resume in the driver when using firmware. The firmware > supports hibernation, which allows the CS35L41 to drop into a low > power mode during suspend. > - Support the ability to unload firmware, swap and reload the firmware. > This is to allow different firmware to run during calibration. > > The intended use-case is to load the firmware once on boot, and the driver > autmatically tries to load the firmware after it binds to the HDA driver. > This behaviour can be switched off using a kconfig, if desired. > > Stefan Binding (25): > ALSA: hda: cs35l41: Fix error in spi cs35l41 hda driver name > ALSA: hda: cs35l41: Set Speaker Position for CLSA0100 Laptop > ALSA: hda: cs35l41: Remove Set Channel Map api from binding > ALSA: hda: cs35l41: Add Support for Interrupts > ALSA: hda: cs35l41: Enable GPIO2 Interrupt for CLSA0100 laptops > ASoC: cs35l41: Move cs35l41_set_cspl_mbox_cmd to shared code > ASoC: cs35l41: Move cs35l41 fs errata into shared code > ASoC: cs35l41: Move cs_dsp config struct into shared code > ALSA: hda: cs35l41: Add Amp Name based on channel and index > ALSA: hda: hda_cs_dsp_ctl: Add Library to support CS_DSP ALSA controls > ALSA: hda: hda_cs_dsp_ctl: Add apis to write the controls directly > ALSA: hda: cs35l41: Save codec object inside component struct > ALSA: hda: cs35l41: Save Subsystem ID inside CS35L41 Driver > ALSA: hda: cs35l41: Support reading subsystem id from ACPI > ALSA: hda: cs35l41: Support multiple load paths for firmware > ALSA: hda: cs35l41: Support Speaker ID for laptops > ASoC: cs35l41: Move cs35l41 exit hibernate function into shared code > ASoC: cs35l41: Do not print error when waking from hibernation > ASoC: cs35l41: Add common cs35l41 enter hibernate function > ALSA: hda: cs35l41: Support Hibernation during Suspend > ALSA: hda: cs35l41: Read Speaker Calibration data from UEFI variables > ALSA: hda: hda_cs_dsp_ctl: Add fw id strings > ALSA: hda: cs35l41: Add defaulted values into dsp bypass config > sequence > ALSA: hda: cs35l41: Support Firmware switching and reloading > ALSA: hda: cs35l41: Add kernel config to disable firmware autoload > > Vitaly Rodionov (1): > ALSA: hda: cs35l41: Add initial DSP support and firmware loading Now I applied only partially from 01 to 09 out of 26 patches. Please resubmit the rest after brushing up and fixes. thanks, Takashi