[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <f93d5d8c490a013cbf7d3018655ac6d73dcab4e2.1651314499.git.mchehab@kernel.org>
Date: Sat, 30 Apr 2022 11:30:59 +0100
From: Mauro Carvalho Chehab <mchehab@...nel.org>
To: Luis Chamberlain <mcgrof@...nel.org>
Cc: Mauro Carvalho Chehab <mchehab@...nel.org>,
"Daniel Vetter" <daniel@...ll.ch>,
"David Airlie" <airlied@...ux.ie>,
"Greg KH" <gregkh@...uxfoundation.org>,
"Jaroslav Kysela" <perex@...ex.cz>,
"Kai Vehmanen" <kai.vehmanen@...el.com>,
"Lucas De Marchi" <lucas.demarchi@...el.com>,
"Pierre-Louis Bossart" <pierre-louis.bossart@...el.com>,
"Takashi Iwai" <tiwai@...e.com>, alsa-devel@...a-project.org,
dri-devel@...ts.freedesktop.org, intel-gfx@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, linux-modules@...r.kernel.org,
mauro.chehab@...ux.intel.com
Subject: [PATCH v2 2/2] ALSA: hda - identify when audio is provided by a video driver
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.
Signed-off-by: Mauro Carvalho Chehab <mchehab@...nel.org>
---
See [PATCH v2 0/2] at: https://lore.kernel.org/all/cover.1651314499.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..30e130457272 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(acomp->ops->owner, dev->driver->owner)) {
ret = -ENODEV;
goto out_unbind;
}
--
2.35.1
Powered by blists - more mailing lists