From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3B31C31E40 for ; Fri, 9 Aug 2019 07:46:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CE2962086A for ; Fri, 9 Aug 2019 07:46:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405893AbfHIHqr (ORCPT ); Fri, 9 Aug 2019 03:46:47 -0400 Received: from muru.com ([72.249.23.125]:56844 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728823AbfHIHqr (ORCPT ); Fri, 9 Aug 2019 03:46:47 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id A2FBF809F; Fri, 9 Aug 2019 07:47:13 +0000 (UTC) Date: Fri, 9 Aug 2019 00:46:43 -0700 From: Tony Lindgren To: Takashi Iwai Cc: Kuninori Morimoto , Mark Brown , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [alsa-devel] Regression in next with codec unload and snd_soc_component_get/put Message-ID: <20190809074643.GB52127@atomide.com> References: <20190809070003.GA52127@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Takashi Iwai [190809 07:25]: > On Fri, 09 Aug 2019 09:00:03 +0200, > Tony Lindgren wrote: > > > > Hi, > > > > Looks like commit 4a81e8f30d0b ("ASoC: soc-component: add > > snd_soc_component_get/put()") causes a regression where trying > > to rmmod a codec driver fails with module is in use error after > > rmmod of snd-soc-audio-graph-card for example. > > > > Any ideas what goes wrong there? > > There is an obvious typo: soc_cleanup_component() should call > snd_soc_component_module_put_when_remove() instead of *_close(). Making that change locally seems to fix it thanks. > And the module_get_upon_open boolean switch is a bit hard to > understand. Maybe using enum would be simpler there. > > > BTW, looks like the lore.kernel.org link in that commit also is > > unreachable? > > It's because alsa-devel ML isn't tracked on lore.kernel.org, > unfortunately. > > Jaroslav, I asked this already. Shall we ask lore to track alsa-devel > ML? > https://korg.wiki.kernel.org/userdoc/lore Regards, Tony