Thursday, August 4, 2011

Sound From Both Headphones and Speakers (Configuring Alsa)

So I realized today that whenever I plug in my headphone I still get sound from my desktop speakers as well as my headphones. After some research I found out how to solve this problem.

Check your sound card by: 

sudo grep -inE "codec" /proc/asound/card0/codec*
1:Codec: Realtek ALC888

Next you need to check what models are supported:
zless /usr/share/doc/alsa-base/driver/HD-Audio-Models.txt.gz

  3stack-dig    3-jack with SPDIF I/O
  6stack-dig    6-jack digital with SPDIF I/O
  arima         Arima W820Di1
  targa         Targa T8, MSI-1049 T8
  asus-a7j      ASUS A7J
  asus-a7m      ASUS A7M
  macpro        MacPro support
  mb5           Macbook 5,1
  macmini3      Macmini 3,1
  mba21         Macbook Air 2,1
  mbp3          Macbook Pro rev3
  imac24        iMac 24'' with jack detection
  imac91        iMac 9,1
  w2jc          ASUS W2JC
  3stack-2ch-dig        3-jack with SPDIF I/O (ALC883)
  alc883-6stack-dig     6-jack digital with SPDIF I/O (ALC883)
  3stack-6ch    3-jack 6-channel
  3stack-6ch-dig 3-jack 6-channel with SPDIF I/O
  6stack-dig-demo  6-jack digital for Intel demo board
  acer          Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc)
  acer-aspire   Acer Aspire 9810
  acer-aspire-4930g Acer Aspire 4930G
  acer-aspire-6530g Acer Aspire 6530G
  acer-aspire-7730g Acer Aspire 7730G
  acer-aspire-8930g Acer Aspire 8930G
  medion        Medion Laptops
  medion-md2    Medion MD2
  targa-dig     Targa/MSI
  targa-2ch-dig Targa/MSI with 2-channel
  targa-8ch-dig Targa/MSI with 8-channel (MSI GX620)
  laptop-eapd   3-jack with SPDIF I/O and EAPD (Clevo M540JE, M550JE)
  lenovo-101e   Lenovo 101E
  lenovo-nb0763 Lenovo NB0763
  lenovo-ms7195-dig Lenovo MS7195
  lenovo-sky    Lenovo Sky
  haier-w66     Haier W66
  3stack-hp     HP machines with 3stack (Lucknow, Samba boards)
  6stack-dell   Dell machines with 6stack (Inspiron 530)
  mitac         Mitac 8252D
  clevo-m540r   Clevo M540R (6ch + digital)
  clevo-m720    Clevo M720 laptop series
  fujitsu-pi2515 Fujitsu AMILO Pi2515
  fujitsu-xa3530 Fujitsu AMILO XA3530
  3stack-6ch-intel Intel DG33* boards
  intel-alc889a Intel IbexPeak with ALC889A
  intel-x58     Intel DX58 with ALC889
  asus-p5q      ASUS P5Q-EM boards
  mb31          MacBook 3,1
  sony-vaio-tt  Sony VAIO TT

Once you found your sound card you will be giving a list of models. Auto is configured by default, so if it is not working now you can skip that. Now you need to find out what model will work with your system. Stop any audio devices and remove the module

sudo modprobe -r snd-hda-intel
sudo modeprobe snd-hda-intel model=6stack-dell

Continue to remove and replace the module with the various models on the list. It may be easy if you have a specific manufacturer such as a MacBook Pro. In my case I own an HP and I required the Dell model.

Save your configuration by adding it to the end of the alsa-base.conf:

sudo vi /ect/modprobe.d/alsa-base.conf
       # append this to the file options 
       snd-hda-intel model=6stack-dell

Your settings should be saved upon reboot. Let me know if this worked differently for you.


No comments:

Post a Comment