Audio output detection stopped working

A similar issue was reported in Random audio drops on wired headphones - plays from top speaker instead