Open Bug 1106681 Opened 11 years ago Updated 3 years ago

The ConvertState method of SwitchHandlerHeadphone class is not general enough

Categories

(Core :: Hardware Abstraction Layer (HAL), defect)

ARM
Gonk (Firefox OS)
defect

Tracking

()

People

(Reporter: sunhaitao, Unassigned)

Details

Attachments

(1 file)

Currently it convert any state except 0 and 1 to SWITCH_STATE_HEADPHONE. But on some device (e.g many of Allwinner A23-based Tablets) , the initial state after booting is -1. I believe we should convert all states except 0, 1 and 2 to SWITCH_STATE_UNKNOWN.
Attached patch A Working PatchSplinter Review
Is there any test code required? I haven't found any existing one to extend.
Attachment #8531074 - Flags: review?(justin.lebar+bug)
Hi, I don't work on Mozilla stuff anymore; please find another reviewer.
Comment on attachment 8531074 [details] [diff] [review] A Working Patch (In reply to Justin Lebar (not reading bugmail) from comment #2) > Hi, I don't work on Mozilla stuff anymore; please find another reviewer. Sorry...
Attachment #8531074 - Flags: review?(justin.lebar+bug) → review?(mounir)
Comment on attachment 8531074 [details] [diff] [review] A Working Patch Dropping review request because it was two years ago. If you still want to hear from me, please add the flag back.
Attachment #8531074 - Flags: review?(mounir)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: