Can anyone help me how to connect Logitech C525 webcam to my Nexus 10 device?
I have OTG cable, and after connect webcam none exist /dev/video0
I think linux UVC supports c525 webcam, so i don't know why not work. :crying:
Tablet rooted, latest google rom installed.
Hello igabyka
What does 'dmesg' tells us when you connect your webcam ?
LeDuke said:
Hello igabyka
What does 'dmesg' tells us when you connect your webcam ?
Click to expand...
Click to collapse
[email protected]:/ $ su
[email protected]:/ # dmesg|grep usb
<6>[ 0.000000] sclk_usbdrd30: source is mout_mpll (0), rate is 66666666
<6>[ 0.667118] usbcore: registered new interface driver usbfs
<6>[ 0.667223] usbcore: registered new interface driver hub
<6>[ 0.667362] usbcore: registered new device driver usb
<6>[ 0.987692] usbcore: registered new interface driver asix
<6>[ 0.987826] usbcore: registered new interface driver cdc_ether
<6>[ 0.987912] usbcore: registered new interface driver net1080
<6>[ 0.988046] usbcore: registered new interface driver cdc_subset
<6>[ 0.988136] usbcore: registered new interface driver zaurus
<6>[ 0.988284] usbcore: registered new interface driver cdc_ncm
<6>[ 0.997410] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[ 0.997475] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[ 0.997587] usb usb1: Product: S5P EHCI Host Controller
<6>[ 0.997650] usb usb1: Manufacturer: Linux 3.4.39-g79b81c6 ehci_hcd
<6>[ 0.997762] usb usb1: SerialNumber: s5p-ehci
<6>[ 0.998601] usb usb1: USB disconnect, device number 1
<6>[ 1.056314] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
<6>[ 1.056381] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[ 1.056493] usb usb1: Product: EXYNOS OHCI Host Controller
<6>[ 1.056556] usb usb1: Manufacturer: Linux 3.4.39-g79b81c6 ohci_hcd
<6>[ 1.056666] usb usb1: SerialNumber: exynos-ohci
<6>[ 1.057519] usb usb1: USB disconnect, device number 1
<6>[ 1.058300] usbcore: registered new interface driver usblp
<6>[ 1.058503] usbcore: registered new interface driver usb-storage
<6>[ 1.060658] gadget: android_usb ready
<6>[ 1.060722] bound driver 'android_usb'
<6>[ 1.061199] usbcore: registered new interface driver xpad
<6>[ 1.061289] usbcore: registered new interface driver usb_acecad
<6>[ 1.061424] usbcore: registered new interface driver aiptek
<6>[ 1.061557] usbcore: registered new interface driver gtco
<6>[ 1.061642] usbcore: registered new interface driver hanwang
<6>[ 1.061733] usbcore: registered new interface driver kbtab
<6>[ 1.061867] usbcore: registered new interface driver wacom
<6>[ 1.395980] usbcore: registered new interface driver usbhid
<6>[ 1.396052] usbhid: USB HID core driver
<3>[ 4.473344] android_usb: already disabled
<6>[ 4.767362] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[ 4.767448] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[ 4.767524] usb usb1: Product: S5P EHCI Host Controller
<6>[ 4.767604] usb usb1: Manufacturer: Linux 3.4.39-g79b81c6 ehci_hcd
<6>[ 4.767651] usb usb1: SerialNumber: s5p-ehci
<6>[ 4.826458] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
<6>[ 4.826545] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[ 4.826623] usb usb2: Product: EXYNOS OHCI Host Controller
<6>[ 4.826666] usb usb2: Manufacturer: Linux 3.4.39-g79b81c6 ohci_hcd
<6>[ 4.826742] usb usb2: SerialNumber: exynos-ohci
<6>[ 5.097260] usb 1-1: new high-speed USB device number 2 using s5p-ehci
<6>[ 5.494603] usb 1-1: New USB device found, idVendor=046d, idProduct=0826
<6>[ 5.494663] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=1
<6>[ 5.494743] usb 1-1: Product: HD Webcam C525
<6>[ 5.494793] usb 1-1: SerialNumber: FA21CC50
[email protected]:/ #
Related
Hi!
Usb host on my A70 IT doesn't works(or works not properly?)
Result is the same with 4 different usb flash...
PHP:
<6>request_suspend_state: wakeup (3->0) at 34543067291305 (2011-03-20 08:55:26.774108889 UTC)
<7>omapdss omapdss: regulator_enable omapdss-vdds_dsi enabled 0
<4>omapdss DPI: Could not find exact pixel clock. Requested 41575 kHz, got 41574 kHz
<6>panel_enable [lcd]
<7>usb usb1: usb auto-resume
<7>ohci-omap ohci-omap.0: resume root hub
<7>hub 1-0:1.0: hub_resume
<7>hub 1-0:1.0: port 2: status 0107 change 0000
<7>hub 1-0:1.0: state 7 ports 3 chg 0000 evt 0000
<7>usb 1-2: usb resume
<7>hub 1-0:1.0: state 7 ports 3 chg 0000 evt 0004
<7>ohci-omap ohci-omap.0: GetStatus roothub.portstatus [1] = 0x00040103 PSSC PPS PES CCS
<7>usb 1-2: finish resume
<7>ohci-omap ohci-omap.0: urb c5bc9b40 path 2 ep0in 5ec20000 cc 5 --> status -62
<7>usb 1-2: retry with reset-resume
<7>hub 1-0:1.0: state 7 ports 3 chg 0000 evt 0004
<7>ohci-omap ohci-omap.0: GetStatus roothub.portstatus [1] = 0x00100103 PRSC PPS PES CCS
<6>usb 1-2: reset full speed USB device using ohci-omap and address 2
<7>hub 1-0:1.0: state 7 ports 3 chg 0000 evt 0004
<7>ohci-omap ohci-omap.0: GetStatus roothub.portstatus [1] = 0x00100103 PRSC PPS PES CCS
<7>usb 1-2: ep0 maxpacket = 16
<4>mma7660fc_ctrl_ioctl: Set polling delay 200
<4>usb_switch_print_state: 3 ATTACHED_HOST
<4>
<4>usb_switch_print_state: 3 ATTACHED_HOST
<4>
<7>twl4030_usb twl4030_usb: regulator_enable twl4030_usb-usb1v5 enabled 0
<7>twl4030_usb twl4030_usb: regulator_enable twl4030_usb-usb1v8 enabled 0
<7>twl4030_usb twl4030_usb: regulator_enable twl4030_usb-usb3v1 enabled 0
<6>musb_hdrc: version 6.0, musb-dma, peripheral, debug=0
<7>twl4030_usb twl4030_usb: regulator_enable twl4030_usb-usb3v1 enabled 1
<7>twl4030_usb twl4030_usb: regulator_enable twl4030_usb-usb1v8 enabled 1
<7>twl4030_usb twl4030_usb: regulator_enable twl4030_usb-usb1v5 enabled 1
<6>musb_hdrc: USB Host mode controller at fa0ab000 using DMA, IRQ 92
<6>musb_hdrc musb_hdrc: MUSB HDRC host driver
<7>/mnt/flash/releases/G8A/AX08_r2.1.2/arcbuild/linux/drivers/usb/core/inode.c: creating file '002'
<6>musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
<7>usb usb2: default language 0x0409
<6>usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
<6>usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>usb usb2: Product: MUSB HDRC host driver
<6>usb usb2: Manufacturer: Linux 2.6.29-omap1 musb-hcd
<6>usb usb2: SerialNumber: musb_hdrc
<7>usb usb2: uevent
<7>usb usb2: usb_probe_device
<6>usb usb2: configuration #1 chosen from 1 choice
<7>usb usb2: adding 2-0:1.0 (config #1, interface 0)
<7>usb 2-0:1.0: uevent
<7>hub 2-0:1.0: usb_probe_interface
<7>hub 2-0:1.0: usb_probe_interface - got id
<6>hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
<7>hub 2-0:1.0: standalone hub
<7>hub 2-0:1.0: individual port power switching
<7>hub 2-0:1.0: no over-current protection
<7>hub 2-0:1.0: power on to power good time: 10ms
<7>hub 2-0:1.0: 100mA bus power budget for each child
<7>hub 2-0:1.0: local power source is good
<7>hub 2-0:1.0: enabling power on all ports
<7>/mnt/flash/releases/G8A/AX08_r2.1.2/arcbuild/linux/drivers/usb/core/inode.c: creating file '001'
<7>hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
<7>hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
<7>hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
<7>hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
<6>usb 2-1: new high speed USB device using musb_hdrc and address 2
<7>usb 2-1: khubd timed out on ep0in len=0/64
<7>usb 2-1: khubd timed out on ep0in len=0/64
<7>usb 2-1: khubd timed out on ep0in len=0/64
<3>usb 2-1: device descriptor read/64, error -110
<7>usb 2-1: khubd timed out on ep0in len=0/64
<7>usb 2-1: khubd timed out on ep0in len=0/64
<7>usb 2-1: khubd timed out on ep0in len=0/64
<3>usb 2-1: device descriptor read/64, error -110
<6>usb 2-1: new high speed USB device using musb_hdrc and address 3
<7>usb 2-1: khubd timed out on ep0in len=0/64
<7>usb 2-1: khubd timed out on ep0in len=0/64
<7>usb 2-1: khubd timed out on ep0in len=0/64
<3>usb 2-1: device descriptor read/64, error -110
<7>usb 2-1: khubd timed out on ep0in len=0/64
<7>usb 2-1: khubd timed out on ep0in len=0/64
<7>usb 2-1: khubd timed out on ep0in len=0/64
<3>usb 2-1: device descriptor read/64, error -110
<6>usb 2-1: new high speed USB device using musb_hdrc and address 4
...and no external drive presented
Help!!! What should I do?
Decided ...
There was no connection between contact 4 and signal ground on usb-microusb adapter.
P.S. But this adapter works properly with HP Voice Messenger ...
So I've seen plenty of topics about other phones but had a difficult time finding anything regarding the HTC legend. I've already soldered my USB to micro USB and took a blade to a micro usb charger cord.
What I'm unsure about is how to tell if I went into USB host mode or not using the micro usb input I've got. It didn't have any noticable resistor on it, this is from a wall to phone charger if that matters.
I'm using Cyanogenmod 7.0 RC2
From what it looks like there's only the solder points for that + and - wires
Picture of micro usb input: http://i42.tinypic.com/116i493.jpg
Everything in one happy picture(do not click if bad soldering makes you cry): http://i41.tinypic.com/2ykxbtu.jpg
When I connected a mouse I don't use to see if the light would come on but that wasn't promising. I removed the micro usb when the little skateboarding startup logo showed and waited for the phone to start, when I plugged in my device dmesg only showed some ALS lines, which from short searching revealed it was something regarding GSM, but nothing regarding a mouse or anything about device.
Now I'm not expecting to use a USB mouse I want to use a USB keyboard(roll-up ) I just don't have a USB keyboard right now to really test.
Thanks for your time.
I compiled the kernel ver 2.6.25 for htc legend (cyanogen 7.2 rom), applied the hack from Sven Killing, hacked a home made cable for usb host mode and tested keyboard and mouse and both work fine!
I made some changes on the kernel (Kconfig and ehci-msm7201.c / .h), if somebody need it i can upload my kernel.
my kernel dmesg:
...
<6>[ 0.260314] [DISP]mdp_probe: initialized
<6>[ 0.260986] usbcore: registered new interface driver usbfs
<6>[ 0.261322] usbcore: registered new interface driver hub
<6>[ 0.261688] usbcore: registered new device driver usb
<6>[ 0.262207] msm_i2c_probe
<6>[ 0.262542] msm_i2c_probe: clk_ctl 315, 400000 Hz
<6>[ 0.264587] Bluetooth: Core ver 2.15
<6>[ 0.264862] NET: Registered protocol family 31
<6>[ 0.265075] Bluetooth: HCI device and connection manager initialized
<6>[ 0.265441] Bluetooth: HCI socket layer initialized
<6>[ 0.265838] Switching to clocksource gp_timer
<6>[ 0.267547] NET: Registered protocol family 2
<6>[ 0.267944] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
<6>[ 0.268798] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
<6>[ 0.269531] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
<6>[ 0.270294] TCP: Hash tables configured (established 16384 bind 16384)
<6>[ 0.270507] TCP reno registered
<6>[ 0.270874] UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>[ 0.271087] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>[ 0.271697] NET: Registered protocol family 1
<6>[ 0.272155] Unpacking initramfs...
<6>[ 0.291229] Freeing initrd memory: 144K
...
<6>[ 0.692687] tun: Universal TUN/TAP device driver, 1.6
<6>[ 0.692871] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
<6>[ 0.694946] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<7>[ 0.695343] ehci_hcd: block sizes: qh 60 qtd 96 itd 160 sitd 96
<7>[ 0.695678] usb_hcd_msm7201_probe()
<7>[ 0.695861] initializing MSM7201/QSD8X50/MSM7227 USB Controller
<6>[ 0.716461] msm_hsusb msm_hsusb: Qualcomm MSM7201/QSD8X50/MSM7227 On-Chip EHCI Host Controller
<6>[ 0.716888] msm_hsusb msm_hsusb: new USB bus registered, assigned bus number 1
<7>[ 0.717132] msm_hsusb msm_hsusb: reset command 080002 (park)=0 ithresh=8 period=1024 Reset HALT
<7>[ 0.717620] msm_hsusb msm_hsusb: park 0
<7>[ 0.717834] msm_hsusb msm_hsusb: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
<6>[ 0.718261] msm_hsusb msm_hsusb: irq 47, io mem 0xa0800000
<6>[ 0.737243] hub 1-0:1.0: USB hub found
<6>[ 0.737457] hub 1-0:1.0: 1 port detected
<4>[ 0.738037] ------------[ cut here ]------------
<4>[ 0.738433] WARNING: at kernel/irq/manage.c:290 enable_irq+0x5c/0xb4()
<4>[ 0.738616] Unbalanced enable for IRQ 47
<4>[ 0.738983] Modules linked in:
<4>[ 0.739410] [<c00359e8>] (unwind_backtrace+0x0/0xf0) from [<c0072068>] (warn_slowpath_common+0x4c/0x64)
<4>[ 0.739807] [<c0072068>] (warn_slowpath_common+0x4c/0x64) from [<c0072100>] (warn_slowpath_fmt+0x2c/0x3c)
<4>[ 0.740203] [<c0072100>] (warn_slowpath_fmt+0x2c/0x3c) from [<c00aa6a4>] (enable_irq+0x5c/0xb4)
<4>[ 0.740417] [<c00aa6a4>] (enable_irq+0x5c/0xb4) from [<c0275714>] (usb_hcd_msm7201_probe+0x25c/0x30c)
<4>[ 0.740814] [<c0275714>] (usb_hcd_msm7201_probe+0x25c/0x30c) from [<c0245e44>] (platform_drv_probe+0x18/0x1c)
<4>[ 0.741210] [<c0245e44>] (platform_drv_probe+0x18/0x1c) from [<c0244fb8>] (driver_probe_device+0xa8/0x158)
<4>[ 0.741607] [<c0244fb8>] (driver_probe_device+0xa8/0x158) from [<c02450c8>] (__driver_attach+0x60/0x84)
<4>[ 0.741973] [<c02450c8>] (__driver_attach+0x60/0x84) from [<c024480c>] (bus_for_each_dev+0x48/0x84)
<4>[ 0.742370] [<c024480c>] (bus_for_each_dev+0x48/0x84) from [<c0244144>] (bus_add_driver+0x9c/0x21c)
<4>[ 0.742584] [<c0244144>] (bus_add_driver+0x9c/0x21c) from [<c0245398>] (driver_register+0xa8/0x138)
<4>[ 0.742980] [<c0245398>] (driver_register+0xa8/0x138) from [<c0019938>] (ehci_hcd_init+0xac/0x108)
<4>[ 0.743377] [<c0019938>] (ehci_hcd_init+0xac/0x108) from [<c0030384>] (do_one_initcall+0x5c/0x1b0)
<4>[ 0.743743] [<c0030384>] (do_one_initcall+0x5c/0x1b0) from [<c0008410>] (kernel_init+0xb0/0x16c)
<4>[ 0.744140] [<c0008410>] (kernel_init+0xb0/0x16c) from [<c00318a8>] (kernel_thread_exit+0x0/0x8)
<4>[ 0.744384] ---[ end trace a88e7bb8f2db6923 ]---
<6>[ 0.745025] android init
<6>[ 0.745269] android_probe pdata: c0537a70
<6>[ 0.745635] f_adb init
<6>[ 0.745819] android_register_function adb
<6>[ 0.746032] f_mass_storage init
<6>[ 0.746276] fsg_probe pdev: c0537bd8, pdata: c05383bc
<6>[ 0.746795] android_register_function usb_mass_storage
<6>[ 0.746978] f_rndis init
<6>[ 0.747314] android_register_function rndis
<6>[ 0.747650] f_accessory init
<6>[ 0.747863] android_register_function accessory
<3>[ 0.748626] msm_i2c msm_i2c.0: error, status c8 (20,E4,00)(20,F4,00)(cnt:1,pos:0)
<3>[ 0.749053] msm_i2c msm_i2c.0: Error during data xfer (-5) (20,E4,00)
<6>[ 0.856872] synaptics_ts_probe: Product Major Version 1
<6>[ 0.857421] synaptics_ts_probe: Product Minor Version 3
<6>[ 0.857940] synaptics_ts_probe: product property 2
<6>[ 0.858642] synaptics_ts_probe: device control 81
<6>[ 0.859191] synaptics_ts_probe: interrupt enable 1
<6>[ 0.877288] synaptics_ts_probe: 0xe0: 1 1 1 2 1 3 0 0
<6>[ 0.896911] synaptics_ts_probe: Sensor properties 701
<6>[ 0.976715] synaptics_ts_probe: max_x 3668, max_y 5460
<6>[ 0.976928] synaptics_ts_probe: inactive_x -11 -11, inactive_y -11 -11
<6>[ 0.977294] synaptics_ts_probe: snap_x 0-0 0-0, snap_y 0-0 0-0
<6>[ 0.977508] synaptics_ts_probe: margin_pixel_left: 0, margin_pixel_right: 0, margin_pixel_top: 0, margin_pixel_bottom: 0
<6>[ 0.977874] synaptics_ts_probe: ts_raw_width: 3646, ts_raw_height: 5438
....
<6>[ 2.079620] [KEY] GPIO Matrix Keypad Driver: Start keypad matrix for legend-keypad in interrupt mode
<6>[ 2.080291] [KEY] GPIO Input Driver: Start gpio inputs for legend-keypad in interrupt mode
<6>[ 2.081024] input: legend-keypad as /devices/virtual/input/input3
<6>[ 2.082214] input: lightsensor-level as /devices/virtual/input/input4
<6>[ 2.082977] [LS][CM3602] set_ls_kvalue: ALS calibrated als_kadc=0x6da50053
<6>[ 2.083160] [LS][CM3602] set_ls_kvalue: als_kadc=0x53, als_gadc=0xc0
<6>[ 2.083374] [LS][CM3602] ls_table: data[0] , data[0] = 0, 0
<6>[ 2.083740] [LS][CM3602] ls_table: data[1] , data[1] = 0, e
<6>[ 2.083953] [LS][CM3602] ls_table: data[2] , data[2] = 0, 21
<6>[ 2.084320] [LS][CM3602] ls_table: data[3] , data[3] = 0, 5f
<6>[ 2.084503] [LS][CM3602] ls_table: data[4] , data[4] = 0, 85
<6>[ 2.084869] [LS][CM3602] ls_table: data[5] , data[5] = 0, ab
<6>[ 2.085083] [LS][CM3602] ls_table: data[6] , data[6] = 0, d1
<6>[ 2.085449] [LS][CM3602] ls_table: data[7] , data[7] = 1, 2d
<6>[ 2.085632] [LS][CM3602] ls_table: data[8] , data[8] = 1, 73
<6>[ 2.086029] [KEY] gpio_keys_scan_keys: key 1-116, 0 (20) changed to 0
<6>[ 2.086242] [LS][CM3602] ls_table: data[9] , data[9] = 3, ff
<7>[ 2.088623] __capella_cm3602_power: Turn the capella_cm3602 power on
<6>[ 2.089141] using input dev h2w headset for key reset
<6>[ 2.089538] using input dev legend-keypad for key reset
<6>[ 2.090332] input: curcial-oj as /devices/virtual/input/input5
<6>[ 2.090881] using input dev curcial-oj for key reset
<3>[ 2.092376] curcial_oj_poweronJower status ok
<6>[ 2.140625] OpticalJoystick Device ID: 0d
<6>[ 2.143493] OJ Driver: Revision : 02
<6>[ 2.146240] OJ: driver loaded
<6>[ 2.147460] using rtc device, msm_rtc, for alarms
<6>[ 2.147857] rs30000048:00010004 rs30000048:00010004: rtc core: registered msm_rtc as rtc0
<6>[ 2.148468] AKM8973 compass driver: init
<6>[ 2.149536] input: compass as /devices/virtual/input/input6
<6>[ 2.150421] [FLT]adp1650 Led Flash driver: init
<4>[ 2.150848] [CAM]s5k4e1gx_init
<4>[ 2.151123] [CAM]__s5k4e1gx_probe
<6>[ 2.151336] [CAM]s5k4e1gx_vreg_enable camera vreg on
<3>[ 2.151672] [CAM]sensor platform_data didnt register
<3>[ 2.151885] [CAM]__s5k4e1gx_probe fail sensor power on error
<6>[ 2.152404] [CAM]sctrl.node 0
<4>[ 2.152587] [CAM]s5k4e1gx_sensor_probe()
<6>[ 2.152832] [CAM]s5k4e1gx_probe called!
<6>[ 2.203308] [CAM]s5k4e1gx_probe successed! rc = 0
<6>[ 2.203552] [CAM]s5k4e1gx s->node 0
<6>[ 2.249176] [CAM]s5k4e1gx_sensor_init(): reseting sensor.
<6>[ 2.250305] [CAM]sensor_lc_disable=0
<4>[ 2.334533] [CAM]sensor evt version : 0x10
<4>[ 2.334716] [CAM]use analog_settings_evt3
<6>[ 2.345367] s5k4e1gx_sysfs_init : kobject_create_and_add
<6>[ 2.345581] s5k4e1gx_sysfs_init : sysfs_create_file
<6>[ 2.346893] device-mapper: uevent: version 1.0.3
<6>[ 2.347534] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: [email protected]
<6>[ 2.348144] Bluetooth: HCI UART driver ver 2.2
<6>[ 2.348358] Bluetooth: HCI H4 protocol initialized
<6>[ 2.348724] Bluetooth: HCILL protocol initialized
<7>[ 2.349731] msmsdcc_platform_status_irq: 102
<6>[ 2.349945] mmc0: Slot status change detected (0 -> 1)
<4>[ 2.350402] legend_sdslot_switchvdd::vdd=00000000 sdslot_vdd=ffffffff
<6>[ 2.350769] legend_sdslot_switchvdd: Disabling SD slot power
<4>[ 2.350982] off:MCI_Power=00000000
<4>[ 2.351165] off:MCI_Power=00000000
<6>[ 2.353820] mmc0: Qualcomm MSM SDCC at 0x00000000a0500000 irq 26,102 dma 8
<6>[ 2.354003] mmc0: Platform slot type: SD
<6>[ 2.354370] mmc0: 4 bit data mode enabled
<6>[ 2.354583] mmc0: 8 bit data mode disabled
<6>[ 2.354766] mmc0: MMC clock 144000 -> 50000000 Hz, PCLK 100000000 Hz
<6>[ 2.355133] mmc0: Slot eject status = 0
<6>[ 2.355346] mmc0: Power save feature enable = 1
<6>[ 2.355712] mmc0: DM non-cached buffer at ffa4a000, dma_addr 0x25669000
<6>[ 2.355895] mmc0: DM cmd busaddr 0x25669000, cmdptr busaddr 0x25669300
<7>[ 2.356689] Registered led device: amber
<7>[ 2.357055] Registered led device: green
<7>[ 2.357360] Registered led device: button-backlight
<6>[ 2.357757] microp_led_probe: succeeded
<6>[ 2.358612] usbcore: registered new interface driver usbhid
<6>[ 2.359008] usbhid: USB HID core driver
<6>[ 2.359741] logger: created 64K log 'log_main'
<6>[ 2.360076] logger: created 256K log 'log_events'
<6>[ 2.360565] logger: created 64K log 'log_radio'
<6>[ 2.360900] logger: created 64K log 'log_system'
<6>[ 2.361511] GACT probability NOT on
<6>[ 2.361724] Mirror/redirect action on
<6>[ 2.361938] u32 classifier
<6>[ 2.362121] Actions configured
<6>[ 2.362487] Netfilter messages via NETLINK v0.30.
<6>[ 2.362792] nf_conntrack version 0.5.0 (4653 buckets, 18612 max)
<4>[ 2.363464] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
<4>[ 2.363677] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
<4>[ 2.364044] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
<6>[ 2.364654] ctnetlink v0.93: registering with nfnetlink.
<6>[ 2.365112] xt_time: kernel timezone is -0000
<6>[ 2.365661] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[ 2.366210] arp_tables: (C) 2002 David S. Miller
<6>[ 2.366485] TCP cubic registered
<6>[ 2.367309] NET: Registered protocol family 10
<6>[ 2.368255] lo: Disabled Privacy Extensions
<6>[ 2.369659] Mobile IPv6
<6>[ 2.370025] IPv6 over IPv4 tunneling driver
<6>[ 2.370910] sit0: Disabled Privacy Extensions
<6>[ 2.371887] ip6tnl0: Disabled Privacy Extensions
<6>[ 2.372406] NET: Registered protocol family 17
<6>[ 2.372650] NET: Registered protocol family 15
<6>[ 2.373229] Bluetooth: L2CAP ver 2.14
<6>[ 2.373413] Bluetooth: L2CAP socket layer initialized
<6>[ 2.373626] Bluetooth: SCO (Voice Link) ver 0.6
<6>[ 2.373992] Bluetooth: SCO socket layer initialized
<6>[ 2.374328] Bluetooth: RFCOMM TTY layer initialized
<6>[ 2.374694] Bluetooth: RFCOMM socket layer initialized
<6>[ 2.374877] Bluetooth: RFCOMM ver 1.11
<6>[ 2.375091] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
<6>[ 2.375457] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
<6>[ 2.376251] clock_late_init() disabled 20 unused clocks
<6>[ 2.376617] [Port list] init()
<6>[ 2.376892] [Port list] Virtual Address for port_list: [f8185a38]
<6>[ 2.377258] [Port list] Physical Address for port_list: [185A38]
<4>[ 2.378417] legend_wifi_init: start
<6>[ 2.379028] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
<6>[ 2.381317] rs30000048:00010004 rs30000048:00010004: setting system clock to 2012-07-25 19:15:10 UTC (1343243710)
<4>[ 2.381774] Warning: unable to open an initial console.
<6>[ 2.382202] Freeing init memory: 160K
<3>[ 2.386505] init: /init.legend.rc: 1: invalid command 'device'
<4>[ 2.447052] legend_sdslot_switchvdd::vdd=00000011 sdslot_vdd=00000000
<6>[ 2.447509] legend_sdslot_switchvdd: Setting level to 2900
<4>[ 2.452728] on:MCI_Power=00000042
<4>[ 2.458099] on:MCI_Power=00000043
<6>[ 2.508544] yaffs: dev is 32505859 name is "mtdblock3" rw
<6>[ 2.508758] yaffs: passed flags ""
<7>[ 2.509155] yaffs: Attempting MTD mount of 31.3,"mtdblock3"
<4>[ 2.546569] legend_sdslot_switchvdd::vdd=00000010 sdslot_vdd=00000011
<6>[ 2.546936] legend_sdslot_switchvdd: Setting level to 2850
<7>[ 2.692291] yaffs: restored from checkpoint
<7>[ 2.693237] yaffs_read_super: isCheckpointed 1
<6>[ 2.697631] yaffs: dev is 32505861 name is "mtdblock5" rw
<6>[ 2.698059] yaffs: passed flags ""
<7>[ 2.698272] yaffs: Attempting MTD mount of 31.5,"mtdblock5"
<4>[ 2.756988] mmc0: high speed mode but max_dtr = 50000000
<4>[ 2.757629] mmc0: host does not support reading read-only switch. assuming write-enable.
<6>[ 2.758026] mmc0: new high speed SDHC card at address 80e6
<6>[ 2.758819] mmcblk0: mmc0:80e6 SU08G 7.40 GiB
<6>[ 2.759674] mmcblk0: p1
<7>[ 2.856689] block 195 is bad
<7>[ 2.889587] block 408 is bad
<7>[ 2.995269] block 1089 is bad
<7>[ 4.499725] yaffs_read_super: isCheckpointed 0
<6>[ 4.500366] yaffs: dev is 32505860 name is "mtdblock4" rw
<6>[ 4.500579] yaffs: passed flags ""
<7>[ 4.500915] yaffs: Attempting MTD mount of 31.4,"mtdblock4"
<7>[ 4.594360] yaffs_read_super: isCheckpointed 0
<3>[ 5.087188] init: service 'console' requires console
<6>[ 5.102844] [Port list] Add port [5555]
<6>[ 5.103179] [Port list] [1] = 5555
<6>[ 5.295257] warning: `rild' uses 32-bit capabilities (legacy support in use)
<6>[ 5.380798] [SMD]SMD: ch 0 0 -> 1
<6>[ 5.381103] [SMD]SMD: ch 0 1 -> 2
<6>[ 5.389373] [SMD]SMD: ch 39 0 -> 1
<6>[ 5.389648] [SMD]SMD: ch 39 1 -> 2
<6>[ 5.389862] qmi: smd opened
<6>[ 5.390686] qmi: ctl: wds use client_id 0x01
<6>[ 5.391693] [SMD]SMD: ch 40 0 -> 1
<6>[ 5.391937] [SMD]SMD: ch 41 0 -> 1
<6>[ 5.392150] [SMD]SMD: ch 40 1 -> 2
<6>[ 5.392486] qmi: smd opened
<6>[ 5.392700] [SMD]SMD: ch 41 1 -> 2
<6>[ 5.392913] qmi: smd opened
<6>[ 5.393707] qmi: ctl: wds use client_id 0x01
<6>[ 5.393920] qmi: ctl: wds use client_id 0x01
<6>[ 6.343536] [AUD][snd.c:snd_ioctl] snd_set_device 1 1 1
<6>[ 6.344940] [AUD][snd.c:snd_rpc_thread] snd_rpc_thread() start
<6>[ 6.345306] [AUD][snd.c:snd_rpc_thread] snd: rpc_reply status 0
<6>[ 6.347076] [AUD][snd.c:snd_ioctl] snd_set_volume 256 0 5
<6>[ 6.348754] [AUD][snd.c:snd_rpc_thread] snd: rpc_reply status 0
<6>[ 12.975891] [DISP]msmfb: pan_update in state(1)
<6>[ 12.975891] [DISP]msmfb: full update starting
<6>[ 13.022674] [DISP]msmfb: full update completed
<6>[ 13.022918] [DISP]msmfb: turning on panel
<6>[ 13.023132] [DISP]lcdc_unblank: ()
<7>[ 13.023498] oled_panel_unblank type 0
<7>[ 13.023681] already unblank
<6>[ 13.158996] msm_kgsl: initilized dev=1 mmu=on
<7>[ 13.230957] [LS][CM3602] lightsensor_ioctl: get enabled status: 0
<6>[ 13.231597] [PS][CM3602] capella_cm3602_disable
<7>[ 13.231964] [PS][CM3602] capella_cm3602_disable: already disabled
<6>[ 13.232177] [PS][CM3602] capella_cm3602_disable
<7>[ 13.232360] [PS][CM3602] capella_cm3602_disable: already disabled
<2>[ 13.481384] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0000024b
<2>[ 13.481872] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0000024b
<2>[ 13.482208] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0000024b
<3>[ 13.489410] kgsl kgsl: |kgsl_ioctl_sharedmem_free| invalid gpuaddr 000000a3
<2>[ 13.496582] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0000024b
<2>[ 13.497070] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0000024b
<2>[ 13.497467] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0004924b
<3>[ 13.498870] kgsl kgsl: |kgsl_ioctl_sharedmem_free| invalid gpuaddr 000000a3
<2>[ 13.569274] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0000024b
<2>[ 13.569671] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0002724b
<3>[ 13.570648] kgsl kgsl: |kgsl_ioctl_sharedmem_free| invalid gpuaddr 000000a3
<2>[ 13.756134] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0000024b
<2>[ 13.756591] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 0000024b
<3>[ 13.756927] kgsl kgsl: |kgsl_ioctl_sharedmem_free| invalid gpuaddr 000000a3
<6>[ 20.758483] [BATT] SMEM_BATT: get_batt_info: batt_id=4, batt_vol=3704, batt_temp=347, batt_current=1, eval_current=0, level=34, charging_source=0, charging_enabled=0, full_bat=1300000, over_vchg=0 hv_enabled=0 at 20751727586 (2012-07-25 19:15:28.862563728 UTC)
<6>[ 20.759552] [BATT] SMEM_BATT: get_batt_info: batt_id=4, batt_vol=3704, batt_temp=347, batt_current=1, eval_current=0, level=34, charging_source=0, charging_enabled=0, full_bat=1300000, over_vchg=0 hv_enabled=0 at 20752795701 (2012-07-25 19:15:28.863631844 UTC)
<6>[ 20.813812] [VIB] er.ServerThread(parent:zygote): vibrates 0 msec
<6>[ 21.683471] [AUD][snd.c:snd_ioctl] snd_set_volume 256 0 4
<6>[ 21.685272] [AUD][snd.c:snd_rpc_thread] snd: rpc_reply status 0
<6>[ 22.412597] [VIB] er.ServerThread(parent:zygote): vibrates 0 msec
<6>[ 22.425964] [VIB] Thread-43(parent:zygote): vibrates 1 msec
<6>[ 22.427124] [ATS][set_vibration][successful]
<6>[ 22.427368] [VIB]vibrator_timer_func
<7>[ 22.432891] [LS][CM3602] lightsensor_ioctl: set value = 1
<6>[ 22.432922] [LS][CM3602] lightsensor_enable
<6>[ 22.436004] request_suspend_state: wakeup (3->0) at 22428485397 (2012-07-25 19:15:30.540084479 UTC)
<4>[ 22.442443] set_backlight_level:11
<6>[ 22.448455] [VIB] Thread-43(parent:zygote): vibrates 21 msec
<6>[ 22.450683] [ATS][set_vibration][successful]
<6>[ 22.469848] [VIB]vibrator_timer_func
<6>[ 22.764556] [LS][CM3602] ALS value: 0x0, level: 1 #
<6>[ 24.199127] [GSNR] Gsensor enable
<4>[ 24.610534] set_backlight_level:27
<6>[ 31.914062] [CAM]led_ril_status_value = 0
<6>[ 31.914398] phone_call_status_store: phone_call_status 0
<6>[ 31.914672] [CAM]led_ril_status_value = 0
<6>[ 31.915069] phone_call_status_store: phone_call_status 0
<6>[ 33.601135] [email protected], 4102
<6>[ 33.606445] [VIB] WindowManagerPo(parent:zygote): vibrates 0 msec
<6>[ 33.638183] [VIB] Thread-60(parent:zygote): vibrates 10 msec
<6>[ 33.639495] [ATS][set_vibration][successful]
<6>[ 33.648406] [VIB]vibrator_timer_func
<6>[ 33.668975] [VIB] Thread-60(parent:zygote): vibrates 30 msec
<6>[ 33.670318] [ATS][set_vibration][successful]
<6>[ 33.699432] [VIB]vibrator_timer_func
<6>[ 33.785430] [email protected], 3759
<6>[ 34.171966] [VIB] WindowManagerPo(parent:zygote): vibrates 0 msec
<6>[ 34.184417] [VIB] Thread-61(parent:zygote): vibrates 10 msec
<6>[ 34.185485] [ATS][set_vibration][successful]
<6>[ 34.194824] [VIB]vibrator_timer_func
<6>[ 34.215423] [VIB] Thread-61(parent:zygote): vibrates 30 msec
<6>[ 34.216613] [ATS][set_vibration][successful]
<6>[ 34.245849] [VIB]vibrator_timer_func
<6>[ 46.455596] [KEY] gpiomatrix: key 158, 2-0 (33-42) changed to 1
<6>[ 46.455993] [ATS][press_back][complete]
<6>[ 46.695861] [KEY] gpiomatrix: key 158, 2-0 (33-42) changed to 0
<6>[ 60.297607] Release 'boot-time' no_halt_lock
<7>[ 83.004089] msm_hsusb msm_hsusb: GetStatus port 1 status 8c001002 POWER sig=se0 CSC
<7>[ 83.077819] msm_hsusb msm_hsusb: GetStatus port 1 status 84001403 POWER sig=k CSC CONNECT
<6>[ 83.357788] usb 1-1: new low speed USB device using msm_hsusb and address 2
<7>[ 83.417724] msm_hsusb msm_hsusb: port 1 high speed
<7>[ 83.418640] msm_hsusb msm_hsusb: GetStatus port 1 status 84001405 POWER sig=k PE CONNECT
<6>[ 83.541931] input: USB-compliant keyboard as /devices/platform/msm_hsusb/usb1/1-1/1-1:1.0/input/input7
<7>[ 83.543029] usb 1-1: link qh8-0601/c61abca0 start 1 [1/2 us]
<6>[ 83.547912] using input dev USB-compliant keyboard for key reset
<6>[ 83.628845] generic-usb 0003:062A:0201.0001: input: USB HID v1.10 Keyboard [USB-compliant keyboard] on usb-msm_hsusb-1/input0
<6>[ 83.720245] input: USB-compliant keyboard as /devices/platform/msm_hsusb/usb1/1-1/1-1:1.1/input/input8
<7>[ 83.725402] usb 1-1: link qh8-0601/c8fdf520 start 2 [1/2 us]
<6>[ 83.725982] using input dev USB-compliant keyboard for key reset
<6>[ 83.753570] generic-usb 0003:062A:0201.0002: input: USB HID v1.10 Mouse [USB-compliant keyboard] on usb-msm_hsusb-1/input1
<6>[ 84.002807] [BATT] M2A_RPC: cable_update: USB at 83995563030 (2012-07-25 19:16:32.106887454 UTC)
<6>[ 84.003417] [BATT] htc_cable_status_update: 0 -> 1
<6>[ 84.003631] [USB] msm_hsusb_set_vbus_state: 1
<6>[ 157.127685] [KEY] gpiomatrix: key 139, 0-1 (35-41) changed to 1
<6>[ 157.346679] [KEY] gpiomatrix: key 139, 0-1 (35-41) changed to 0
<6>[ 165.024993] [KEY] gpiomatrix: key 139, 0-1 (35-41) changed to 1
<6>[ 165.180328] [KEY] gpiomatrix: key 139, 0-1 (35-41) changed to 0
<6>[ 202.730560] [KEY] gpiomatrix: key 139, 0-1 (35-41) changed to 1
<6>[ 202.885864] [KEY] gpiomatrix: key 139, 0-1 (35-41) changed to 0
I've been looking at getting external USB audio (using an external USB DAC for sound) working on my HTC One XL for a bit now, and I'm starting to hit a wall...
I've built a new custom kernel based of the base CyanogenMod one for the MSM8960. This works
I've turned on a ton of debugging + added more debugging, and compiled in the USB Audio drivers, my kernel logs now look something like:
<6>[ 192.232076] usb 1-1: new full speed USB device number 2 using msm_hsusb_host
<6>[ 192.387639] usb 1-1: New USB shizzle found, idVendor=045e, idProduct=070f
<6>[ 192.387730] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
<6>[ 192.387852] usb 1-1: Product: Microsoft LifeChat LX-3000
<7>[ 192.387913] device: '1-1': device_add
<7>[ 192.388280] bus: 'usb': add device 1-1
<7>[ 192.388402] PM: Adding info for usb:1-1
<7>[ 192.388890] bus: 'usb': driver_probe_device: matched device 1-1 with driver usb
<7>[ 192.389012] bus: 'usb': really_probe: probing driver usb with device 1-1
<7>[ 192.389073] usb 1-1: usb_probe_device
<7>[ 192.389195] usb 1-1: configuration #1 chosen from 1 choice
<7>[ 192.389256] usb 1-1: rpm_resume flags 0x4
<7>[ 192.389317] usb 1-1: rpm_resume returns 1
<7>[ 192.390599] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
<7>[ 192.390660] device: '1-1:1.0': device_add
<7>[ 192.390782] bus: 'usb': add device 1-1:1.0
<7>[ 192.390874] PM: Adding info for usb:1-1:1.0
<7>[ 192.391118] bus: 'usb': driver_probe_device: matched device 1-1:1.0 with driver snd-usb-audio
<7>[ 192.391240] bus: 'usb': really_probe: probing driver snd-usb-audio with device 1-1:1.0
<7>[ 192.391362] snd-usb-audio 1-1:1.0: usb_probe_interface
<7>[ 192.391423] snd-usb-audio 1-1:1.0: usb_probe_interface - got id
<7>[ 192.391545] usb 1-1: rpm_resume flags 0x4
<7>[ 192.391606] usb 1-1: rpm_resume returns 1
<6>[ 192.392583] 2:1:0: add audio endpoint Interface Class = 1
<6>[ 192.392644] 2:1:0: add audio endpoint Interface SubClass = 2
<6>[ 192.392736] 2:1:0: add audio endpoint Interface Class = 1
<6>[ 192.392797] 2:1:0: add audio endpoint Interface SubClass = 2
<6>[ 192.392919] 2:1:1: UAC Version 1
<6>[ 192.392980] 2:1:1: add audio endpoint 0x1
<6>[ 192.396581] 2:2:0: add audio endpoint Interface Class = 1
<6>[ 192.396673] 2:2:0: add audio endpoint Interface SubClass = 2
<6>[ 192.396734] 2:2:0: add audio endpoint Interface Class = 1
<6>[ 192.396856] 2:2:0: add audio endpoint Interface SubClass = 2
<6>[ 192.396917] 2:2:1: UAC Version 1
<6>[ 192.396978] 2:2:1: add audio endpoint 0x82
<6>[ 192.400579] [13] FU [Mic Playback Switch] ch = 1, val = 0/1/1
<3>[ 192.400640] Unable to resume device, either shutdown or probing (0,1)
<3>[ 192.400762] cannot get ctl value: req = 0x83, wValue = 0x200, wIndex = 0xd00, type = 4, error = -19
<3>[ 192.400885] 13:0: cannot get min/max values for control 2 (id 13)
<3>[ 192.400976] Unable to resume device, either shutdown or probing (0,1)
<3>[ 192.401098] cannot get ctl value: req = 0x84, wValue = 0x200, wIndex = 0xd00, type = 4, error = -19
<6>[ 192.401220] [13] FU [Mic Playback Volume] ch = 1, val = 0/1/1
<6>[ 192.401281] [9] FU [Speaker Playback Switch] ch = 1, val = 0/1/1
<3>[ 192.401403] Unable to resume device, either shutdown or probing (0,1)
<3>[ 192.401464] cannot get ctl value: req = 0x83, wValue = 0x201, wIndex = 0x900, type = 4, error = -19
<3>[ 192.401587] 9:0: cannot get min/max values for control 2 (id 9)
<3>[ 192.401648] Unable to resume device, either shutdown or probing (0,1)
<3>[ 192.401739] cannot get ctl value: req = 0x84, wValue = 0x201, wIndex = 0x900, type = 4, error = -19
<6>[ 192.401861] [9] FU [Speaker Playback Volume] ch = 2, val = 0/1/1
<6>[ 192.401922] [10] FU [Mic Capture Switch] ch = 1, val = 0/1/1
<3>[ 192.402044] Unable to resume device, either shutdown or probing (0,1)
<3>[ 192.402136] cannot get ctl value: req = 0x83, wValue = 0x200, wIndex = 0xa00, type = 4, error = -19
<3>[ 192.402258] 10:0: cannot get min/max values for control 2 (id 10)
<3>[ 192.402350] Unable to resume device, either shutdown or probing (0,1)
<3>[ 192.402441] cannot get ctl value: req = 0x84, wValue = 0x200, wIndex = 0xa00, type = 4, error = -19
<6>[ 192.402533] [10] FU [Mic Capture Volume] ch = 1, val = 0/1/1
<6>[ 192.402655] [10] FU [Auto Gain Control] ch = 1, val = 0/1/1
<7>[ 192.402746] device: 'card1': device_add
<7>[ 192.402868] PM: Adding info for No Bus:card1
<7>[ 192.403174] device: 'pcmC1D0p': device_add
<7>[ 192.403418] PM: Adding info for No BuscmC1D0p
<7>[ 192.403906] device: 'pcmC1D0c': device_add
<7>[ 192.404059] PM: Adding info for No BuscmC1D0c
<7>[ 192.404455] device: 'controlC1': device_add
<7>[ 192.404669] PM: Adding info for No Bus:controlC1
<7>[ 192.405035] driver: '1-1:1.0': driver_bound: bound to device 'snd-usb-audio'
<7>[ 192.405157] bus: 'usb': really_probe: bound device 1-1:1.0 to driver snd-usb-audio
<7>[ 192.405218] snd-usb-audio 1-1:1.0: rpm_suspend flags 0x4
<7>[ 192.405310] snd-usb-audio 1-1:1.0: rpm_suspend returns 0
<7>[ 192.405402] usb 1-1: adding 1-1:1.1 (config #1, interface 1)
<7>[ 192.405493] device: '1-1:1.1': device_add
<7>[ 192.405585] bus: 'usb': add device 1-1:1.1
<7>[ 192.405707] PM: Adding info for usb:1-1:1.1
<7>[ 192.405981] driver: '1-1:1.1': driver_bound: bound to device 'snd-usb-audio'
<7>[ 192.406104] usb 1-1: adding 1-1:1.2 (config #1, interface 2)
<7>[ 192.406165] device: '1-1:1.2': device_add
<7>[ 192.406256] bus: 'usb': add device 1-1:1.2
<7>[ 192.406378] PM: Adding info for usb:1-1:1.2
<7>[ 192.406622] driver: '1-1:1.2': driver_bound: bound to device 'snd-usb-audio'
<7>[ 192.406744] usb 1-1: adding 1-1:1.3 (config #1, interface 3)
<7>[ 192.406806] device: '1-1:1.3': device_add
<7>[ 192.406958] bus: 'usb': add device 1-1:1.3
<7>[ 192.407019] PM: Adding info for usb:1-1:1.3
<7>[ 192.408240] bus: 'usb': driver_probe_device: matched device 1-1:1.3 with driver usbhid
<7>[ 192.408362] bus: 'usb': really_probe: probing driver usbhid with device 1-1:1.3
<7>[ 192.408484] usbhid 1-1:1.3: usb_probe_interface
<7>[ 192.408545] usbhid 1-1:1.3: usb_probe_interface - got id
<7>[ 192.408667] usb 1-1: rpm_resume flags 0x4
<7>[ 192.408728] usb 1-1: rpm_resume returns 1
<7>[ 192.408850] device: '0003:045E:070F.0001': device_add
<7>[ 192.408972] bus: 'hid': add device 0003:045E:070F.0001
<7>[ 192.409034] PM: Adding info for hid:0003:045E:070F.0001
<7>[ 192.409400] bus: 'hid': driver_probe_device: matched device 0003:045E:070F.0001 with driver generic-usb
<7>[ 192.409461] bus: 'hid': really_probe: probing driver generic-usb with device 0003:045E:070F.0001
<7>[ 192.411841] usbhid 1-1:1.3: rpm_resume flags 0x5
<7>[ 192.411963] usbhid 1-1:1.3: rpm_resume returns 1
<7>[ 192.413825] device: 'input7': device_add
<7>[ 192.413978] PM: Adding info for No Bus:input7
<6>[ 192.414344] input: Microsoft LifeChat LX-3000 as /devices/platform/msm_hsusb_host/usb1/1-1/1-1:1.3/input/input7
<7>[ 192.414466] device: 'event7': device_add
<7>[ 192.414771] PM: Adding info for No Bus:event7
<6>[ 192.415077] generic-usb 0003:045E:070F.0001: input: USB HID v1.00 Device [Microsoft LifeChat LX-3000 ] on usb-msm_hsusb_host-1/input3
<7>[ 192.415229] driver: '0003:045E:070F.0001': driver_bound: bound to device 'generic-usb'
<7>[ 192.415290] bus: 'hid': really_probe: bound device 0003:045E:070F.0001 to driver generic-usb
<7>[ 192.415412] driver: '1-1:1.3': driver_bound: bound to device 'usbhid'
<7>[ 192.415534] bus: 'usb': really_probe: bound device 1-1:1.3 to driver usbhid
....
Now the errors printed above, really don't matter (after much debugging, it appears to be a bug in ALSA, will look at fixing that later, but it isn't going to cause any issues from what I can tell).
So in conclusion, it looks like it successfully loaded USB_AUDIO drivers and the HID driver (the HID driver is for the volume control on the headset).
Now my logcat looks like:
E/WiredAccessoryObserver( 359): unsetting h2w flag
I/DockObserver( 359): Dock state changed: 16
V/WiredAccessoryObserver( 359): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=16, DEVPATH=/devices/virtual/switch/dock, SEQNUM=3298, ACTION=change, SWITCH_NAME=dock}
V/WiredAccessoryObserver( 359): updateState name: dock state 16
V/WiredAccessoryObserver( 359): updateState switchState: 0
V/WiredAccessoryObserver( 359): newState = 0, headsetState = 0,mHeadsetState = 0
V/BluetoothService( 359): Received ACTION_DOCK_EVENT with State:16
E/SharedPreferencesImpl( 359): Couldn't create directory for SharedPreferences file shared_prefs/bluetooth_service_settings.xml
I/ActivityManager( 359): Start proc net.muteheadlight.dockredir for broadcast net.muteheadlight.dockredir/net.muteheadlight.docksoundredir.dockSoundRedirect: pid=3397 uid=10133 gids={1028}
D/ActivityThread( 3397): setTargetHeapUtilization:0.25
D/ActivityThread( 3397): setTargetHeapIdealFree:8388608
D/ActivityThread( 3397): setTargetHeapConcurrentStart:2097152
I/ActivityManager( 359): No longer want com.google.android.talk (pid 2959): hidden #16
D/EventHub( 359): No input device configuration file found for device 'Microsoft LifeChat LX-3000 '.
I/EventHub( 359): New device: id=8, fd=287, path='/dev/input/event7', name='Microsoft LifeChat LX-3000 ', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=false, usingClockIoctl=false
I/InputReader( 359): Device added: id=8, name='Microsoft LifeChat LX-3000 ', sources=0x00000101
To get this far, I had to manually trigger an Intent with Action of 'com.cyanogenmod.settings.SamsungDock'. Before sending that intent, the WiredAccessoryObserver would print 'Ignoring dock event as Audio routing disabled'.
After all this, no sound is routed to the external USb headset :crying:
I have a feeling the kernel is working as expected, but the Cyanogenmod rom is not correctly handling the dock event.The DockObserver class in cyanogenmod watches for events:
DOCK_UEVENT_MATCH = "DEVPATH=/devices/virtual/switch/dock";
And this is being sent by the kernel and received by the DockObserver, but from here it seems to try and load the deive as a smsung USB audio dock, instead of usb_audio.
My really big question is, how does this work on the Galaxy Nexus with only a kernel change to load the correct drivers....
Any input or pointing in the right direction would be great!!!! (if you've listened to my rant this far you've done well).
UPDATE:
The drivers appear to be working as I can use the 'USB Audio Tester' app from the play store to play the microphone into the headset.
So my issues appears to be getting CM10 to route audio through USB. Has anyone had this working before???
I have a cheap, Enter E-GPV gamepad which when connected to the pc gets detected as HID interface. I connected this to my LGOG using OTG Y-cable but it seems to be operating in low power mode or something like that. The device gets detected when I run dmesg command. But when I try to enable analog button, the gamepad led doesn't lighten up (It usually does when connected to the pc). I even tried compiling a kernel module but that doesn't seem to solve the issue. Any thoughts on solving this issue is welcome.
I've attached the dmesg log below.
PHP:
<6>[ 1203.734777] *** FORCING USB HOST MODE WITH CHARGING ***
<6>[ 1203.847184] msm_hsusb_host msm_hsusb_host: Qualcomm On-Chip EHCI Host Controller
<6>[ 1203.847306] msm_hsusb_host msm_hsusb_host: new USB bus registered, assigned bus number 2
<6>[ 1203.874805] msm_hsusb_host msm_hsusb_host: irq 132, io mem 0x12500000
<6>[ 1203.894796] msm_hsusb_host msm_hsusb_host: USB 2.0 started, EHCI 1.00
<6>[ 1203.895009] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
<6>[ 1203.895101] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[ 1203.895162] usb usb2: Product: Qualcomm On-Chip EHCI Host Controller
<6>[ 1203.895253] usb usb2: Manufacturer: Linux 3.4.0-g97444ad-dirty ehci_hcd
<6>[ 1203.895314] usb usb2: SerialNumber: msm_hsusb_host
<6>[ 1203.895681] USB fast charging is OFF.
<6>[ 1203.895742] msm_otg msm_otg: Avail curr from USB = 1500
<6>[ 1203.895894] msm_otg msm_otg: current: 0 -> 1500 (mA)
<6>[ 1203.895955] pm_power_set_property_usb: usb_target_ma 1500
<6>[ 1203.896200] hub 2-0:1.0: USB hub found
<6>[ 1203.896261] hub 2-0:1.0: 1 port detected
<6>[ 1204.035037] unplug_check_worker: usb_now=700, usb_target = 1500
<6>[ 1204.214893] usb 2-1: new low-speed USB device number 2 using msm_hsusb_host
<6>[ 1204.225118] auto_hotplug: Clearing pause flag
<6>[ 1204.235006] unplug_check_worker: usb_now=850, usb_target = 1500
<6>[ 1204.372531] usb 2-1: New USB device found, idVendor=0079, idProduct=0006
<6>[ 1204.372623] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 1204.372684] usb 2-1: Product: Generic USB Joystick
<6>[ 1204.372806] usb 2-1: Manufacturer: DragonRise Inc.
<6>[ 1204.373141] USB fast charging is OFF.
<6>[ 1204.373233] msm_otg msm_otg: Avail curr from USB = 1000
<6>[ 1204.373324] msm_otg msm_otg: current: 1500 -> 1000 (mA)
<6>[ 1204.373416] pm_power_set_property_usb: usb_target_ma 1000
<3>[ 1204.610041] leds button-backlight: duty_cycles and duty_pcts is not exist
<6>[ 1205.035403] unplug_check_worker: usb_now=700, usb_target = 1000
<6>[ 1205.235220] unplug_check_worker: VIN: usb_now=500, usb_target = 500
<6>[ 1209.585136] auto_hotplug: Offlining CPU, avg running: 240
<6>[ 1210.637600] auto_hotplug: CPU1 down.
<6>[ 1213.024995] auto_hotplug: Onlining all CPUs, avg running: 460
<6>[ 1213.027193] auto_hotplug: CPU1 up.
<6>[ 1214.024965] auto_hotplug: Clearing pause flag
<3>[ 1216.023195] init: untracked pid 6608 exited
<3>[ 1217.799023] init: untracked pid 6682 exited
<3>[ 1218.022767] init: untracked pid 6685 exited
<6>[ 1220.745002] auto_hotplug: Offlining CPU, avg running: 210
<6>[ 1221.798321] auto_hotplug: CPU1 down.
<6>[ 1222.105111] adjust_soc: ibat_ua = -154300, vbat_uv = 3856806, soc = 46, batt_temp=307
Hey
i compiled kernel for galaxy s7 oreo with support to atheros htc wifi usb dongles.
I put firmware htc_9271.fw to /vendot/firmware/
After that i plugged in my usb wifi card. I'm getting all time kernel panic and reboot.=
This kernel panic is only at Oreo.
Nougat and Marshmallow working fine with this firmware
I got this htc_9271.fw from vendor website. I tried another ones from internet but is too kernel panic.
Maybe someone know fix for this issue?
This issue is too on LineageOS 15.1, LineageOS 16.0, Oreo port s9 ROM
this is cut last_kmsg from Stock Oreo ROM
<6>[ 249.919612] [3: kworker/3:2: 4705] usb usb1-port1: port 1, status 0101, change 0000, 12 Mb/s
<6>[ 250.039444] [3: kworker/3:2: 4705] usb 1-1: new high-speed USB device number 2 using xhci-hcd
<6>[ 250.203517] [3: kworker/3:2: 4705] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271
<6>[ 250.203585] [3: kworker/3:2: 4705] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
<6>[ 250.203630] [3: kworker/3:2: 4705] usb 1-1: Product: UB93
<6>[ 250.203670] [3: kworker/3:2: 4705] usb 1-1: Manufacturer: ATHEROS
<6>[ 250.203711] [3: kworker/3:2: 4705] usb 1-1: SerialNumber: 12345
<6>[ 250.215659] [3: kworker/3:2: 4705] usb 1-1: ath9k_htc: Firmware htc_9271.fw requested
<6>[ 250.216574] [3: kworker/3:2: 4705] usb_notify: call_device_notify device
<6>[ 250.216635] [3: kworker/3:2: 4705] usb_notify: send_otg_notify event=device_connect(20) enable=1
<6>[ 250.216673] [3: kworker/3:2: 4705] usb_notify: extra_notifier_callback event=device_connect(20)
<6>[ 250.216711] [3: kworker/3:2: 4705] usb_notify: extra_notify_state+ event=device_connect(20), enable=on
<6>[ 250.216750] [3: kworker/3:2: 4705] usb_notify: extra_notify_state- event=device_connect(20), cable=host_id
<6>[ 250.216787] [3: kworker/3:2: 4705] usb_notify: check_gamepad_device : product=UB93
<6>[ 250.216823] [3: kworker/3:2: 4705] usb_notify: check_lanhub_device : product=UB93
<6>[ 250.216863] [3: kworker/3:2: 4705] usb_notify: check_device_speed : attached highspeed device
<6>[ 250.216902] [3: kworker/3:2: 4705] usb_notify: set_hw_param USB device connected - Class : 0xff, speed : 0x3
<4>[ 250.301133] [0: wpa_supplicant: 5504] Unknown PRIVATE command GET_LQCM_REPORT - ignored
<6>[ 250.683450] [3: kworker/3:2: 4705] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51008
<6>[ 250.936275] [3: kworker/3:2: 4705] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
<6>[ 251.179882] [3: kworker/3:2: 4705] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.4
<7>[ 251.179945] [3: kworker/3:2: 4705] ath: EEPROM regdomain: 0x65
<7>[ 251.179984] [3: kworker/3:2: 4705] ath: EEPROM indicates we should expect a direct regpair map
<7>[ 251.180035] [3: kworker/3:2: 4705] ath: Country alpha2 being used: 00
<7>[ 251.180071] [3: kworker/3:2: 4705] ath: Regpair used: 0x65
<0>[ 251.199777] [3: kworker/3:2: 4705] Unable to handle kernel NULL pointer dereference at virtual address 00000024
<1>[ 251.199835] [3: kworker/3:2: 4705] pgd = ffffffc0028f7000
<1>[ 251.199869] [3: kworker/3:2: 4705] [00000024] *pgd=00000008fa008003, *pud=00000008fa008003, *pmd=00000008fa009003, *pte=00600000101c0707
<4>[ 251.200076] [3: kworker/3:2: 4705] ------------[ cut here ]------------
<0>[ 251.200113] [3: kworker/3:2: 4705] Kernel BUG at ffffffc0006122a4 [verbose debug info unavailable]
<0>[ 251.200150] [3: kworker/3:2: 4705] Internal error: Oops - BUG: 96000006 [#1] PREEMPT SMP
<0>[ 251.200196] [3: kworker/3:2: 4705] exynos-snapshot: exynos_ss_get_reason 0x0 (CPU:3)
<0>[ 251.200237] [3: kworker/3:2: 4705] exynos-snapshot: core register saved(CPU:3)
<0>[ 251.200275] [3: kworker/3:2: 4705] CPUMERRSR: 000000000010047f, L2MERRSR: 0000000010000910
<0>[ 251.200313] [3: kworker/3:2: 4705] SCTLR_EL1: 04C5591D,
<0>[ 251.200347] [3: kworker/3:2: 4705] exynos-snapshot: context saved(CPU:3)
<6>[ 251.200487] [3: kworker/3:2: 4705] exynos-snapshot: item - log_kevents is disabled
<4>[ 251.200563] [3: kworker/3:2: 4705] CPU: 3 PID: 4705 Comm: kworker/3:2 Tainted: G W 3.18.14 #1
<4>[ 251.200599] [3: kworker/3:2: 4705] Hardware name: Samsung UNIVERSAL8890 board based on EXYNOS8890 (DT)
<4>[ 251.200670] [3: kworker/3:2: 4705] Workqueue: events request_firmware_work_func
<4>[ 251.200712] [3: kworker/3:2: 4705] task: ffffffc8795f6000 ti: ffffffc84893c000 task.ti: ffffffc84893c000
<4>[ 251.200762] [3: kworker/3:2: 4705] PC is at wl_cfg80211_netdev_notifier_call+0x6c/0x280
<4>[ 251.200802] [3: kworker/3:2: 4705] LR is at wl_cfg80211_netdev_notifier_call+0x2c/0x280
<4>[ 251.200842] [3: kworker/3:2: 4705] pc : [<ffffffc0006122a4>] lr : [<ffffffc000612264>] pstate: 20000145
<4>[ 251.200881] [3: kworker/3:2: 4705] sp : ffffffc84893fa40
<4>[ 251.200917] [3: kworker/3:2: 4705] x29: ffffffc84893fa40 x28: ffffffc001fd2000
<4>[ 251.200956] [3: kworker/3:2: 4705] x27: ffffffc002200568 x26: ffffffc84893fb58
Second log from Nougat which works fine:
[ 3839.716141] [1: kworker/1:3: 9974] hub 2-0:1.0: USB hub found
[ 3839.716222] [1: kworker/1:3: 9974] hub 2-0:1.0: 1 port detected
[ 3839.902144] [1: kworker/1:3: 9974] usb usb1-port1: port 1, status 0101, change 0000, 12 Mb/s
[ 3840.032240] [1: kworker/1:3: 9974] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 3840.198373] [1: kworker/1:3: 9974] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271
[ 3840.198548] [1: kworker/1:3: 9974] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 3840.198685] [1: kworker/1:3: 9974] usb 1-1: Product: UB93
[ 3840.198815] [1: kworker/1:3: 9974] usb 1-1: Manufacturer: ATHEROS
[ 3840.198943] [1: kworker/1:3: 9974] usb 1-1: SerialNumber: 12345
[ 3840.218365] [1: kworker/1:3: 9974] usb 1-1: ath9k_htc: Firmware htc_9271.fw requested
[ 3840.222525] [1: kworker/1:3: 9974] usb_notify: call_device_notify USB device connected - Class : 0xff, speed : 0x3
[ 3840.222692] [1: kworker/1:3: 9974] usb_notify: send_otg_notify event=device_connect(20) enable=1
[ 3840.222817] [1: kworker/1:3: 9974] usb_notify: extra_notifier_callback event=device_connect(20)
[ 3840.222939] [1: kworker/1:3: 9974] usb_notify: extra_notify_state+ event=device_connect(20), enable=on
[ 3840.223064] [1: kworker/1:3: 9974] usb_notify: extra_notify_state- event=device_connect(20), cable=host_id
[ 3840.223181] [1: kworker/1:3: 9974] usb_notify: check_gamepad_device : product=UB93
[ 3840.223295] [1: kworker/1:3: 9974] usb_notify: check_lanhub_device : product=UB93
[ 3840.223416] [1: kworker/1:3: 9974] usb_notify: check_device_speed : attached highspeed device
[ 3840.466240] I[0: vold: 3246] mif: LNK-RX(23): f8 eb 17 00 13 00 4a 00 07 06 03 40 18 63 63 00 ...
[ 3840.505018] [4: vold:10610] SELinux: initialized (dev fuse, type fuse), uses mountpoint labeling
[ 3840.694703] [1: kworker/1:3: 9974] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51008
[ 3840.802147] [2: argosd: 3355] argos_pm_qos_notify: name:UFS, speed:143Mbps, prev level:-1, request level:0
[ 3840.807789] [2: argosd: 3355] argos_freq_lock name:UFS, CPU_MIN=0, CPU_MAX=0, KFC_MIN=1274000, KFC_MAX=0, MIF=1144000, INT=0
[ 3840.827441] [0:SSRM Handler Th: 6868] max77854_fg_read_avg_current: avg_current=-120625
[ 3840.843198] I[3: swapper/3: 0] mif: LNK-TX(11): f8 eb 0b 00 07 00 ae 00 08 11 02
[ 3840.845195] I[0: swapper/0: 0] mif: LNK-RX(375): f8 eb 77 01 73 01 4b ae 08 11 02 12 00 00 00 01 ...
[ 3840.851495] I[3: swapper/3: 0] mif: LNK-TX(11): f8 ec 0b 00 07 00 89 00 08 11 02
[ 3840.853145] I[0:earchbox:search:10614] mif: LNK-RX(15): f8 ec 0f 00 0b 00 27 89 08 11 02 00 00 00 00
[ 3840.945385] [1: kworker/1:3: 9974] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
[ 3841.041706] [3: kworker/u16:5: 9380] vfsspi_work_func_debug ldo:1, sleep:0, irq:0, tz:1, type:viper, cnt_irq:0, adm: 0
[ 3841.180354] [1: kworker/1:3: 9974] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.4
[ 3841.180375] [1: kworker/1:3: 9974] ath: EEPROM regdomain: 0x65
[ 3841.180387] [1: kworker/1:3: 9974] ath: EEPROM indicates we should expect a direct regpair map
[ 3841.180401] [1: kworker/1:3: 9974] ath: Country alpha2 being used: 00
[ 3841.180412] [1: kworker/1:3: 9974] ath: Regpair used: 0x65
[ 3841.186105] [1: kworker/1:3: 9974] CFG80211-INFO2) wl_cfg80211_netdev_notifier_call : Enter
[ 3841.188874] [1: kworker/1:3: 9974] CFG80211-INFO2) wl_cfg80211_netdev_notifier_call : Enter
[ 3841.190012] [1: kworker/1:3: 9974] ieee80211 phy1: Atheros AR9271 Rev:1
[ 3841.352611] [6: swapper/6: 0] CPU6: Booted secondary processor
[ 3841.352625] [6: swapper/6: 0] Detected VIPT I-cache on CPU6
[ 3841.352680] [6: swapper/6: 0] handle_IPI: IPI_WAKEUP
[ 3841.353990] [7: swapper/7: 0] CPU7: Booted secondary processor
[ 3841.354002] [7: swapper/7: 0] Detected VIPT I-cache on CPU7
[ 3841.354049] [7: swapper/7: 0] handle_IPI: IPI_WAKEUP
Wirusx said:
Hey, i success compiled kernel for galaxy s7 oreo with.........
Click to expand...
Click to collapse
I've never built a Kernel myself but, the following threads are just a few that's available specific to Kernels. Don't be afraid to ask for some member guidance within one of them.
https://forum.xda-developers.com/showthread.php?t=2871276
https://forum.xda-developers.com/showthread.php?t=2376870
https://forum.xda-developers.com/showthread.php?t=3823927
https://forum.xda-developers.com/showthread.php?t=3814251
Good Luck!
~~~~~~~~~~~~~~~
UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my Tandy TRS-80.
Solved, thread to close.