26 Jan
2021
26 Jan
'21
12:46 p.m.
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