Reply
Thread Tools
Posts: 46 | Thanked: 4 times | Joined on Feb 2008
#51
Originally Posted by Benson View Post
Don't see anything about audio; it's detected as HID, which is not right for audio. See http://en.wikipedia.org/wiki/USB#Device_classes.
Can you lsusb with it attached?

(I wonder if something like usb_modeswitch is needed...)
Ok, here's the scoop. Looks like its a proper USB audio device after all:

Code:
Nokia-N810-50-2:/home/user# lsusb -v

Bus 001 Device 005: ID 0421:0082 Nokia Mobile Phones
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0421 Nokia Mobile Phones
  idProduct          0x0082
  bcdDevice            1.00
  iManufacturer           1 Nokia
  iProduct                2 Nokia HS-82 headset
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          337
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    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                10
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength          104
        bInCollection           2
        baInterfaceNr( 0)       1
        baInterfaceNr( 1)       2
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        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                 2
        bSourceID               8
        bControlSize            2
        bmaControls( 0)      0x01
        bmaControls( 0)      0x00
          Mute
        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             3
        wTerminalType      0x0302 Headphones
        bAssocTerminal          0
        bSourceID               2
        iTerminal               0
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             4
        wTerminalType      0x0203 Personal Microphone
        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                 5
        bSourceID               4
        bControlSize            2
        bmaControls( 0)      0x01
        bmaControls( 0)      0x00
          Mute
        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             6
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               5
        iTerminal               0
      AudioControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 7
        bSourceID               5
        bControlSize            2
        bmaControls( 0)      0x01
        bmaControls( 0)      0x00
          Mute
        bmaControls( 1)      0x02
        bmaControls( 1)      0x00
          Volume
        bmaControls( 2)      0x02
        bmaControls( 2)      0x00
          Volume
        iFeature                0
      AudioControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      4 (MIXER_UNIT)
        bUnitID                 8
        bNrInPins               2
        baSourceID( 0)          1
        baSourceID( 1)          7
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0
        bmControls         0x00
        iMixer                  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           1
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
 
Posts: 46 | Thanked: 4 times | Joined on Feb 2008
#52
Sorry for the doublepost, but its longer than the max posting limit on this board.

Continued:
Code:
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes           13
          Transfer Type            Isochronous
          Synch Type               Synchronous
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 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              0 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           1
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           3
        bBitResolution         24
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes           13
          Transfer Type            Isochronous
          Synch Type               Synchronous
          Usage Type               Data
        wMaxPacketSize     0x0120  1x 288 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              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0
      iInterface              0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      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           6
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes           13
          Transfer Type            Isochronous
          Synch Type               Synchronous
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 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              0 Decoded PCM samples
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      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           6
        bDelay                  0 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes           13
          Transfer Type            Isochronous
          Synch Type               Synchronous
          Usage Type               Data
        wMaxPacketSize     0x0060  1x 96 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              0 Decoded PCM samples
    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.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      68
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)
 
Posts: 155 | Thanked: 69 times | Joined on Apr 2008
#53
Originally Posted by Cruelkix View Post
Yeah, I thought about using a LiveCD as well. I have been meaning to set up a linux box for a while now. This is as good as an excuse as I will probably get! Good suggestion tho. If I run short on time I may give it a go.
Try Ubuntu... it is "Reader's Choice 2008" according to Linux Journal:
http://www.linuxjournal.com/article/10065

If you have a spare box to dedicate to it that's great. The newest Ubuntu also has something called "wubi" which lets you install on an existing windows box without repartitioning. There's also the free vmware player if you want to run it in a virtual machine on windows.
 
Posts: 70 | Thanked: 56 times | Joined on Dec 2007
#54
Originally Posted by rbrewer123 View Post
Try Ubuntu... it is "Reader's Choice 2008" according to Linux Journal:
http://www.linuxjournal.com/article/10065

If you have a spare box to dedicate to it that's great. The newest Ubuntu also has something called "wubi" which lets you install on an existing windows box without repartitioning. There's also the free vmware player if you want to run it in a virtual machine on windows.
And according the same article:
Favorite Linux Handheld Device

Nokia N800 (43.9%)

Honorable Mention

OpenMoko Neo (23.7%)
 
Posts: 100 | Thanked: 38 times | Joined on Apr 2008
#55
Originally Posted by rbrewer123 View Post
Try Ubuntu... it is "Reader's Choice 2008" according to Linux Journal:
http://www.linuxjournal.com/article/10065

