[tuxdroid-svn] r629 - daemon/trunk/libs
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-10-17 13:06:13
|
Author: jaguarondi Date: 2007-10-17 15:06:13 +0200 (Wed, 17 Oct 2007) New Revision: 629 Modified: daemon/trunk/libs/USBDaemon_usb.c Log: * Now setting the usb configuration when opening the dongle, just in case it's not done already. Modified: daemon/trunk/libs/USBDaemon_usb.c =================================================================== --- daemon/trunk/libs/USBDaemon_usb.c 2007-10-17 10:49:32 UTC (rev 628) +++ daemon/trunk/libs/USBDaemon_usb.c 2007-10-17 13:06:13 UTC (rev 629) @@ -80,6 +80,16 @@ return NULL; } + /* Setting configuration is normally not necessary as the snd-usb-audio + * will already have that done at this point. But in case we don't have usb + * sound support, it may help to set the configuration. */ + if (usb_set_configuration(tux_hdl, 1) < 0) + { + log_debug("Couldn't set config 1: %s (%d)\n"\ + " Another module may have claimed an interface "\ + "already, see dmesg|tail.", strerror(errno), errno); + } + /* Claim device interface */ error = usb_claim_interface(tux_hdl, TUX_INTERFACE); if (error != 0) |