Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp120231iob; Thu, 12 May 2022 20:21:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYKstfFnRpA12tGxQ7YzfRtp0nxlJjn11HI1vqNsNN76hHAUEV6L677mjiOmDHcZYPHl/o X-Received: by 2002:a17:906:19c3:b0:6ec:c7b:ed28 with SMTP id h3-20020a17090619c300b006ec0c7bed28mr2458248ejd.612.1652412103875; Thu, 12 May 2022 20:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652412103; cv=none; d=google.com; s=arc-20160816; b=R17kj5PTL+bm+MhVw/MVPPupgJvrLPtHNkxgxY4nMet+xW85h4G8bpp7+c6c8AgzgW XmYSbCA6ftLht+uPJDsazYXd1jTfvMLcwcHLCYJ1DbZJg68/55b9c2DQL8PdGtGi+d/6 xhEwgchCTNE429prs298Ob7+6MYaSDPGRv5BnHfFwekkEY8xuKP2hmQAayfyWsVx9dMe 0S9YS0YllMmtVglT8yZDQ/vBOaYKQouSV4dwHyNP38azzl3bM6jOp+5GAt6u4QkCL8xt 0e0dbxxduHmqeyL6tAhpgBntGiAe514xFea6HxoJ2vN9Wtx0nILfNwwEHtZdGWwFwCam 77Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=okDasmSIedZIfDNVfGzL/C0tlLQxT7cXpy43/5U1qMo=; b=abLR+mzJlNGpkHPcFKP3/G7XnM4Z3/5H4r6etuiHv1J7tDFg2w0vag/fe9a2kTe5+n QcEwPkb1vvPunXaF5W0RzYkHh7/yrIGCmbKDidVtbS7IQK8jZAqer48POKhWK7T8wIMx ol/uTFFDtQvgD6qMWOT+TjfyMYlP12YaOX35NqTrIViRf5pU79/issADp5N+/yAcX+Vg 6KOdtgLBDv3XDXdDHc0zN/wTXMbwlmj0O1G7v+YS2/bwAbfGLdnZj4ckBp4ZQH/yajM+ 4fGES6uRyrNaWshUlj6LxtUrx7yJ8Wt1mTSU0xLl9m0CZrDXa3uhk2ov25fcaH6zdewH diQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=QUS04llQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id re16-20020a170906d8d000b006f38614abb4si920914ejb.577.2022.05.12.20.21.17; Thu, 12 May 2022 20:21:43 -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=@ffwll.ch header.s=google header.b=QUS04llQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347229AbiEKTv0 (ORCPT + 99 others); Wed, 11 May 2022 15:51:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347295AbiEKTvN (ORCPT ); Wed, 11 May 2022 15:51:13 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E38C325C7F for ; Wed, 11 May 2022 12:51:11 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id l18so6112872ejc.7 for ; Wed, 11 May 2022 12:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=okDasmSIedZIfDNVfGzL/C0tlLQxT7cXpy43/5U1qMo=; b=QUS04llQ/TQdvF3bJLtNkYv+9Y/6CRyA1IhJj03bD1ysf9ANin3YF7pIozL2ckCVd9 OEgvjLcrm/1wDU9oB6CTsdkJp6bSY0dGxFMc0XUZpQx5vjtv+lpaWgY+z91+b2dCfgUQ oJPZmG2v8C8OYJmWR8Lmy78eHPjrvYJULiRqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=okDasmSIedZIfDNVfGzL/C0tlLQxT7cXpy43/5U1qMo=; b=mhpmvvh6lrTCrYddKlIGHx4VmmtiTyq3ISGOgm3Q+Zu9D/q7207xXHlmMxwlt03Jtr X3BwUfwc9VljmsgwdxN3wpxnEu1GDjr2HE/Qnvz3KX4MMW0GRM+ep9ICd7Aqa11+vL+2 he5Ea439jjQmQt+6aC4PbuHR9qsp2HrTJmpp0FcrslZtEs4JgX8xiKEzeIxUzMcGtHFL cwyDKmSDutkgPAwuKr31PXIrJip5MLrzD7sS7bHEPTx+5/JcuZZycgTXBPhWvYqmcUDp wwngUroEfyY4wgGn1nGXnU+h6fbakXWhL+s77Ga472fPWFZbwvbkrLk3bjUgt0vwPzdp JHsA== X-Gm-Message-State: AOAM5317hQScdblMszzwMzy+14rJnYE4jcHolwR+DCSka0Byhr6LBu4s eY6YljWBW5NFeKFbKiJoWksfKw== X-Received: by 2002:a17:906:b74b:b0:6f4:cd08:6fec with SMTP id fx11-20020a170906b74b00b006f4cd086fecmr28194512ejb.155.1652298670454; Wed, 11 May 2022 12:51:10 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id cb13-20020a0564020b6d00b0042617ba639asm1598568edb.36.2022.05.11.12.51.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 12:51:09 -0700 (PDT) Date: Wed, 11 May 2022 21:51:08 +0200 From: Daniel Vetter To: Mauro Carvalho Chehab Cc: Luis Chamberlain , Daniel Vetter , David Airlie , Greg KH , Jaroslav Kysela , Kai Vehmanen , Lucas De Marchi , Pierre-Louis Bossart , Takashi Iwai , alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, mauro.chehab@linux.intel.com, Takashi Iwai Subject: Re: [PATCH v6 4/4] ALSA: hda - identify when audio is provided by a video driver Message-ID: Mail-Followup-To: Mauro Carvalho Chehab , Luis Chamberlain , David Airlie , Greg KH , Jaroslav Kysela , Kai Vehmanen , Lucas De Marchi , Pierre-Louis Bossart , Takashi Iwai , alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, mauro.chehab@linux.intel.com, Takashi Iwai References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.10.0-8-amd64 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,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 On Mon, May 09, 2022 at 06:23:39PM +0200, Mauro Carvalho Chehab wrote: > On some devices, the hda driver needs to hook into a video driver, > in order to be able to properly access the audio hardware and/or > the power management function. > > That's the case of several snd_hda_intel devices that depends on > i915 driver. > > Ensure that a proper reference between the snd-hda driver needing > such binding is shown at /proc/modules, in order to allow userspace > to know about such binding. > > Reviewed-by: Takashi Iwai > Signed-off-by: Mauro Carvalho Chehab > --- > > See [PATCH v6 0/4] at: https://lore.kernel.org/all/cover.1652113087.git.mchehab@kernel.org/ > > sound/hda/hdac_component.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/hda/hdac_component.c b/sound/hda/hdac_component.c > index bb37e7e0bd79..7789873ddf47 100644 > --- a/sound/hda/hdac_component.c > +++ b/sound/hda/hdac_component.c > @@ -199,7 +199,7 @@ static int hdac_component_master_bind(struct device *dev) > } > > /* pin the module to avoid dynamic unbinding, but only if given */ > - if (!try_module_get(acomp->ops->owner)) { > + if (!try_module_get_owner(acomp->ops->owner, dev->driver->owner)) { I'm still a bit confused why snd-hda does this and why this wasn't put into component.c, but that's kinda a pre-existing issue and I guess could be fixed later on. It really shouldn't be anything specific to snd-hda here. Anyway I scrolled through the series, it makes a lot more sense than the intial hack to me, so on the series: Acked-by: Daniel Vetter But maybe don't count that as real review :-) Cheers, Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch