Codec + Mixer: IDT 92HD71B7X - STAC92xx Analog [STAC92xx Analog] Audio device [0403]: ATI Technologies Inc SBx00 Azalia (Intel HDA) [1002:4383] - sound not working via headphones on HP Pavilion dv5 Notebook PC in Ubuntu 9.04 64-bit edition - using ALSA 1.0.21

Asked by Steven Sroka

When I am playing music the sound comes out of my speakers, but this only happens when Ubuntu is booted without the headphones plugged in at boot time. When I boot into Ubuntu 9.04 with my headphones plugged in they work fine. I would like to be able plug in my headphones anytime I need to and get them to work and not just at boot time.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu alsa-driver Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
wojox (wojox) said :
#1
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

https://help.ubuntu.com/community/SoundTroubleshootingProcedure

Please send us the output from step 3 and step 4

Please also specify the exact model and make of your pc.

Revision history for this message
Steven Sroka (lin-unix) said :
#3

Step 3's output:
--------------------------

ALSA Information Script v 0.4.58
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  lsmod
  aplay
  amixer
  alsactl
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See 'alsa-info.sh --help' for command line options.

Automatically upload ALSA information to pastebin? [y/N] : y
Uploading information to www.pastebin.ca ... Done!

Your ALSA information is located at http://pastebin.ca/1582770

