Headset jack partially not recognized as connected at boot
Submitted by Carlo Caione
Assigned to pul..@..op.org
Link to original bug (#103482)
Description
Codec is RT5651. The driver codec is exporting two jack controls:
numid=173,iface=CARD,name='Headphone Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off
numid=174,iface=CARD,name='Headset Mic Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off
The driver correctly recognizes when the jack is connected / disconnected and in general it works fine (audio output and input are switched to the headset when the jack is connected).
The problem arises when we boot the machine with the headset jack already connected. In this case pulseaudio keeps setting the audio output to the speakers and the audio input to the headset mic. When the jack is then disconnected and connected again, everything works fine.
Please note that the kernel is exporting to the userspace the correct status for the headset jack, so I guess the problem is somewhere in the pulseaudio behavior.
In attachment the logs of when pulseaudio is started with and without headset jack connected.