My laptop is a Toshiba Satellite A215-S7422 running Ubuntu 12.04. The command
cat /proc/asound/card0/codec#* | grep Codec
gives the result
Codec: LSI ID 1040 Codec: Realtek ALC268
My headphones work, but speakers do not. I have tried several different model options in /etc/modprobe.d/alsa-base, but I'm not sure if I got the right one since I couldn't figure out how to find my sound card in the Alsa documentation. I've downloaded and compiled the most recent alsa drivers, as suggested here. When headphones are not plugged in the Sound preferences screen shows Speakers, which changes to and from Headphones appropriately, so the system seems to be recognizing the internal sound card and speakers fine. The speaker is not muted in the system notification bar or in alsamixer. What else should I be doing to troubleshoot/fix the issue?
If alsa is not the easiest way to do this, I'm open to answers that get my speakers working while maintaining the functionality of my headphones jack.