This fixes an issue when a device has more than one playback sub-device, but only a single capture sub-device (or vice versa).
This fixes an issue when a device has more than one playback sub-device, but only a single capture sub-device (or vice versa).