If you have a spare box to dedicate to it that's great. The newest Ubuntu also has something called "wubi" which lets you install on an existing windows box without repartitioning. There's also the free vmware player if you want to run it in a virtual machine on windows.
I've used VMware player and have ubuntu on my vista box right now. But it doesnt seem towrk quite right in vmware player and since I am completely new to it I dont know how to get it running properly. I wanted to set up a linux box anyway, however, that "wubi" thing seems pretty neat. I have a bout 100 Gigs left on one of my drives so maybe ill give that a go!?!
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#56
Originally Posted by fanoush View Post
I get back to home I'll dig out my usb audio adapters and post sample kernel log.
OK, here is kernel log. Looks like I have one vbus error too.
Code:
[24293.617187] musb_stage0_irq 570: VBUS_ERROR in a_wait_bcon (91, <VBusValid), retry #1, port1 00000100
[24293.835937] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[24293.835937] hub 1-0:1.0: state 8 ports 1 chg 0000 evt 0000
[24293.835937] usb usb1: usb auto-resume
[24293.835937] usb usb1: finish resume
[24293.835937] hub 1-0:1.0: hub_resume
[24293.859375] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[24294.015625] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[24294.140625] usb 1-1: new full speed USB device using musb_hdrc and address 2
[24294.273437] usb 1-1: ep0 maxpacket = 8
[24294.273437] usb 1-1: skipped 11 descriptors after interface
[24294.273437] usb 1-1: skipped 2 descriptors after interface
[24294.273437] usb 1-1: skipped 1 descriptor after endpoint
[24294.273437] usb 1-1: skipped 2 descriptors after interface
[24294.273437] usb 1-1: skipped 1 descriptor after endpoint
[24294.273437] usb 1-1: skipped 2 descriptors after interface
[24294.273437] usb 1-1: skipped 1 descriptor after endpoint
[24294.273437] usb 1-1: default language 0x0409
[24294.273437] usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0
[24294.273437] usb 1-1: Product: Logitech USB Headset
[24294.273437] usb 1-1: Manufacturer: Logitech
[24294.273437] usb 1-1: device v046d p0a01 is not supported
[24294.273437] usb 1-1: uevent
[24294.273437] usb 1-1: usb_probe_device
[24294.273437] usb 1-1: configuration #1 chosen from 1 choice
[24294.273437] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[24294.273437] usb 1-1:1.0: uevent
[24294.273437] usbtest 1-1:1.0: usb_probe_interface
[24294.273437] usbtest 1-1:1.0: usb_probe_interface - got id
[24294.281250] snd-usb-audio 1-1:1.0: usb_probe_interface
[24294.281250] snd-usb-audio 1-1:1.0: usb_probe_interface - got id
[24294.304687] usb 1-1: adding 1-1:1.1 (config #1, interface 1)
[24294.304687] usb 1-1:1.1: uevent
[24294.304687] usb 1-1: adding 1-1:1.2 (config #1, interface 2)
[24294.304687] usb 1-1:1.2: uevent
[24294.304687] drivers/usb/core/inode.c: creating file '002'
[24294.304687] hub 1-0:1.0: 100mA power budget left
[24294.304687] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[24294.304687] hub 1-0:1.0: port 1 enable change, status 00000103
And card seems to be detected fine
Code:
# cat /proc/asound/cards
 0 [EAC            ]: EAC - OMAP24xx EAC
                      OMAP24xx EAC with codec TLV320AIC33
 1 [Headset        ]: USB-Audio - Logitech USB Headset
                      Logitech Logitech USB Headset at usb-musb_hdrc-1, full speed
# cat /proc/asound/pcm
01-00: USB Audio : USB Audio : playback 1 : capture 1
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2008-05-15 at 07:25.
 
Posts: 100 | Thanked: 38 times | Joined on Apr 2008
#57
[QUOTE=fanoush;177284]
Looks like I have one vbus error too.
QUOTE]

I'll take that as a good sign. I think tht just means I dont have the right drivers than? And how do I point the n810 to start using that device as opposed to the other?

This whole things seems much harder than it should be. I wish i knew what thehell i was doing haha.
 
Cptnodegard's Avatar
Posts: 170 | Thanked: 40 times | Joined on Dec 2007 @ Norway
#58
any real progress?
 
Posts: 100 | Thanked: 38 times | Joined on Apr 2008
#59
Not really. I realized that I could hook my n810 up to my car stereo system through the headphone jack and have been working on that ... Sounds good! I would still like to get the usb working tho. I'm currenty making a double din snap in custom dash for my car. I'll post some pics when im done.

Progress wise: I tried it with a powered usb hub and things just go crazy. I think i am going to hack or buy a real OTG cable (Instead of using USBcontrol) and then hope that some better USB support comes out in the near future (diablo?) while i am working on the dash of my car. If not I will get back to work on it.
 
Cptnodegard's Avatar
Posts: 170 | Thanked: 40 times | Joined on Dec 2007 @ Norway
#60
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:18.