Thank you so much, this solved my problem! I went about it slightly differently though as I didn't have to do any installing/removing of applications.
What I did:
The output I got was:
head -n 1 /proc/asound/card0/codec*
Then I typed in:
Codec: IDT 92HD73C1X5
and scrolled down to the section titled "Module snd-hda-intel". Under this section I scrolled down until I found a model number as close as I could find to mine, this turned out to be STAC92HD73*. Directly under this I chose "dell-m6". If you have multiple options under yours, you may have to do some testing to find the right one.
Next, I opened up alsa-base with:
and scrolled down to the bottom and typed:
sudo gedit /ect/modprobe.d/alsa-base
Then I saved the file, quit gedit and restarted my computer. Now my speakers mute automatically when I plug in headphones. Hope this helps anyone having these problems too.
options snd-hda-intel model=dell-m6