soundcard troubleshooting....

David Armour d.f.armour at shaw.ca
Fri Oct 20 18:59:43 UTC 2006


i gather that esd/alsa/oss don't play that well together, but i don't 
really know
what to believe at this point.

# results of: aplay -D default test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian,
Rate 22050 Hz, Monodfa2 at ...

googling just seems to dig the hole deeper, so i'd welcome any response, 
really.

xmms/streamtuner work sometimes, and sometimes don't. currently, not. 
instead,
 a small, 'dialog' window appears:

couldn't open audio
please check that: [space]
your soundcard is configured properly
you have the correct output plugin selected
no other program is blocking the soundcard [OK]

can anyone recommend soundcard configuring documentation in ubuntu edgy
that might help me understand why following the directions from the 
unofficial
ubuntu edgy guide hasn't worked?
...
sudo killall esd
sudo cp /etc/esound/esd.conf /etc/esound/esd.conf_backup
gksudo gedit /etc/esound/esd.conf        
    * Find this section
...
auto_spawn=0
spawn_options=-terminate -nobeeps -as 5
...
    * Replace with the following lines
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default
    * Save the edited file [1]
sudo apt-get install libesd-alsa0
gksudo gedit /etc/asound.conf            
    * Insert the following lines into the new /etc/asound.conf file:
pcm.card0 {
type hw
card 0
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}

    * Save the edited file [2]
sudo ln -fs /usr/lib/libesd.so.0 /usr/lib/libesd.so.1     #already 
installed,updated
System -> Preferences -> Sound
Sound preferences
General Tab -> Sounds for events (Un-Checked)
    * Save and close all opened applications, Reboot computer

# results of: cat /dev/sndstat
Sound Driver: 3.8.1a-980706 (ALSA v1.0.10rc3 emulation code)
Kernel: Linux workhorse2 2.6.15-27-386 #1 PREEMPT
Sat Sep 16 01:51:59 UTC 2006 i686

Config options: 0
Installed drivers:  Type 10: ALSA emulation
Card config: SiS SI7012 with CMI9738 at 0xe800, irq 193
Audio devices: 0: SiS SI7012 (DUPLEX)
Synth devices: NOT ENABLED IN CONFIG
Midi devices: NOT ENABLED IN CONFIG
Timers: 7: system timer
Mixers: 0: C-Media Electronics CMI9738

# results of: ls -al /dev | grep dsp
crw-rw----  1 root audio    14,  12 2006-10-18 14:56 adsp
crw-rw----  1 root audio    14,   3 2006-10-18 14:56 dsp

# results of: cat /proc/interrupts
           CPU0
  0:   16181030    IO-APIC-edge  timer
  1:       6278    IO-APIC-edge  i8042
  7:          0    IO-APIC-edge  parport0
  8:          3    IO-APIC-edge  rtc
  9:          0   IO-APIC-level  acpi
 12:     527414    IO-APIC-edge  i8042
 14:      96297    IO-APIC-edge  ide0
 15:    3066409    IO-APIC-edge  ide1
169:          0   IO-APIC-level  ohci_hcd:usb1
177:         34   IO-APIC-level  ohci_hcd:usb2
185:          2   IO-APIC-level  ehci_hcd:usb3
193:    1515398   IO-APIC-level  SiS SI7012
201:      58065   IO-APIC-level  eth0
NMI:          0
LOC:   16181008
ERR:          0
MIS:          0

# results of: /sbin/lsmod
Module                  Size  Used by
binfmt_misc            12296  1
rfcomm                 40216  0
l2cap                  26244  5 rfcomm
bluetooth              50020  4 rfcomm,l2cap
ppdev                   9220  0
cpufreq_userspace       4696  0
cpufreq_stats           5636  0
freq_table              4740  1 cpufreq_stats
cpufreq_powersave       1920  0
cpufreq_ondemand        6428  0
cpufreq_conservative     7332  0
video                  16260  0
tc1100_wmi              6916  0
sony_acpi               5644  0
pcc_acpi               12416  0
hotkey                 11556  0
dev_acpi               11140  0
container               4608  0
button                  6672  0
acpi_sbs               19980  0
battery                 9988  1 acpi_sbs
ac                      5252  1 acpi_sbs
i2c_acpi_ec             5120  1 acpi_sbs
ipv6                  265728  8
dm_mod                 58936  1
af_packet              22920  2
md_mod                 72532  0
lp                     11844  0
tsdev                   8000  0
rsrc_nonstatic         13440  0
pcmcia_core            42640  1 rsrc_nonstatic
parport_pc             35780  1
pcspkr                  2180  0
psmouse                36100  0
parport                36296  3 ppdev,lp,parport_pc
rtc                    13492  0
i2c_sis96x              5764  0
floppy                 62148  0
sis900                 22912  0
i2c_core               21904  2 i2c_acpi_ec,i2c_sis96x
mii                     5888  1 sis900
serio_raw               7300  0
snd_intel8x0           33692  3
snd_ac97_codec         93216  1 snd_intel8x0
snd_ac97_bus            2304  1 snd_ac97_codec
snd_pcm_oss            53664  0
snd_mixer_oss          18688  1 snd_pcm_oss
sis_agp                 8708  1
snd_pcm                89864  4 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              25220  2 snd_pcm
agpgart                34888  1 sis_agp
shpchp                 45632  0
pci_hotplug            29236  1 shpchp
snd                    55268  10 
snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              10208  1 snd
snd_page_alloc         10632  2 snd_intel8x0,snd_pcm
evdev                   9856  1
ext3                  135816  1
jbd                    58772  1 ext3
ide_generic             1536  0
ehci_hcd               34184  0
ohci_hcd               21892  0
usbcore               130820  3 ehci_hcd,ohci_hcd
ide_cd                 33028  0
cdrom                  38560  1 ide_cd
ide_disk               17664  3
sis5513                17032  1
generic                 5124  0
thermal                13576  0
processor              23360  1 thermal
fan                     4868  0
capability              5000  0
commoncap               7296  1 capability
vga16fb                13704  1
vgastate               10368  1 vga16fb
fbcon                  42784  72
tileblit                2816  1 fbcon
font                    8320  1 fbcon
bitblit                 6272  1 fbcon
softcursor              2304  1 bitblit


notes:
[1] contents of /etc/esound/esd.conf:
[esd]
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=

[2] contents of /etc/asound.conf:

pcm.card0 {
type hw
card 0
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}

[3] 
http://ubuntuguide.org/wiki/Ubuntu_Edgy#How_to_configure_sound_to_work_properly_in_GNOME





More information about the ubuntu-users mailing list