Skip to content

Commit ef2f75b

Browse files
author
able_liao
committed
Audio:fix music playing through speaker instead of the headset when reboot DUT
1.if we insert wired headset and reboot DUT,it will playback by speaker instead of headset. It reason is lineout_gpio pin will be detected earlier than it is enabled and requested at initial boot,so it will detect wrong status to debug board. In this situation lineout_gpio is 0 when detection work at initial boot. 2.Modify lineout_gpio is enabled and requested earlier than detection work. we can improve this issue. Bugnizer ID :7235478 Change-Id: I368d6603ca39ea2367fe6ed8ee644445a770c024 Signed-off-by: able_liao <[email protected]>
1 parent 3f47810 commit ef2f75b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/tegra/headset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,12 +618,12 @@ static int __init headset_init(void)
618618
hs_data->timer.function = detect_event_timer_func;
619619

620620
printk("HEADSET: Headset detection mode\n");
621+
lineout_config_gpio(project_info);
621622
btn_config_gpio();/*Config hook detection GPIO*/
622623
switch_config_gpio(); /*Config uart and headphone switch*/
623624
jack_config_gpio();/*Config jack detection GPIO*/
624625
INIT_WORK(&lineout_work, lineout_work_queue);
625626
INIT_WORK(&dock_work, dock_work_queue);
626-
lineout_config_gpio(project_info);
627627
dockin_config_gpio();
628628

629629
printk(KERN_INFO "%s- #####\n", __func__);

0 commit comments

Comments
 (0)