Please inform the person helping you.
__________________
Step 4's output:
-------------------------------

 0 [SB ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xd2400000 irq 16
 1 [HDMI ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xd2310000 irq 19
[sudo] password for steven:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
Couldn't find any package whose name or description matched "flashplugin-nonfree-extrasound"
Couldn't find any package whose name or description matched "flashplugin-nonfree-extrasound"
The following NEW packages will be installed:
  asoundconf-gtk gnome-alsamixer
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 63.1kB of archives. After unpacking 680kB will be used.
Writing extended state information... Done
Get:1 http://ca.archive.ubuntu.com jaunty/universe asoundconf-gtk 1.6-0ubuntu1 [6444B]
Get:2 http://ca.archive.ubuntu.com jaunty/universe gnome-alsamixer 0.9.7~cvs.20060916.ds.1-2 [56.6kB]
Fetched 63.1kB in 1s (48.5kB/s)
Selecting previously deselected package asoundconf-gtk.
(Reading database ... 111692 files and directories currently installed.)
Unpacking asoundconf-gtk (from .../asoundconf-gtk_1.6-0ubuntu1_all.deb) ...
Selecting previously deselected package gnome-alsamixer.
Unpacking gnome-alsamixer (from .../gnome-alsamixer_0.9.7~cvs.20060916.ds.1-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up asoundconf-gtk (1.6-0ubuntu1) ...
Setting up gnome-alsamixer (0.9.7~cvs.20060916.ds.1-2) ...

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

Names of available sound cards:
SB
HDMI
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: STAC92xx Digital [STAC92xx Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  *-multimedia
       description: Audio device
       product: RS780 Azalia controller
       vendor: ATI Technologies Inc
       physical id: 5.1
       bus info: pci@0000:01:05.1
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list
       configuration: driver=HDA Intel latency=0 module=snd_hda_intel
  *-multimedia
       description: Audio device
       product: SBx00 Azalia (Intel HDA)
       vendor: ATI Technologies Inc
       physical id: 14.2
       bus info: pci@0000:00:14.2
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list
       configuration: driver=HDA Intel latency=64 module=snd_hda_intel
total 0
crw-rw----+ 1 root audio 116, 2 2009-09-28 12:22 timer
crw-rw----+ 1 root audio 116, 3 2009-09-28 12:22 seq
crw-rw----+ 1 root audio 116, 4 2009-09-28 12:22 pcmC0D1p
crw-rw----+ 1 root audio 116, 7 2009-09-28 12:22 controlC0
crw-rw----+ 1 root audio 116, 8 2009-09-28 12:22 pcmC1D3p
crw-rw----+ 1 root audio 116, 9 2009-09-28 12:22 controlC1
drwxr-xr-x 2 root root 200 2009-09-28 12:22 .
crw-rw----+ 1 root audio 116, 6 2009-09-28 12:22 pcmC0D0c
crw-rw----+ 1 root audio 116, 5 2009-09-28 12:23 pcmC0D0p
drwxr-xr-x 17 root root 4180 2009-09-28 12:46 ..
Sound Driver:3.8.1a-980706 (ALSA v1.0.18rc3 emulation code)
Kernel: Linux University 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC 2009 x86_64
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
HDA ATI SB at 0xd2400000 irq 16
HDA ATI HDMI at 0xd2310000 irq 19

Audio devices:
0: STAC92xx Analog (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers:
0: IDT 92HD71B7X
1: ATI ATI RS690/780 HDMI
00:00.0 Host bridge [0600]: Advanced Micro Devices [AMD] RS780 Host Bridge [1022:9600]
00:01.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (int gfx) [1022:9602]
00:04.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 0) [1022:9604]
00:05.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 1) [1022:9605]
00:06.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2) [1022:9606]
00:11.0 SATA controller [0106]: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode] [1002:4391]
00:12.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397]
00:12.1 USB Controller [0c03]: ATI Technologies Inc SB700 USB OHCI1 Controller [1002:4398]
00:12.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396]
00:13.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397]
00:13.1 USB Controller [0c03]: ATI Technologies Inc SB700 USB OHCI1 Controller [1002:4398]
00:13.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396]
00:14.0 SMBus [0c05]: ATI Technologies Inc SBx00 SMBus Controller [1002:4385] (rev 3a)
00:14.1 IDE interface [0101]: ATI Technologies Inc SB700/SB800 IDE Controller [1002:439c]
00:14.2 Audio device [0403]: ATI Technologies Inc SBx00 Azalia (Intel HDA) [1002:4383]
00:14.3 ISA bridge [0601]: ATI Technologies Inc SB700/SB800 LPC host controller [1002:439d]
00:14.4 PCI bridge [0604]: ATI Technologies Inc SBx00 PCI to PCI Bridge [1002:4384]
00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] Family 11h HyperTransport Configuration [1022:1300] (rev 40)
00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] Family 11h Address Map [1022:1301]
00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] Family 11h DRAM Controller [1022:1302]
00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] Family 11h Miscellaneous Control [1022:1303]
00:18.4 Host bridge [0600]: Advanced Micro Devices [AMD] Family 11h Link Control [1022:1304]
01:05.0 VGA compatible controller [0300]: ATI Technologies Inc RS780M/RS780MN [Radeon HD 3200 Graphics] [1002:9612]
01:05.1 Audio device [0403]: ATI Technologies Inc RS780 Azalia controller [1002:960f]
08:00.0 Network controller [0280]: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) [168c:002a] (rev 01)
09:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 02)
/sbin/alsactl
snd_seq_dummy 11524 0
snd_seq_oss 41984 0
snd_seq_midi 15744 0
snd_hda_intel 557492 5
snd_rawmidi 33920 1 snd_seq_midi
snd_pcm_oss 52352 0
snd_mixer_oss 24960 1 snd_pcm_oss
snd_seq_midi_event 16512 2 snd_seq_oss,snd_seq_midi
snd_pcm 99464 3 snd_hda_intel,snd_pcm_oss
snd_seq 66272 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 34064 2 snd_pcm,snd_seq
snd_seq_device 16276 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 78920 18 snd_seq_oss,snd_hda_intel,snd_rawmidi,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq,snd_timer,snd_seq_device
soundcore 16800 1 snd
snd_page_alloc 18704 2 snd_hda_intel,snd_pcm

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#4

Hi,

In System/Administration/Users and Groups , make sure that your user and the root user are members of the following groups:

 pulse
 pulse-access
 pulse-rt

Then please try this procedure:

1. copy-paste the following command into the Terminal:

