[PATCH v8 1/1] alsa: jack: implement software jack injection via debugfs
Kai Vehmanen
kai.vehmanen at linux.intel.com
Tue Jan 26 12:46:38 CET 2021
Hi,
I gave this v8 series another review and did some actual testing with the
patchset and looking good. Caching the hw status is a nice addition and
the new underscore-replaced names look better than the early versions.
Only some very minor comments to the code:
On Tue, 26 Jan 2021, Hui Wang wrote:
> static void snd_jack_kctl_add(struct snd_jack *jack, struct snd_jack_kctl *jack_kctl)
> {
> + jack_kctl->jack = jack;
> list_add_tail(&jack_kctl->list, &jack->kctl_list);
> + if (!strstr(jack_kctl->kctl->id.name, "Phantom"))
> + snd_jack_debugfs_add_inject_node(jack, jack_kctl);
> }
This comparison is now done even if injection is disabled at build time.
Maybe better to have this check on injection side? Or even not filter
Phantom jacks at all and leave this for user-space to tackle?
Br, Kai
More information about the Alsa-devel
mailing list