[oss-devel] [PATCH] fix ossxmix breaking after USB disconnect
Hannu Savolainen
hannu at opensound.com
Sun May 11 23:34:37 EEST 2008
Yair K. wrote:
> Hi,
>
> A Ubuntu thread[1] found a very likely issue in ossxmix - when a USB device is attached and detached OSS leaves an empty device object.
> ossxmix won't load (unless -d<dev#> is used) since SNDCTL_MIX_NREXT returns -1 and "SNDCTL_MIX_NREXT: No such device or address" . This *untested* (I don't have the hardware) patch checks SNDCTL_MIXER_INFO=>enabled to fix this bug (Also, some manpage cleanups).
>
Many thanks. Will be in the hg server soon.
Maybe the SNDCTL_MIX_NREXT call should be changed to return 0 if the
device is not available. However I'm not sure if this is a good idea.
Let's see.
Best regards,
Hannu
More information about the oss-devel
mailing list