Sound apparently is muted.

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

Sound apparently is muted.

Postby speeder » Thu Jul 29, 2010 3:27 am

I tried LOTS of stuff, to no effect...
The symptom: EVERYTHING looks normal, except nothing can be heard, like it would happen if your speaker was turned off... The output of everything (even osstest, except for the actual audio) is fine. Also I am sure that all the speakers tested are working fine (I tested with Windows, I have more than one set of speakers)

The story: I installed OSS4 once, it worked fine, until it expired (silly stuff...), also I had installed a new soundcard, so I re-installed OSS4 from source.
After installing OSS4 from source, I ran "osstest" and everything sounded WONDERFUL.
Until I rebooted, after the reboot, I never heard a sound again from OSS4.

Now explaining my setup: I have 3 soundcards, one is the onboard chip, it is disabled on the BIOS, the other is a crappy Crystal Fusion, that I use ONLY FOR MIDI (there are no other jacks on it), and the main (and mentioned new soundcard) is a Audigy SE (or something like that...)

Now, the ossinfo and the ossmix!

[Speeder@Maelstrom ~]$ ossinfo -v3
Version info: OSS 4.2 (b 2003/201007271240) (0x00040100) OSS_HG
Hg revision: changeset: 908:bb2e49f68d63, tag: tip, date: Fri Jul 16 09:44:31 2010 +0300, summary: Changed error code returned by vmix
Platform: Linux/i686 2.6.31.12-174.2.3.fc12.i686 #1 SMP Mon Jan 18 20:22:46 UTC 2010 (Maelstrom)

Number of audio devices: 5
Number of audio engines: 14
Number of MIDI devices: 1
Number of mixer devices: 2


Device objects
0: osscore0 OSS core services
1: oss_audigyls0 AudigyLS interrupts=745 (745)
2: oss_cs42810 CS4281 interrupts=122 (348)
3: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)
0: CS4281 MIDI Port (MIDI port 1 of device object 2)
Device file /dev/oss/oss_cs42810/mid0, Legacy device /dev/midi00
Modes: IN/OUT , Available for use
Caps:
Minimum latency: Not indicated
Device handle: PCI00000000-0000:01:05.0-md01


Mixer devices
0: AudigyLS Mixer (Mixer 0 of device object 1)
Device file /dev/oss/oss_audigyls0/mix0, Legacy device /dev/mixer2
Priority: 1
Caps:
Device handle: PCI100a1102-0000:01:06.0-mx01
Device priority: 1

1: CS4281 AC97 Mixer (CS4299) (Mixer 0 of device object 2)
Device file /dev/oss/oss_cs42810/mix0, Legacy device /dev/mixer0
Priority: 2
Caps:
Device handle: PCI00000000-0000:01:05.0-mx01
Device priority: 2


