Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1122605ioo; Sun, 22 May 2022 04:33:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg7GvppB4FEPknGci6YaoZrNZhFDzjRgSq4OQHz2ECwioI/7PhtZB+gNQOF5tvFUrZ6KnZ X-Received: by 2002:a17:90a:de01:b0:1df:cda5:8332 with SMTP id m1-20020a17090ade0100b001dfcda58332mr20327766pjv.123.1653219209448; Sun, 22 May 2022 04:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653219209; cv=none; d=google.com; s=arc-20160816; b=Oc6+xk363H3aK8ETp7Euab/0TmbpBKQcY1Vh/UqFJ6XoMLFsklHtsun9Ip5OrAMkZ4 0ojrXM6iJgoorQcztojpE3GPBEUkWZA2k5klkO+Qh21yh/J2YByuuOAMJiTqMOrCHzW9 atqhO0kDa54JRBZiRS1NdaiOrv2bWtPkS8yw0nBiyUBEWMT3N4FD3P/LXVLiehzncikQ OsGTckXYVHwUJD5rqJLPLhKjMT983VOb0Zn8SgYp3HFFQIYcHIiaXWcOedLPh546WrLA rLpPRyVEF9LBqvqYnYqrpcNFO+EkSC6cdtpVDN+d6Pk4npIBssUQH/fIENvy6KGqENSQ QkBQ== 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=1e0cBZJ+4c9MhkTY/RLvyFL4APFdawq6AOt2sFnrDHQ=; b=O9RdhWaOGu6L9ZsX/4q+fDdJm74xzVN66gM6z1DWVS5FEtE/rwCMk2Pr6GkCMDKmAz 0B0HfBDoiK86HV71bEyJoFtmLH0I5x7LObD/tnxWYlWubOF7hcUUoBznWc0lmJ9ceOe5 8zPmY9mGCEiIzShdrfor+b/dpUhMKN9QXuKBmwh/rL/wAmfzVux0y4D2mqkbhED89ebw HzsjBu4Zd02Glw+SSDgHxVmTqwPc3RHvRhk6c0vJFQfsHYC5fIn4KQLv3xjRtdX9Lvi7 PiY8XMd6WcvOqVnqZSZ+crIW0XhOWnu4/kllTvvDCXHs6HW3Knuj6vnIlQ/mMOW2PRyY wv6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=m0pD9hTC; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=u6MaCjnY; 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 q21-20020a170902c75500b001569aeb7516si5887053plq.543.2022.05.22.04.33.15; Sun, 22 May 2022 04:33:29 -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=m0pD9hTC; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=u6MaCjnY; 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 S1346678AbiETHzS (ORCPT + 99 others); Fri, 20 May 2022 03:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241980AbiETHzQ (ORCPT ); Fri, 20 May 2022 03:55:16 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D32B14A26A for ; Fri, 20 May 2022 00:55:15 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id ED2461F9A2; Fri, 20 May 2022 07:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1653033313; 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=1e0cBZJ+4c9MhkTY/RLvyFL4APFdawq6AOt2sFnrDHQ=; b=m0pD9hTCZsIiQULBDWo3pYq4wC6qo9ZbmEPr8o4k+XM5RRZo19BdHgi6/5t3LpEopb4Vrv +swlm9nFKSgLNNHb8Sk5y1wVWPTzj8ACs+cwkQEIXh1U1xetXOoDk130BC+UoAN16zJjiF 2uTnUDQQF8wVSrh3AorKye7sE91bgjQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1653033313; 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=1e0cBZJ+4c9MhkTY/RLvyFL4APFdawq6AOt2sFnrDHQ=; b=u6MaCjnY2DHQQdwG9CK4vkVsjJyXpqGl5gzaX1RMeE1MhIItLl6rFaPWYuhycLgbtDVRIZ zf1wokZNR0yyvYCg== Received: from valkyrie.site.suse.de (unknown [10.163.18.242]) by relay2.suse.de (Postfix) with ESMTP id C66902C141; Fri, 20 May 2022 07:55:13 +0000 (UTC) Date: Fri, 20 May 2022 09:55:13 +0200 Message-ID: <87o7zsr63i.wl-tiwai@suse.de> From: Takashi Iwai To: Vitaly Rodionov Cc: Jaroslav Kysela , Takashi Iwai , Mark Brown , , , , Stefan Binding Subject: Re: [PATCH v3 01/17] ALSA: hda: hda_cs_dsp_ctl: Add Library to support CS_DSP ALSA controls In-Reply-To: <87pmk8r6bl.wl-tiwai@suse.de> References: <20220519174749.15459-1-vitalyr@opensource.cirrus.com> <20220519174749.15459-2-vitalyr@opensource.cirrus.com> <87pmk8r6bl.wl-tiwai@suse.de> 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=-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 Fri, 20 May 2022 09:50:22 +0200, Takashi Iwai wrote: > > On Thu, 19 May 2022 19:47:33 +0200, > Vitaly Rodionov wrote: > On Thu, 19 May 2022 19:47:33 +0200, > Vitaly Rodionov wrote: > > > > From: Stefan Binding > > > > The cs35l41 part contains a DSP which is able to run firmware. > > The cs_dsp library can be used to control the DSP. > > These controls can be exposed to userspace using ALSA controls. > > This library adds apis to be able to interface between > > cs_dsp and hda drivers and expose the relevant controls as > > ALSA controls. > > > > The apis to add and remove the controls start new threads when > > adding/removing controls since it is possible that setting an ALSA > > control would end up calling this api, which would then deadlock. > > Well, I still don't understand why the addition/deletion itself has to > be in a work. As far as I see, it's simple calls of snd_ctl_add() and > snd_ctl_remove_id(). > > And, if the problem is that you're calling snd_ctl_add() from another > control callback, it's rather the problem of the caller's side, not > here. IOW, the async implementation should be rather in the caller > side. Also, the description about the newly added controls is missing. It looks like a really special (non-standard) control that uses TLV for other purposes, and this must be mentioned somewhere. And, I wonder what happens with alsactl store/restore with those controls. Are TLV contents properly parsed there? thanks, Takashi