[RESOLVED] Sound not working on CentOS 6.2

Issues related to hardware problems
ww1er
Posts: 3
Joined: 2012/03/17 20:36:58

[RESOLVED] Sound not working on CentOS 6.2

Postby ww1er » 2012/03/17 20:53:23

CentOS 6.2 "develper desktop" installed on x86 PC and GUI desktop has no sound.
x86 PC is a HP xw4200 mini-tower.
PC is duel boot, and when booted to Windows OS, PC plays sound just fine, so believe hardware is okay.
For CentOS 6.2 sound testing, using desktop's System->Preferances->Sound->Hardware->Test speakers.
Also using Adobe Flash player and YouTube.com for video/sound testing, video plays just fine, other than no sound.
I believe problem must be a cfg or module problem but cannot ID problem source.
I understand my PC has two sound chips;
? First on motherboard (which is the one I am trying to use, and the one I use for Windows).
? Second on HDTV video card (using VGA out, as don't have HD monitor with speakers).
I am a Solaris SPARC admin who installed CentOS 6.2 on home PC to "play/learn" some LINUX where if I trash something, it has no impact at work.
I have goggled and find similar posting about "Cent OS no sound" and installed their recommendation of kmod-alsa but my problem remains.
I have asked around at work, but the LINUX boxes at work do not have sound cfg, they directed me to here.
Even within this CentOS form, I see 3 other "no sound" postings, but only one is resolved, and could not find an answer for me within any of them.
Please help!
How do I get sound working on CentOS 6.2?
First posting, hope I am doing post correctly.

Here is some details about my CentOS 6.2 setup...

[root@LINUX1 ~]# ls -al /dev/snd/
total 0
drwxr-xr-x. 3 root root 420 Mar 16 17:37 .
drwxr-xr-x. 19 root root 3820 Mar 16 17:37 ..
drwxr-xr-x. 2 root root 80 Mar 16 17:37 by-path
crw-rw----+ 1 root audio 116, 12 Mar 16 17:37 controlC0
crw-rw----+ 1 root audio 116, 19 Mar 16 17:37 controlC1
crw-rw----+ 1 root audio 116, 11 Mar 16 17:37 hwC0D0
crw-rw----+ 1 root audio 116, 10 Mar 16 17:37 hwC0D1
crw-rw----+ 1 root audio 116, 9 Mar 16 17:37 hwC0D2
crw-rw----+ 1 root audio 116, 8 Mar 16 17:37 hwC0D3
crw-rw----+ 1 root audio 116, 7 Mar 16 17:38 pcmC0D3p
crw-rw----+ 1 root audio 116, 6 Mar 16 17:37 pcmC0D7p
crw-rw----+ 1 root audio 116, 5 Mar 16 17:37 pcmC0D8p
crw-rw----+ 1 root audio 116, 4 Mar 16 17:37 pcmC0D9p
crw-rw----+ 1 root audio 116, 18 Mar 16 17:38 pcmC1D0c
crw-rw----+ 1 root audio 116, 17 Mar 16 17:39 pcmC1D0p
crw-rw----+ 1 root audio 116, 16 Mar 16 17:37 pcmC1D1c
crw-rw----+ 1 root audio 116, 15 Mar 16 17:37 pcmC1D2c
crw-rw----+ 1 root audio 116, 14 Mar 16 17:37 pcmC1D3c
crw-rw----+ 1 root audio 116, 13 Mar 16 17:38 pcmC1D4p
crw-rw----+ 1 root audio 116, 3 Mar 16 17:37 seq
crw-rw----+ 1 root audio 116, 2 Mar 16 17:37 timer

[root@LINUX1 ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ICH6 [Intel ICH6], device 0: Intel ICH [Intel ICH6]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ICH6 [Intel ICH6], device 4: Intel ICH - IEC958 [Intel ICH6 - IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0

[root@LINUX1 ~]# lsmod | grep '^snd' | column -t
snd_intel8x0 25495 2
snd_ac97_codec 96641 1 snd_intel8x0
snd_hda_codec_hdmi 23236 4
snd_hda_intel 22900 0
snd_hda_codec 101583 2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 5282 1 snd_hda_codec
snd_seq 46373 0
snd_seq_device 5508 1 snd_seq
snd_pcm 70308 5 snd_intel8x0,snd_ac97_codec,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer 17854 2 snd_seq,snd_pcm
snd 57505 14 snd_intel8x0,snd_ac97_codec,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
snd_page_alloc 7042 3 snd_intel8x0,snd_hda_intel,snd_pcm

[root@LINUX1 ~]# lspci -nn | grep -i audio
00:1e.2 Multimedia audio controller [0401]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller [8086:266e] (rev 03)
01:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be2] (rev a1)

[root@LINUX1 ~]# uname -a
Linux LINUX1 2.6.32-220.el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386 GNU/Linux

[root@LINUX1 ~]# rpm -qa kernel\* | sort
kernel-2.6.32-220.el6.i686
kernel-devel-2.6.32-220.el6.i686
kernel-firmware-2.6.32-220.el6.noarch
kernel-headers-2.6.32-220.el6.i686

[root@LINUX1 ~]# rpm -qa | grep alsa
alsa-utils-1.0.21-3.el6.i686
alsa-lib-1.0.22-3.el6.i686
alsa-lib-devel-1.0.22-3.el6.i686
alsa-plugins-pulseaudio-1.0.21-3.el6.i686
kmod-alsa-1.0.25-4.el6.elrepo.i686

[root@LINUX1 ~]# lsmod | grep -i cmi

[root@LINUX1 ~]# lsmod | grep -i alsa

[root@LINUX1 ~]# cat /etc/centos-release
CentOS release 6.2 (Final)

I have tried the cmd line utitly aplay, but it also produces no sound.
[root@LINUX1 ~]# aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE 'Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
((no sound is heard))

Output from ./getinfo.sh is as follows....
[root@LINUX1 ~]# cat /tmp/basedata.kL27Lo

Information for general problems.

Code: Select all

== BEGIN uname -rmi ==
2.6.32-220.el6.i686 i686 i386
== END   uname -rmi ==

== BEGIN rpm -qa \*-release\* ==
centos-release-6-2.el6.centos.7.i686
adobe-release-i386-1.0-1.noarch
elrepo-release-6-4.el6.elrepo.noarch
== END   rpm -qa \*-release\* ==

== BEGIN cat /etc/redhat-release ==
CentOS release 6.2 (Final)
== END   cat /etc/redhat-release ==

== BEGIN getenforce ==
Enforcing
== END   getenforce ==

== BEGIN free -m ==
             total       used       free     shared    buffers     cached
Mem:          1006        564        442          0         27        306
-/+ buffers/cache:        230        776
Swap:        12287          0      12287
== END   free -m ==

== BEGIN rpm -qa yum\* rpm-\* python | sort ==
python-2.6.6-29.el6.i686
rpm-build-4.8.0-19.el6.i686
rpm-libs-4.8.0-19.el6.i686
rpm-python-4.8.0-19.el6.i686
yum-3.2.29-22.el6.centos.noarch
yum-metadata-parser-1.1.2-16.el6.i686
yum-plugin-fastestmirror-1.1.30-10.el6.noarch
yum-plugin-security-1.1.30-10.el6.noarch
yum-utils-1.1.30-10.el6.noarch
== END   rpm -qa yum\* rpm-\* python | sort ==

== BEGIN ls /etc/yum.repos.d ==
adobe-linux-i386.repo
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
elrepo.repo
== END   ls /etc/yum.repos.d ==

== BEGIN cat /etc/yum.conf ==
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
== END   cat /etc/yum.conf ==

== BEGIN yum repolist all ==
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror.atlanticmetro.net
 * elrepo: elrepo.org
 * extras: yum.singlehop.com
 * updates: centos.mirror.lstn.net
repo id          repo name                                        status
adobe-linux-i386 Adobe Systems Incorporated                       enabled:    17
base             CentOS-6 - Base                                  enabled: 4,764
c6-media         CentOS-6 - Media                                 disabled
centosplus       CentOS-6 - Plus                                  disabled
contrib          CentOS-6 - Contrib                               disabled
debug            CentOS-6 - Debuginfo                             disabled
elrepo           ELRepo.org Community Enterprise Linux Repository enabled:   154
elrepo-extras    ELRepo.org Community Enterprise Linux Repository disabled
elrepo-kernel    ELRepo.org Community Enterprise Linux Kernel Rep disabled
elrepo-testing   ELRepo.org Community Enterprise Linux Testing Re disabled
extras           CentOS-6 - Extras                                enabled:     4
updates          CentOS-6 - Updates                               enabled:   451
repolist: 5,390
== END   yum repolist all ==

== BEGIN egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== END   egrep 'include|exclude' /etc/yum.repos.d/*.repo ==

== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
== END   sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==

== BEGIN cat /etc/fstab ==

#
# /etc/fstab
# Created by anaconda on Thu Mar  1 10:39:03 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=e2679d85-6e48-4c85-9b89-27c20ef89671 /                       ext4    defaults        1 1
UUID=86beb3e2-d4d5-46ea-a673-34b2098ca6ec /boot                   ext4    defaults        1 2
UUID=32ec81e8-9a38-4008-9607-1b46c86ce858 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
== END   cat /etc/fstab ==

== BEGIN df -h ==
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb3             282G  4.3G  263G   2% /
tmpfs                 504M  196K  504M   1% /dev/shm
/dev/sdb1             194M   26M  158M  14% /boot
== END   df -h ==

== BEGIN fdisk -l ==

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc8c8c8c8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          45      358400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              45        9726    77763584    7  HPFS/NTFS

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00030c47

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2              26        1593    12582912   82  Linux swap / Solaris
/dev/sdb3            1593       38914   299782144   83  Linux
== END   fdisk -l ==

== BEGIN parted -l ==
Model: ATA ST3808110AS (scsi)
Disk /dev/sda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  368MB   367MB   primary  ntfs         boot
 2      368MB   80.0GB  79.6GB  primary  ntfs


Model: ATA WDC WD3200AAKS-0 (scsi)
Disk /dev/sdb: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system     Flags
 1      1049kB  211MB   210MB   primary  ext4            boot
 2      211MB   13.1GB  12.9GB  primary  linux-swap(v1)
 3      13.1GB  320GB   307GB   primary  ext4


== END   parted -l ==

== BEGIN blkid ==
/dev/sda1: LABEL="System Reserved" UUID="22725D03725CDD5B" TYPE="ntfs"
/dev/sda2: UUID="5E5C6B035C6AD575" TYPE="ntfs"
/dev/sdb1: UUID="86beb3e2-d4d5-46ea-a673-34b2098ca6ec" TYPE="ext4"
/dev/sdb2: UUID="32ec81e8-9a38-4008-9607-1b46c86ce858" TYPE="swap"
/dev/sdb3: UUID="e2679d85-6e48-4c85-9b89-27c20ef89671" TYPE="ext4"
== END   blkid ==

== BEGIN cat /proc/mdstat ==
Personalities :
unused devices: <none>
== END   cat /proc/mdstat ==

== BEGIN pvs ==
== END   pvs ==

== BEGIN vgs ==
  No volume groups found
== END   vgs ==

== BEGIN lvs ==
  No volume groups found
== END   lvs ==

== BEGIN rpm -qa kernel\* | sort ==
kernel-2.6.32-220.el6.i686
kernel-devel-2.6.32-220.el6.i686
kernel-firmware-2.6.32-220.el6.noarch
kernel-headers-2.6.32-220.el6.i686
== END   rpm -qa kernel\* | sort ==

== BEGIN lspci -nn ==
00:00.0 Host bridge [0600]: Intel Corporation 82925X/XE Memory Controller Hub [8086:2584] (rev 04)
00:01.0 PCI bridge [0604]: Intel Corporation 82925X/XE PCI Express Root Port [8086:2585] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 [8086:2660] (rev 03)
00:1c.3 PCI bridge [0604]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 4 [8086:2666] (rev 03)
00:1d.0 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 [8086:2658] (rev 03)
00:1d.1 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 [8086:2659] (rev 03)
00:1d.2 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 [8086:265a] (rev 03)
00:1d.3 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 [8086:265b] (rev 03)
00:1d.7 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller [8086:265c] (rev 03)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev d3)
00:1e.2 Multimedia audio controller [0401]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller [8086:266e] (rev 03)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge [8086:2640] (rev 03)
00:1f.1 IDE interface [0101]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller [8086:266f] (rev 03)
00:1f.2 IDE interface [0101]: Intel Corporation 82801FR/FRW (ICH6R/ICH6RW) SATA Controller [8086:2652] (rev 03)
01:00.0 VGA compatible controller [0300]: nVidia Corporation GT216 [GeForce GT 220] [10de:0a20] (rev a2)
01:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be2] (rev a1)
80:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express [14e4:1677] (rev 01)
== END   lspci -nn ==

== BEGIN lsusb ==
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
== END   lsusb ==

== BEGIN rpm -qa kmod\* kmdl\* ==
kmod-alsa-1.0.25-4.el6.elrepo.i686
== END   rpm -qa kmod\* kmdl\* ==

== BEGIN ifconfig -a ==
eth0      Link encap:Ethernet  HWaddr 00:13:21:CA:06:70 
          inet addr:192.xxx.x.xxx  Bcast:192.xxx.x.xxx  Mask:255.x.x.x
          inet6 addr: fe80::213:21ff:feca:670/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2966 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2343 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1696504 (1.6 MiB)  TX bytes:345179 (337.0 KiB)
          Interrupt:19

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:960 (960.0 b)  TX bytes:960 (960.0 b)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:3B:E2:80 
          inet addr:192.xxx.x.xxx  Bcast:192.xxx.x.xxx  Mask:255.x.x.x
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:3939 (3.8 KiB)

virbr0-nic Link encap:Ethernet  HWaddr 52:54:00:3B:E2:80 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

== END   ifconfig -a ==

== BEGIN brctl show ==
bridge name   bridge id      STP enabled   interfaces
virbr0      8000.5254003be280   yes      virbr0-nic
== END   brctl show ==

== BEGIN route -n ==
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.xxx.x.x     0.0.0.0         x.x.x.0   U     0      0        0 eth0
192.xxx.x.x     0.0.0.0         x.x.x.0   U     0      0        0 virbr0
169.x.0.0       0.0.0.0         x.x.0.0   U     1002   0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0   UG    0      0        0 eth0
== END   route -n ==

== BEGIN cat /etc/resolv.conf ==
; generated by /sbin/dhclient-script
search xxx.xxx.net
nameserver 192.xxx.x.xxx
== END   cat /etc/resolv.conf ==

== BEGIN grep net /etc/nsswitch.conf ==
#networks:   nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     
netmasks:   files
networks:   files
netgroup:   nisplus
== END   grep net /etc/nsswitch.conf ==

== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
NetworkManager    0:off   1:off   2:on   3:on   4:on   5:on   6:off
matahari-network   0:off   1:off   2:off   3:off   4:off   5:off   6:off
network           0:off   1:off   2:on   3:on   4:on   5:on   6:off
wpa_supplicant    0:off   1:off   2:off   3:off   4:off   5:off   6:off
== END   chkconfig --list | grep -Ei 'network|wpa' ==


pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[RESOLVED] Sound not working on CentOS 6.2

Postby pschaff » 2012/03/19 11:31:08

ww1er wrote:
...
00:1e.2 Multimedia audio controller [0401]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller [8086:266e] (rev 03)
...
01:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be2] (rev a1)

Perhaps there is confusion between the two different audio devices. Which is physically connected? Can one be disabled in the BIOS or removed?

ww1er
Posts: 3
Joined: 2012/03/17 20:36:58

Sound not working on CentOS 6.2

Postby ww1er » 2012/03/20 04:46:02

To reply to Phil,
The speakers are plug into the motherboard.
The video card only has two ports; VGA and HDMI, so no separate speaker connections there.
Only using VGA port on video card.
Neither sound chip can be removed.
Maybe the HP BIOS will allow me to deactivate the motherboard sound chip, but that is the one I want to use.
How to disable the sound chip on the video card is beyond me at this time.
I had hoped there was a standard way to set what is the default sound card in LINUX, and that by setting that, LINUX would ignore the sound chip in the video card.

Here is a listing showing what kernel driver each sound chip and the video is using.

[root@LINUX1 ~]# lspci -k
....
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
Subsystem: Hewlett-Packard Company Device 3008
Kernel driver in use: snd_intel8x0
Kernel modules: snd-intel8x0
01:00.0 VGA compatible controller: nVidia Corporation GT216 [GeForce GT 220] (rev a2)
Subsystem: Device 196e:0699
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidiafb
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
Subsystem: Device 196e:0699
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel
....

It is interesting that I installed of this "alsa" stuff (see first posting) and there are no "alsa" modules loaded (see first posting).

[root@LINUX1 ~]# grep -i hda /etc/depmod.d/kmod-alsa.conf | grep -i intel
override snd-hda-codec-intelhdmi * weak-updates/alsa
override snd-hda-intel * weak-updates/alsa

[root@LINUX1 ~]# grep -i ac97 /etc/depmod.d/kmod-alsa.conf
override ac97_bus * weak-updates/alsa
override snd-ac97-codec * weak-updates/alsa

If I understand correctly, it looks like /etc/depmod.d/kmod-alsa.conf is trying to redirect ac97 and snd-hba-intel to alsa, but I cannot find alsa loaded.

[root@LINUX1 ~]# lsmod | grep alsa
(( nothing returned ))

[root@LINUX1 ~]# rpm -ql kmod-alsa | grep -i init
(( nothing returned ))

So I cannot see a way to start a "alsa" service or a "alsa" module.
How do I do this?

/usr/share/doc/kmod-alsa-1.0.25/FAQ all start off with "The driver is loaded, but..." and there is nothing about "how to test if driver is loaded" or "how to load the driver".

[root@LINUX1 ~]# ls -ld /proc/asound/*
dr-xr-xr-x. 6 root root 0 Mar 19 19:18 /proc/asound/card0
dr-xr-xr-x. 9 root root 0 Mar 19 19:18 /proc/asound/card1
-r--r--r--. 1 root root 0 Mar 19 19:18 /proc/asound/cards
-r--r--r--. 1 root root 0 Mar 19 19:18 /proc/asound/devices
-r--r--r--. 1 root root 0 Mar 19 19:18 /proc/asound/hwdep
lrwxrwxrwx. 1 root root 5 Mar 19 19:18 /proc/asound/ICH6 -> card1
-r--r--r--. 1 root root 0 Mar 19 19:18 /proc/asound/modules
lrwxrwxrwx. 1 root root 5 Mar 19 19:18 /proc/asound/NVidia -> card0
dr-xr-xr-x. 2 root root 0 Mar 19 19:18 /proc/asound/oss
-r--r--r--. 1 root root 0 Mar 19 19:18 /proc/asound/pcm
dr-xr-xr-x. 2 root root 0 Mar 19 19:18 /proc/asound/seq
-r--r--r--. 1 root root 0 Mar 19 19:18 /proc/asound/timers
-r--r--r--. 1 root root 0 Mar 19 19:18 /proc/asound/version

[root@LINUX1 ~]# cat /proc/asound/card1/id
ICH6

If sound cards are like NICs, where eth0 rules over other ethX cards, how do I cfg LINUX to set card0 to link to ICH6 and make card1 equal NVidia?

Maybe I am going wrong directions, maybe default sound card setting has no bearing on my problem, and problem is that "alsa" is not running on system even though it installed there is no mention of a need to run a post-install script.

I need help, please.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Sound not working on CentOS 6.2

Postby pschaff » 2012/03/20 12:37:18

Do both devices show up in the mixer? If so, make sure the one you want to use is selected and un-muted.

ww1er
Posts: 3
Joined: 2012/03/17 20:36:58

RESOLVED: Sound not working on CentOS 6.2

Postby ww1er » 2012/03/21 06:12:45

SOLVED
RESOLVED
FIXED

Okay, it works now. I don't know why. Here is what I did.
Thanks goes to Phil for poking me in the right direction.

Phil asked if the sound devices showed were listed in the mixer.
Okay, sound is not my thing, what is a "mixer"?
I assumed it was software and that the CentOS 6 supplied "Sound Preferences" was mixer software.
Both sound devices were listed in "Sound Preferences" and all were un-mute but still no sound.

I googled "alsa mixer" since most posting said installing "kmod-alsa" would fix my problem, which it did not.
I found that linuxtech.repo had a gnome-alsamixer for CentOS 6.
http://pkgs.org/centos-6-rhel-6/linuxte ... 6.rpm.html
I installed it.
So now I have installed....

# rpm -qa | grep -i alsa
alsa-utils-1.0.21-3.el6.i686
alsa-lib-1.0.22-3.el6.i686
alsa-lib-devel-1.0.22-3.el6.i686
alsa-plugins-pulseaudio-1.0.21-3.el6.i686
kmod-alsa-1.0.25-4.el6.elrepo.i686
gnome-alsamixer-0.9.7-0.20110630.1.el6.i686

I ran /usr/bin/gnome-alsamixer and it showed two sound devices and everything was muted where at the same time "Sound Preferences" said everything was un-muted.
Using "alsamixer" I un-muted "Analog Device AD1981B" and suddenly I had sound!!!
Good sound.
Watched several YouTube videos with perfect video/sound.
Cannot explain why "alsamixer" and "Sound Preferences" did not display same values for mute/un-mute.

Thx Phil.

So how do I mark a post RESOLVED?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: RESOLVED: Sound not working on CentOS 6.2

Postby pschaff » 2012/03/21 15:41:22

Just what you have done - reply with [SOLVED] (or [RESOLVED] if more appropriate) in the subject, as explained in Readme First, and a moderator should come along and mark the head of the thread on your behalf. The current brain-damaged forum software does not allow a user to do so.


Thanks for reporting back. Marked [RESOLVED] for posterity.

noiissyboy
Posts: 2
Joined: 2017/06/23 19:04:02

Re: [RESOLVED] Sound not working on CentOS 6.2

Postby noiissyboy » 2017/10/20 18:30:05

after installing audacity my audio was gone. uninstalling audacity fixed it.