Audio devices
AudigyLS front /dev/oss/oss_audigyls0/pcm0 (device index 0)
Legacy device /dev/dsp7
Caps: DUPLEX TRIGGER MMAP
Modes: IN/OUT
Engine 1: 0/AudigyLS front
Available for use
Engine 2: 4/AudigyLS front (vmix)
Available for use
Engine 3: 5/AudigyLS front (vmix)
Available for use
Engine 4: 6/AudigyLS front (vmix)
Available for use
Engine 5: 7/AudigyLS front (vmix)
Available for use
Input formats (0x00000410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
Output formats (0x00000410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
Device handle: PCI100a1102-0000:01:06.0-au01
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 1 - 2
Native sample rates (min - max): 48000 - 48000
HW Type: Not indicated.
Minimum latency: Not indicated

AudigyLS center/lfe /dev/oss/oss_audigyls0/pcm1 (device index 1)
Legacy device /dev/dsp8
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 1/AudigyLS center/lfe
Available for use
Input formats (0x00000410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
Output formats (0x00000410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
Device handle: PCI100a1102-0000:01:06.0-au02
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 1 - 2
Native sample rates (min - max): 48000 - 48000
HW Type: Not indicated.
Minimum latency: Not indicated

AudigyLS surround /dev/oss/oss_audigyls0/pcm2 (device index 2)
Legacy device /dev/dsp9
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 2/AudigyLS surround
Available for use
Input formats (0x00000410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
Output formats (0x00000410):
AFMT_S16_LE - 16 bit signed little endian
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
Device handle: PCI100a1102-0000:01:06.0-au03
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 1 - 2
Native sample rates (min - max): 48000 - 48000
HW Type: Not indicated.
Minimum latency: Not indicated

AudigyLS 5.1 output /dev/oss/oss_audigyls0/pcm3 (device index 3)
Legacy device /dev/dsp10
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 3/AudigyLS 5.1 output
Available for use
Input formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Output formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Device handle: PCI100a1102-0000:01:06.0-au04
Related mixer dev: -1
Sample rate source: 0
Preferred channel configuration: MULTICH
Supported number of channels (min - max): 2 - 6
Native sample rates (min - max): 48000 - 48000
HW Type: Not indicated.
Minimum latency: Not indicated

CS4281 /dev/oss/oss_cs42810/pcm0 (device index 4)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER MMAP
Modes: IN/OUT
Engine 1: 8/CS4281
Available for use
Engine 2: 9/CS4281 (vmix)
Available for use
Engine 3: 10/CS4281 (vmix)
Available for use
Engine 4: 11/CS4281 (vmix)
Available for use
Engine 5: 12/CS4281 (vmix)
Available for use
Engine 6: 13/CS4281
Available for use
Input formats (0x00000018):
AFMT_U8 - 8 bit unsigned
AFMT_S16_LE - 16 bit signed little endian
Output formats (0x00000018):
AFMT_U8 - 8 bit unsigned
AFMT_S16_LE - 16 bit signed little endian
Device handle: PCI00000000-0000:01:05.0-au01
Related mixer dev: 1
Sample rate source: 8
Preferred channel configuration: Not indicated
Supported number of channels (min - max): 1 - 2
Native sample rates (min - max): 6023 - 48000
HW Type: Not indicated.
Minimum latency: Not indicated


Nodes
/dev/dsp -> /dev/oss/oss_audigyls0/pcm0
/dev/dsp_in -> /dev/oss/oss_cs42810/pcm0
/dev/dsp_out -> /dev/oss/oss_cs42810/pcm0
/dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
/dev/dsp_mmap -> /dev/oss/oss_cs42810/pcm0
/dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
[Speeder@Maelstrom ~]$ ossmix
Selected mixer 0/AudigyLS Mixer
Known controls are:
pcm [<leftvol>:<rightvol>] (currently 100:100)
rear [<leftvol>:<rightvol>] (currently 0:0)
center [<leftvol>:<rightvol>] (currently 0:0)
ext.spread ON|OFF (currently OFF)
ext.loopback ON|OFF (currently OFF)
ext.recordvol <monovol> (currently 193)
ext.recordsrc <MIC|LINE|AUX> (currently MIC)
ext.monitorvol <monovol> (currently 145)
ext.recmon ON|OFF (currently OFF)
vmix0-enable ON|OFF (currently OFF)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-src <Fast|High|OFF> (currently High)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm5 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm6 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm7 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
[Speeder@Maelstrom ~]$
speeder
New Member
 
Posts: 3
Joined: Thu Jul 29, 2010 3:17 am

Re: Sound apparently is muted.

Postby speeder » Thu Jul 29, 2010 12:04 pm

Ok, I tried re-installing... now things are WORSE...

make install is throwing that error:


Building module osscore
Building module lynxone
Compiling module lynxone failed
make[1]: Entering directory `/usr/lib/oss/build'
make -C /lib/modules/2.6.31.12-174.2.3.fc12.i686/build M=/usr/lib/oss/build modules
make[2]: Entering directory `/usr/src/kernels/2.6.31.12-174.2.3.fc12.i686'
make[3]: *** No rule to make target `/usr/lib/oss/build/lynxone.c', needed by `/usr/lib/oss/build/lynxone.o'. Stop.
make[2]: *** [_module_/usr/lib/oss/build] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.31.12-174.2.3.fc12.i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/lib/oss/build'
make: *** [install] Error 4
speeder
New Member
 
Posts: 3
Joined: Thu Jul 29, 2010 3:17 am

Re: Sound apparently is muted.

Postby igorzwx » Thu Jul 29, 2010 12:22 pm

speeder wrote:Ok, I tried re-installing... now things are WORSE...

make install is throwing that error:


Building module osscore
Building module lynxone
Compiling module lynxone failed
make[1]: Entering directory `/usr/lib/oss/build'
make -C /lib/modules/2.6.31.12-174.2.3.fc12.i686/build M=/usr/lib/oss/build modules
make[2]: Entering directory `/usr/src/kernels/2.6.31.12-174.2.3.fc12.i686'
make[3]: *** No rule to make target `/usr/lib/oss/build/lynxone.c', needed by `/usr/lib/oss/build/lynxone.o'. Stop.
make[2]: *** [_module_/usr/lib/oss/build] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.31.12-174.2.3.fc12.i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/lib/oss/build'
make: *** [install] Error 4


First, you remove oss
Then, you remove the folder /usr/lib/oss

Then, you may try to install again.

It makes sense to train with a LiveCD first.



speeder wrote:make[2]: Entering directory `/usr/src/kernels/2.6.31.12-174.2.3.fc12.i686'


You kernel is relatively old. This might be the cause of troubles.

Do you have Ubuntu, or Debian, or what?

Archiso-live LiveCD (20100725 Release •July 25, 2010) has already kernel 2.6.34
http://godane.wordpress.com/

http://arch-live.isawsome.net/iso/archi ... kages.list
kernel26-zen 2.6.34-2live
kernel26-zen-headers 2.6.34-2live

http://arch-live.isawsome.net/iso/archi ... kages.list
kernel26 2.6.34-3live
kernel26-headers 2.6.34-3live


EDIT: There are bug reports for that old kernel 2.6.31 (for ALSA), for example:
Bug #535622 in linux (Ubuntu): “no sound after update to 2.6.31-20”
10 Mar 2010 ... After upgrading from 2.6.31-19 to 2.6.31-19 I have no more sound, and the alsamixer and gnome mixer don't show any playback devices, ...
https://bugs.launchpad.net/ubuntu/+sour ... bug/535622
igorzwx
Supporter
 
Posts: 994
Joined: Sun Jun 28, 2009 9:31 pm

Re: Sound apparently is muted.

Postby speeder » Thu Jul 29, 2010 2:12 pm

Hello again...

I am using Fedora 12 with a custom kernel that I compiled to make OSS work (the default kernel disliked OSS)

Anyway, I found something even more wierd.

I rebooted, and found no sound on windows too.
I removed the power cord, and booted windows again. sound worked.
rebooted to fedora, sound stopped.
rebooted to windows, sound stopped.
removed the power cord, booted windows. sound worked.
rebooted to windows again. sound worked.
booted fedora. sound stopped.
booted windows. sound stopped.
removed power cord, booted fedora, sound stopped.
booted windows. sound stopped.


This made me reach the following conclusion: For some reason, OSS is disabling the sound card, and the only way to reset it, is removing the power from the card. upon doing that, it returns to normal operation, until I attempt again to use OSS (that disables it again).
speeder
New Member
 
Posts: 3
Joined: Thu Jul 29, 2010 3:17 am

Re: Sound apparently is muted.

Postby igorzwx » Thu Jul 29, 2010 2:18 pm

speeder wrote:Hello again...

I am using Fedora 12 with a custom kernel that I compiled to make OSS work (the default kernel disliked OSS)

Anyway, I found something even more wierd.

I rebooted, and found no sound on windows too.
I removed the power cord, and booted windows again. sound worked.
rebooted to fedora, sound stopped.
rebooted to windows, sound stopped.
removed the power cord, booted windows. sound worked.
rebooted to windows again. sound worked.
booted fedora. sound stopped.
booted windows. sound stopped.
removed power cord, booted fedora, sound stopped.
booted windows. sound stopped.


This made me reach the following conclusion: For some reason, OSS is disabling the sound card, and the only way to reset it, is removing the power from the card. upon doing that, it returns to normal operation, until I attempt again to use OSS (that disables it again).


As I remember, I similar problem was reported for Ubuntu and Windows, but for ALSA.
It was fixes by changing something in ALSA config.
More exactly:
http://forum.ubuntu.ru/index.php?topic= ... #msg619057
в файле /etc/init.d/alsa-utils нужно закомментить 378 строку

# mute_and_zero_levels "$TARGET_CARD" || EXITSTATUS=1

Just comment out that line (no. 378) in /etc/init.d/alsa-utils
http://ubuntuforums.org/showpost.php?p= ... ostcount=9

EDIT:
In nature, it might be a kernel problem, first of all. There are kernel patches for Arch, and Ubuntu (PPA repositories), there should be something for Fedora too, I presume.
igorzwx
Supporter
 
Posts: 994
Joined: Sun Jun 28, 2009 9:31 pm

Re: Sound apparently is muted.

Postby cesium » Fri Jul 30, 2010 1:34 am

Hmm.. Do you recall which OSS version you used? Maybe you can try building a previous stable version which is the same as the one you used. Erase /usr/lib/oss and rebuild that version (you already know how to build OSS I see) and see if that works.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest