Share

G15Daemon

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

how to merge Z-10 support?

You are viewing a single message from this topic. View all messages.

  1. djf

    2007-02-14 23:33:59 UTC

    Sorry I didn't get to do much last night. Tonight I should have more time.
    Meanwhile, I am attaching the 'lsusb -v' output for the Z-10 speakers here.

    Also, I tried commenting out all the "control endpoint" calls in g15daemon
    (all the LCD brightness setting, etc.) and that fixed the
    "did not claim interface 0 before use" errors.

    For all I know the LCD brightness isn't even settable
    (I don't have windows to try the included software).

    One issue still remaining is the usb device resets which libg15 does.
    The alsa sound driver does not like these at all, esecially if it is
    playing while the device is reset. I don't understand why they are needed.

    I have verified that if I load the uinput kernel module I can see events
    for all the buttons with xev.

    BTW, is sourceforge having svn issues or has nothing really changed in the
    g15tools / g15daemon repositories in 12 days?

    I would rather post a patch against the new libg15 code you mentioned than
    what's there now.

    Bus 003 Device 003: ID 046d:0a07 Logitech, Inc.
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.10
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 8
    idVendor 0x046d Logitech, Inc.
    idProduct 0x0a07
    bcdDevice 0.1e
    iManufacturer 1 Logitech
    iProduct 2 Z-10 USB Speaker
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 219
    bNumInterfaces 4
    bConfigurationValue 1
    iConfiguration 3 G6 2006/06/21 10:55
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 0
    bInterfaceClass 1 Audio
    bInterfaceSubClass 1 Control Device
    bInterfaceProtocol 0
    iInterface 0
    AudioControl Interface Descriptor:
    bLength 9
    bDescriptorType 36
    bDescriptorSubtype 1 (HEADER)
    bcdADC 1.00
    wTotalLength 43
    bInCollection 1
    baInterfaceNr( 0) 1
    AudioControl Interface Descriptor:
    bLength 12
    bDescriptorType 36
    bDescriptorSubtype 2 (INPUT_TERMINAL)
    bTerminalID 12
    wTerminalType 0x0101 USB Streaming
    bAssocTerminal 0
    bNrChannels 2
    wChannelConfig 0x0003
    Left Front (L)
    Right Front (R)
    iChannelNames 0
    iTerminal 0
    AudioControl Interface Descriptor:
    bLength 13
    bDescriptorType 36
    bDescriptorSubtype 6 (FEATURE_UNIT)
    bUnitID 1
    bSourceID 12
    bControlSize 2
    bmaControls( 0) 0x41
    bmaControls( 0) 0x01
    Mute
    Automatic Gain
    Bass Boost
    bmaControls( 1) 0x02
    bmaControls( 1) 0x00
    Volume
    bmaControls( 2) 0x02
    bmaControls( 2) 0x00
    Volume
    iFeature 0
    AudioControl Interface Descriptor:
    bLength 9
    bDescriptorType 36
    bDescriptorSubtype 3 (OUTPUT_TERMINAL)
    bTerminalID 20
    wTerminalType 0x0301 Speaker
    bAssocTerminal 0
    bSourceID 1
    iTerminal 0
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 1
    bAlternateSetting 0
    bNumEndpoints 0
    bInterfaceClass 1 Audio
    bInterfaceSubClass 2 Streaming
    bInterfaceProtocol 0
    iInterface 0
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 1
    bAlternateSetting 1
    bNumEndpoints 1
    bInterfaceClass 1 Audio
    bInterfaceSubClass 2 Streaming
    bInterfaceProtocol 0
    iInterface 0
    AudioStreaming Interface Descriptor:
    bLength 7
    bDescriptorType 36
    bDescriptorSubtype 1 (AS_GENERAL)
    bTerminalLink 12
    bDelay 0 frames
    wFormatTag 1 PCM
    AudioStreaming Interface Descriptor:
    bLength 14
    bDescriptorType 36
    bDescriptorSubtype 2 (FORMAT_TYPE)
    bFormatType 1 (FORMAT_TYPE_I)
    bNrChannels 1
    bSubframeSize 2
    bBitResolution 16
    bSamFreqType 0 Continuous
    tLowerSamFreq 6400
    tUpperSamFreq 48000
    Endpoint Descriptor:
    bLength 9
    bDescriptorType 5
    bEndpointAddress 0x01 EP 1 OUT
    bmAttributes 9
    Transfer Type Isochronous
    Synch Type Adaptive
    Usage Type Data
    wMaxPacketSize 0x0064 1x 100 bytes
    bInterval 1
    bRefresh 0
    bSynchAddress 0
    AudioControl Endpoint Descriptor:
    bLength 7
    bDescriptorType 37
    bDescriptorSubtype 1 (EP_GENERAL)
    bmAttributes 0x01
    Sampling Frequency
    bLockDelayUnits 2 Decoded PCM samples
    wLockDelay 1 Decoded PCM samples
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 1
    bAlternateSetting 2
    bNumEndpoints 1
    bInterfaceClass 1 Audio
    bInterfaceSubClass 2 Streaming
    bInterfaceProtocol 0
    iInterface 0
    AudioStreaming Interface Descriptor:
    bLength 7
    bDescriptorType 36
    bDescriptorSubtype 1 (AS_GENERAL)
    bTerminalLink 12
    bDelay 0 frames
    wFormatTag 1 PCM
    AudioStreaming Interface Descriptor:
    bLength 14
    bDescriptorType 36
    bDescriptorSubtype 2 (FORMAT_TYPE)
    bFormatType 1 (FORMAT_TYPE_I)
    bNrChannels 2
    bSubframeSize 2
    bBitResolution 16
    bSamFreqType 0 Continuous
    tLowerSamFreq 6400
    tUpperSamFreq 48000
    Endpoint Descriptor:
    bLength 9
    bDescriptorType 5
    bEndpointAddress 0x01 EP 1 OUT
    bmAttributes 9
    Transfer Type Isochronous
    Synch Type Adaptive
    Usage Type Data
    wMaxPacketSize 0x00c8 1x 200 bytes
    bInterval 1
    bRefresh 0
    bSynchAddress 0
    AudioControl Endpoint Descriptor:
    bLength 7
    bDescriptorType 37
    bDescriptorSubtype 1 (EP_GENERAL)
    bmAttributes 0x01
    Sampling Frequency
    bLockDelayUnits 2 Decoded PCM samples
    wLockDelay 1 Decoded PCM samples
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 2
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 3 Human Interface Devices
    bInterfaceSubClass 0 No Subclass
    bInterfaceProtocol 0 None
    iInterface 0
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.10
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 46
    Report Descriptor: (length is 46)
    Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
    (null)
    Item(Local ): Usage, data= [ 0x00 ] 0
    (null)
    Item(Main ): Collection, data= [ 0x01 ] 1
    Application
    Item(Global): Logical Minimum, data= [ 0x00 ] 0
    Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
    Item(Global): Report Size, data= [ 0x08 ] 8
    Item(Global): Report Count, data= [ 0x08 ] 8
    Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
    (null)
    Item(Local ): Usage, data= [ 0x02 ] 2
    (null)
    Item(Global): Report ID, data= [ 0x02 ] 2
    Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
    (null)
    Item(Local ): Usage, data= [ 0x03 ] 3
    (null)
    Item(Main ): Input, data= [ 0x02 ] 2
    Data Variable Absolute No_Wrap Linear
    Preferred_State No_Null_Position Non_Volatile Bitfield
    Item(Local ): Usage, data= [ 0x04 ] 4
    (null)
    Item(Global): Report Count, data= [ 0x03 ] 3
    Item(Main ): Feature, data= [ 0x02 ] 2
    Data Variable Absolute No_Wrap Linear
    Preferred_State No_Null_Position Non_Volatile Bitfield
    Item(Local ): Usage, data= [ 0x06 ] 6
    (null)
    Item(Global): Report ID, data= [ 0x03 ] 3
    Item(Global): Report Count, data= [ 0xdf 0x03 ] 991
    Item(Main ): Output, data= [ 0x02 ] 2
    Data Variable Absolute No_Wrap Linear
    Preferred_State No_Null_Position Non_Volatile Bitfield
    Item(Main ): End Collection, data=none
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x83 EP 3 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0009 1x 9 bytes
    bInterval 10
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x03 EP 3 OUT
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 1
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 3
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 3 Human Interface Devices
    bInterfaceSubClass 0 No Subclass
    bInterfaceProtocol 0 None
    iInterface 0
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.10
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 41
    Report Descriptors:
    ** UNAVAILABLE **
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x85 EP 5 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0004 1x 4 bytes
    bInterval 10
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.