Rearrange this code slightly to pass softcs around instead of device_t, solving a possible panic when snd_ai2s is loaded at boot time. Also change the device setup to indicate to the pcm layer that the device is MPSAFE.
Submitted by: Marco Trillo Suggestions by: Ariff Abdullah
|