gksudo gedit /etc/modprobe.d/alsa-base.conf

2. and add these lines to the end of the file:

# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=dell-m4-2

3. Then navigate to System>Preferences>Sound and change everything to ALSA

4. reboot and retest sound

5. If sound still does not work, then replace dell-m4-2 with one of the following 4 model options:

 STAC92HD71B*
   ref
   dell-m4-1
   dell-m4-2
   dell-m4-3

6. You will have to reboot and retest sound after every model option change to the alsa-base.conf file

Regards,

Mark

Revision history for this message
Steven Sroka (lin-unix) said :
#5

It still does let me divert sound from headphones to speakers and speakers to headphones whenever I plug in or unplug my headphones.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#6

To fix jack sensing, try upgrading ALSA to version 1.0.21 using this procedure:

http://monespaceperso.org/blog-en/2009/08/31/upgrade-alsa-1-0-21-on-ubuntu-jaunty-9-04/

Then reboot and retest sound.

If that does not fix the jack sensing issue, I recommend waiting for the official release of Ubuntu 9.10 at the end of the month....

Revision history for this message
Steven Sroka (lin-unix) said :
#7

That seemed to have worked (maybe...!), but I didn't have much time to test it out because when I ran the last instruction "sudo alsaconfig" and it caused my speakers to always create a static noise whenever I tried playing some sound through them and nothing comes out of my headphones.

Revision history for this message
Steven Sroka (lin-unix) said :
#8

I think the static is screwing up my internal laptop speakers because they are a bit static on Vista, though sound at least plays through them on Vista. On Ubuntu its just solid static.

I tried to recompile ALSA 1.0.21 to try to reset everything but no go.....

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#9

Try installing the 32-bit edition of Ubuntu 9.10 beta. Choose custom partitioning and make sure to NOT format your /home partition or Vista partition.

Then follow this procedure again in Ubuntu 9.10 beta:

In System/Administration/Users and Groups , make sure that your user and the root user are members of the following groups:

 pulse
 pulse-access
 pulse-rt

Then please try this procedure:

1. copy-paste the following command into the Terminal:

gksudo gedit /etc/modprobe.d/alsa-base.conf

Make sure all the volume channels are set to a volume level around 77%, not 100%

2. and add these lines to the end of the file:

# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=dell-m4-2

3. Then navigate to System>Preferences>Sound and change everything to ALSA

4. reboot and retest sound

5. If sound still does not work, then replace dell-m4-2 with one of the following 4 model options:

 STAC92HD71B*
   ref
   dell-m4-1
   dell-m4-2
   dell-m4-3

Hope it helps,

Mark

Revision history for this message
Steven Sroka (lin-unix) said :
#10

Wheres the fourth model?

dell-m4-1
dell-m4-2
dell-m4-3
???

And what does,

STAC92HD71B*
   ref

mean?

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#11

ref is the first model option for your sound card's audio codec

dell-m4-3 is the fourth model option for your sound card's audio codec

STAC92HD71B* refers to all sound cards whose codec name is similar to 92HD71B*

Actually STAC92HD71B* is the combination of "STAC92xx Analog (DUPLEX) audio device" with a codec from the 92HD71B* codec family.

So your sound card's codec IDT 92HD71B7X belongs to the STAC92HD71B* family of audio codecs, which is important to know when you are configuring ALSA and /etc/modprobe.d/alsa-base.conf

This information comes from this ALSA configuration documentation::

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-jaunty.git;a=blob_plain;f=Documentation/sound/alsa/ALSA-Configuration.txt

Revision history for this message
Steven Sroka (lin-unix) said :
#12

Oh I see. But if dell-m4-3 is the fourth model then what is the first?

1. ???
2. dell-m4-1
3. dell-m4-2
4. dell-m4-3

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#13

ref is the first model option for STAC92HD71B*

Can you help with this problem?

Provide an answer of your own, or ask Steven Sroka for more information if necessary.

To post a message you must log in.