Re: [PATCH v8 1/1] alsa: jack: implement software jack injection via debugfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux