Fri, 11 Nov 2016 12:41:06 -0800Fixed bug 3484 - DSP driver does not detect /dev/dsp0
Sam Lantinga <slouken@libsdl.org> [Fri, 11 Nov 2016 12:41:06 -0800] rev 10603
Fixed bug 3484 - DSP driver does not detect /dev/dsp0

Tobias Kortkamp

using SDL 2.0.5 (and a repository checkout) on FreeBSD 11.0 I get this output
from testaudioinfo with SDL_AUDIODRIVER=dsp:

INFO: Found 8 output devices:
INFO: 0: /dev/dsp
INFO: 1: /dev/dsp1
INFO: 2: /dev/dsp2
INFO: 3: /dev/dsp3
INFO: 4: /dev/dsp4
INFO: 5: /dev/dsp5
INFO: 6: /dev/dsp6
INFO: 7: /dev/dsp7
INFO:
INFO: Found 3 capture devices:
INFO: 0: /dev/dsp
INFO: 1: /dev/dsp4
INFO: 2: /dev/dsp5
INFO:

This is /dev/sndstat:

Installed devices:
pcm0: <NVIDIA (0x0040) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0040) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0040) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0040) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC887 (Rear Analog 7.1/2.0)> (play/rec)
pcm5: <Realtek ALC887 (Front Analog)> (play/rec) default
pcm6: <Realtek ALC887 (Rear Digital)> (play)
pcm7: <Realtek ALC887 (Onboard Digital)> (play)
No devices installed from userspace.

I'd expect to find /dev/dsp0 in the output device list. It's not detected
because of a a small logic error in SDL_audiodev.c (see attached patch).

With the patch applied I get this which is what I'd expect:

INFO: Found 9 output devices:
INFO: 0: /dev/dsp
INFO: 1: /dev/dsp0
INFO: 2: /dev/dsp1
INFO: 3: /dev/dsp2
INFO: 4: /dev/dsp3
INFO: 5: /dev/dsp4
INFO: 6: /dev/dsp5
INFO: 7: /dev/dsp6
INFO: 8: /dev/dsp7

Fri, 11 Nov 2016 04:35:06 -0800Fixed whitespace and added code to support older game controller GUIDs
Sam Lantinga <slouken@libsdl.org> [Fri, 11 Nov 2016 04:35:06 -0800] rev 10602
Fixed whitespace and added code to support older game controller GUIDs

Fri, 11 Nov 2016 04:30:09 -0800Fixed whitespace
Sam Lantinga <slouken@libsdl.org> [Fri, 11 Nov 2016 04:30:09 -0800] rev 10601
Fixed whitespace

Fri, 11 Nov 2016 03:35:37 -0800Updated Windows game controller support
Sam Lantinga <slouken@libsdl.org> [Fri, 11 Nov 2016 03:35:37 -0800] rev 10600
Updated Windows game controller support

Fri, 11 Nov 2016 03:18:16 -0800Fixed signed/unsigned comparison warnings in Visual Studio
Sam Lantinga <slouken@libsdl.org> [Fri, 11 Nov 2016 03:18:16 -0800] rev 10599
Fixed signed/unsigned comparison warnings in Visual Studio

Fri, 11 Nov 2016 04:06:00 -0700Updated Mac OS X game controller support
Sam Lantinga <slouken@libsdl.org> [Fri, 11 Nov 2016 04:06:00 -0700] rev 10598
Updated Mac OS X game controller support

Thu, 10 Nov 2016 18:53:50 -0800Added USB VID/PID information to the SDL test programs
Sam Lantinga <slouken@libsdl.org> [Thu, 10 Nov 2016 18:53:50 -0800] rev 10597
Added USB VID/PID information to the SDL test programs

Thu, 10 Nov 2016 18:53:29 -0800Added Linux entries for the Logitech Dual Action game controller
Sam Lantinga <slouken@libsdl.org> [Thu, 10 Nov 2016 18:53:29 -0800] rev 10596
Added Linux entries for the Logitech Dual Action game controller

Thu, 10 Nov 2016 17:19:34 -0800Standardized the format of the SDL joystick GUID and added functions to retrieve the USB VID/PID from a joystick and game controller.
Sam Lantinga <slouken@libsdl.org> [Thu, 10 Nov 2016 17:19:34 -0800] rev 10595
Standardized the format of the SDL joystick GUID and added functions to retrieve the USB VID/PID from a joystick and game controller.

Thu, 10 Nov 2016 12:07:34 -0500wayland: fixed compiler warning about pipe2().
Ryan C. Gordon <icculus@icculus.org> [Thu, 10 Nov 2016 12:07:34 -0500] rev 10594
wayland: fixed compiler warning about pipe2().