Analogue sound on RPi ARMv7
John Williams (567) 768 posts |
I take a Pi on holiday to use with a VGA monitor via an adapter and use the analogue headphone socket to drive some “PC” speakers. With my earlier RPis the usual command in the CONFIG.TXT file Eventually I found a solution to the problem by replacing that line by When I get back home to my HD monitor I will revert to I am sharing this in case anyone else has the same problem. |
Anthony Vaughan Bartram (2454) 458 posts |
Hi John, |
John Williams (567) 768 posts |
I wonder if this is because I have a CMDLINE.TXT file setting disable_mode_changes? Could it be this which prevents the hdmi_drive=1 working as normal, or is it actually a Pi 2 thing? I may experiment when I get back and have more m/cs to play with. |
Chris Mahoney (1684) 2165 posts |
I have RC15 on my Pi 3, with no CMDLINE/TXT file. Sound works out the headphone socket with a more-or-less default CONFIG/TXT. The only HDMI-related change is there is hdmi_blanking=1, which shouldn’t affect sound. I do not have an hdmi_drive line in there. The same configuration worked on my Pi 1. |
John Williams (567) 768 posts |
Thank you Chris. Perhaps Jeffrey might care to comment on any effects on analogue sound that disable_mode_changes might make? |
Jeffrey Lee (213) 6048 posts |
I believe it’s a change in the firmware which has affected the behaviour, rather than the addition of GPU mode change support. I too have hdmi_ignore_edid_audio in my preferred config.txt, although I can’t remember exactly when I added it. Some experimentation reveals the following:
|
John Williams (567) 768 posts |
Thank you for the clarification. |
John Williams (567) 768 posts |
OK – summary: Firmware has changed, and the way of ensuring sound via the jack socket now is to include the line: hdmi_ignore_edid_audio=1 in the CONFIG.TXT file. Commenting this out with a hash (#) reverts to “normal” behaviour where the sound is sent via HDMI. The old hdmi_drive=1 or 0 line is no longer relevant to sound output. I hope that this will help future users. |
Chris Mahoney (1684) 2165 posts |
My earlier post probably added to the confusion. I forgot that I was using an HDMI-to-DVI cable so there’s no audio support, which is probably automatically pushing the Pi to use the analogue output. That makes sense considering the fix. |