ohos: Advertise the channel count the audio device reports
Every audio device claimed one to 32 channels, because the capability
range was hardcoded rather than taken from the device. A caller could
open a 32 channel stream on a stereo speaker: isFormatSupported()
returned true, QAudioSink reached ActiveState with no error, and
playback came out garbled.
The channel counts are already queried to pick the preferred format, so
cap the advertised maximum with them. The minimum stays at one because a
mono stream is upmixed, and the sample rate range stays generic because
the stream resamples.
Pick-to: 6.12
Change-Id: I3a635692dc1f00da1c23179954e0e366d3f5d9ab
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>