I installed Windows 10 and Ubuntu in dual boot. Every time I enter Windows 10, the next time I boot Ubuntu, my headphone jack does not respond, that is, the sound only plays through the speaker. At this point, the configuration is displayed, showing that there is only one sound card, and I actually have two.
This problem appears on Ubuntu 18.04 LTS and on 18.10. To get my headphones working after booting Windows and then Ubuntu, I have to turn off the computer and then turn on it. I can’t bear it any more. I think this may be caused by Windows 10 somehow removing the Ubuntu driver.
How can I fix this problem?