twl6040: speakers and headphone output are currently a single 4 channel pcm
I'm not sure if this should be fixed in the kernel, or in userspace.
channel 1+2 = headphone , 3+4 = speakers
Current workaround is to have pulseaudio mix output to all 4 channels. This doesn't cut out the speakers when headphones are attached.
To upload designs, you'll need to enable LFS. More information