On Mon, 12 Dec 2016, Martin Husemann wrote:
On Mon, Dec 12, 2016 at 02:15:12PM +0100, Manuel Bouyer wrote:Sure, we need to decide what happens when both drivers are present. Also, how does one choose to which audio adapter is spkr_synth attached ?And where to document how to disable this anyoing feature ;-)
Which feature?The behavior with both drivers built-in doesn't really affect anyone, since the default kernels for i386 and amd64 contain only the "old" spkr driver; spkr_synth is commented out, and needs to be explicitly enabled in the kernel configuration. A simple comment in the GENERIC file can take care of the "pick one or the other" requirement.
Also, that comment could easily be expanded to "if you select the spkr_synth driver, make sure you select the correct audio? device as parent".
For those architectures on which spkr_synth is enabled by default (most others), the device is explicitly attached at audio0.
+------------------+--------------------------+------------------------+ | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org | +------------------+--------------------------+------------------------+