[Opensound-devel] SPDIF ENGINEINFO bug?
Brought to you by:
compusonic
|
From: Andrew E. <ae...@co...> - 2013-01-15 14:37:19
|
Hi folks, (I'm not subscribed to this list, so please keep me in CC.) We have a user on the Wine Bugzilla reporting a problem[1] with his OSS device giving the wrong values from SND_ENGINEINFO: trace:oss:AUDDRV_GetAudioEndpoint OSS audioinfo: trace:oss:AUDDRV_GetAudioEndpoint devnode: /dev/oss/oss_hdaudio0/spdout0 trace:oss:AUDDRV_GetAudioEndpoint name: HD Audio play spdifout-mix (vmix) trace:oss:AUDDRV_GetAudioEndpoint busy: 2 trace:oss:AUDDRV_GetAudioEndpoint caps: 19077500 trace:oss:AUDDRV_GetAudioEndpoint iformats: 5010 trace:oss:AUDDRV_GetAudioEndpoint oformats: 5010 trace:oss:AUDDRV_GetAudioEndpoint enabled: 1 trace:oss:AUDDRV_GetAudioEndpoint min_rate: 0 trace:oss:AUDDRV_GetAudioEndpoint max_rate: 0 trace:oss:AUDDRV_GetAudioEndpoint min_channels: 2 trace:oss:AUDDRV_GetAudioEndpoint max_channels: 0 As you can see, the reported rates and channels are obviously invalid. This looks like a bug in this device's driver. More generally, I think I'm going to add a set of default fallbacks, in case other drivers have similar bugs. I'm thinking about setting the format to 44.1kHz if both rates are 0, and stereo if both channel values are 0. Does this seem reasonable? Thanks, Andrew [1] WineHQ Bugzilla - Bug 32706 - No sound with foobar2000: Unknown error code (0x80070057) http://bugs.winehq.org/show_bug.cgi?id=32706 |