Closed Bug 1194249 Opened 10 years ago Closed 9 years ago

Audio route is not changed when HDMI Display is connected on gonk

Categories

(Firefox OS Graveyard :: AudioChannel, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: sotaro, Assigned: sotaro)

References

Details

Attachments

(1 file, 3 obsolete files)

Since Bug 1186000, b2g supports HDMI display rendering. On android, when HDMI display is connected to android device, the device's audio route is changed to the HDMI display. Same thing should be done also on gonk.
Depends on: 1186000
Assignee: nobody → sotaro.ikeda.g
Blocks: 1186000
No longer depends on: 1186000
FYI: On android, HDMI display related audio route is controlled by WiredAccessoryManager. https://github.com/sotaroikeda/android-diagrams/blob/master/system/WiredAccessoryManager_5.1.pdf
The patch does not handle mediaserver died event yet.
Depends on: 1194442
(In reply to Sotaro Ikeda [:sotaro] from comment #2) > Created attachment 8647699 [details] [diff] [review] > patch - Add HDMI audio route handling > > The patch does not handle mediaserver died event yet. When the device is connected to HDMI Display, the phone's sound was stopped, but the Display did not have a sound.
Audio route was correctly changed to HDMI audio. Just audio volume was too small for HDMI audio out.
Hi, Sotaro, You can try to set the volume of AUDIO_DEVICE_OUT_AUX_DIGITAL in AudioManager::SetStreamVolumeIndex().
(In reply to Alastor Wu [:alwu] from comment #5) > Hi, Sotaro, > You can try to set the volume of AUDIO_DEVICE_OUT_AUX_DIGITAL in > AudioManager::SetStreamVolumeIndex(). Thanks for the info. It should work, though AudioManager's code clean up seems necessary to implement correctly.
Temporary implementation, just to confirm the audio problem fix.
Attachment #8647699 - Attachment is obsolete: true
Depends on: 1196724
Depends on: 1204033
Depends on: 1218629
No longer depends on: 1218629
Rebased.
Attachment #8649436 - Attachment is obsolete: true
On android M, when the device is connected to TV, the playback audio volume can be changed only between min/max. It is because, audio volume should be changed only by TV side. attachment 8681066 [details] [diff] [review] does not have such control yet.
Update nits.
Attachment #8681066 - Attachment is obsolete: true
This is specific to gonk.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: