maintainer-approval requested: [Bug 211684] audio/pulseaudio: Respect hw.snd.default_unit : [Attachment 176830] Proposed patch (since 424621 revision)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Nov 9 20:58:34 UTC 2016
lightside <lightside at gmx.com> has asked gnome at FreeBSD.org for
maintainer-approval:
Bug 211684: audio/pulseaudio: Respect hw.snd.default_unit
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211684
Attachment 176830: Proposed patch (since 424621 revision)
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=176830&action=edit
--- Comment #18 from lightside <lightside at gmx.com> ---
Created attachment 176830
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=176830&action=edit
Proposed patch (since 424621 revision)
(In reply to comment #17)
> Default device parsing fails with hw.snd.verbose > 0.
Not sure what you meant about "parsing fails". The parsing algorithm was
developed in such a way, that recognizes concrete format of /dev/sndstat output
(e.g. the "default" word at the end of line). If format of output is different,
then further algorithm does nothing (as it was for "hw.snd.verbose > 0" case).
Theoretically possible to break parsing algorithm (e.g. with custom
/dev/sndstat output), I guess. But this is a possible drawback of such
approach.
Probably, you meant, that "the parsing algorithm doesn't work for
hw.snd.verbose > 0 case". Looks like, sysctl hw.snd.verbose may change format
of /dev/sndstat output. I extended parsing algorithm for "hw.snd.verbose > 0"
case.
Thanks for review.
More information about the freebsd-gnome
mailing list