Opened 5 years ago

Closed 5 years ago

Last modified 20 months ago

#11409 closed defect (fixed)

Headphone jack test not working in 11.3.0 on 1.75

Reported by: greenfeld Owned by: saadia
Priority: blocker Milestone:
Component: kernel Version: 1.75/1.5/1.0 Software Build os883 aka 11.3.0
Keywords: Cc:
Blocked By: Blocking:
Deployments affected: Action Needed: no action
Verified: no

Description

I could not get the audio output to be routed through the headphone jack of an XO 1.75 B1 with 11.3.0 os883 when playing audio using the Speak activity. I tried plugging in the headphones at various times (before boot, afterward Sugar started, etc.) to see if it made a difference and it did not.

Instead the audio in Speak just played out the internal XO computer speakers.

While in Open Firmware, the startup sound and "test /audio" commands routed audio out the headphone jacks as appropriate.

Attachments (1)

soc-mmp-olpc-xo-1-75_mute_spkr_on_hp.diff (2.8 KB) - added by jnettlet 5 years ago.
Mute speakers on headphone insertion

Download all attachments as: .zip

Change History (12)

comment:1 Changed 5 years ago by saadia

  • Priority changed from high to blocker
  • Status changed from new to assigned

comment:2 Changed 5 years ago by saadia

I have added a fix for dynamic detection of headphone and microphone.
http://dev.laptop.org/git/olpc-kernel/commit/?h=arm-3.0-wip&id=da24a9f180be846281af0806236483e10348a0c3

comment:3 Changed 5 years ago by martin.langhoff

  • Action Needed changed from diagnose to test in build

Test in os12

comment:4 Changed 5 years ago by martin.langhoff

  • Action Needed changed from test in build to code

Actually, Saadia indicates tat it's not 100% ready.

comment:5 Changed 5 years ago by Quozl

Tests to support diagnosis, using speaker-test at shell prompt:

  • if headphones are inserted after kernel boot, audio is emitted by both headphones and speakers,
  • if headphones are inserted before OpenFirmware start, audio is emitted only by headphones,
  • if headphones are inserted after OpenFirmware start, at ok prompt, before typing boot, audio is emitted by both headphones and speakers.

Conclusion: OpenFirmware routing of startup sound has an effect.

Theory: Linux is not setting registers in the same way that OpenFirmware does.

comment:6 Changed 5 years ago by Quozl

if headphones are inserted before OpenFirmware start, audio is emitted only by headphones, is not always true, it seems unpredictable.

Changed 5 years ago by jnettlet

Mute speakers on headphone insertion

comment:7 Changed 5 years ago by jnettlet

As stated on @techteam This patch is probably 100% incorrect. It does implement the action where speaker's are muted on headphone insertion and returned to their previous state on headphone removal.

comment:8 Changed 5 years ago by Quozl

  • Action Needed changed from code to review

Tested patch, works fine.

comment:9 Changed 5 years ago by martin.langhoff

  • Action Needed changed from review to test in build

OS18 and later.

comment:10 Changed 5 years ago by greenfeld

  • Action Needed changed from test in build to no action
  • Resolution set to fixed
  • Status changed from assigned to closed

The headphone jack sense works in 11.3.1 os20 if the headphones are inserted/removed while the XO is powered off, not playing a sound, playing a sound, or in suspend.

Tested with a C1/SKU 202 1.75 machine.

comment:11 Changed 20 months ago by Quozl

  • Milestone 1.75-software deleted

Milestone 1.75-software deleted

Note: See TracTickets for help on using tickets.