Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search




Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Headphone Detection on 2nd Gen iPod
« previous next »
  • Print
Pages: [1]

Author Topic: Headphone Detection on 2nd Gen iPod  (Read 1635 times)

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Headphone Detection on 2nd Gen iPod
« on: January 26, 2008, 12:22:13 PM »
I have been unable to get this feature to function on either of my 2nd Gen iPods. Does the 2nd gen really support this feature, or was the feature included in the build by inheritance from another build?

[rockbox-info.txt]
Quote
Target:
Target id: 29
Target define: -DIPOD_1G2G
Memory: 32
CPU: arm
Manufacturer: ipod
Version: r16153-080124
Binary: rockbox.ipod
Binary size: 444904
Actual size: 444896
RAM usage: 826992
Features: dircache:headphone_detection:hold_button:lcd_bitmap:lcd_non-mono:lcd_flip:lcd_invert:pitchscreen:quickscreen:swcodec:tagcache:tc_ramcache
gcc: arm-elf-gcc (GCC) 4.0.3
ld: GNU ld version 2.16.1
Host gcc: gcc (GCC) 4.2.3 20080114 (prerelease) (Debian 4.2.2-7)
Host system: Linux

If someone can confirm I'll submit a bug report via Flyspray if appropriate.

Edit:
iPodLinux lists GPIOB bit 0 as the detection method for 2G and 3G, which seems to confirm the 2nd gen *IS* capable of detection. However looking at the Rockbox source, button-1g-3g.c seems to be looking at bit 0 of GPIOC ???

Edit2:
Modifying button-1g-3g.c to look at GPIOB bit 0 allows headphone detection to work on the 2G. However I don't know if the 3G also needs to be modified, and I don't know if the 1G actually supports headphone detection at all (GPIOB bit 0 for the 1G is apparently used for scrollwheel enable per iPodLinux)

Edit3:
Flyspray task opened: http://www.rockbox.org/tracker/task/8519

Edit4:
There's a patch to fix the 2G detection : http://www.rockbox.org/tracker/task/8920
« Last Edit: April 20, 2008, 06:09:00 PM by yapper »
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Headphone Detection on 2nd Gen iPod
 

  • SMF 2.0.6 | SMF © 2013, Simple Machines
  • XHTML
  • RSS
  • WAP2

Page created in 0.044 seconds with 35 queries.