Bug 166005

Summary: Problem with sound on Via Ac97 after installation.
Product: [Fedora] Fedora Reporter: Rafal Komar <m.komar>
Component: alsa-libAssignee: Martin Stransky <stransky>
Status: CLOSED WORKSFORME QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 4CC: piskozub
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-07 10:47:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rafal Komar 2005-08-15 18:06:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6

Description of problem:
Sound is distorted with lots of crackling. Everything is played with a few seconds delay. Sound is clear only when I'm watching TV from tv tuner. Line-in doesn't cause problems. 

Here are informations about my PCI devices:

00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 03)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 16)
00:07.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 16)
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 50)
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0c.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev a1)

Version-Release number of selected component (if applicable):
alsa-lib-1.0.9rf-2.FC4

How reproducible:
Always

Steps to Reproduce:
Always when sound is playing.
  

Additional info:

I solved this problem by adding .asoundrc file to my home directory.

pcm.card0 {
    type hw
    card 0
}
pcm.!default {
    type dmix
    ipc_key 1025
    slave {
            pcm "hw:0,0"
            period_time 0
            period_size 4096
            buffer_size 16384
            periods 128
            rate 44100
        }
        bindings {
                0 0
                1 1
        }
}

Mayby there is a better solution, but it works very good.

Comment 1 Martin Stransky 2005-08-16 11:11:36 UTC
Will it work if you remove these lines?

period_time 0
period_size 4096
buffer_size 16384
periods 128
rate 44100

Comment 2 Rafal Komar 2005-08-16 13:20:38 UTC
(In reply to comment #1)
> Will it work if you remove these lines?
> 
> period_time 0
> period_size 4096
> buffer_size 16384
> periods 128
> rate 44100

Yes, it works without this lines.

Comment 3 Martin Stransky 2005-08-16 14:40:23 UTC
And does it work without these lines?

        bindings {
                0 0
                1 1
        }


Comment 4 Rafal Komar 2005-08-16 17:19:41 UTC
It works with almost all applications. But it cause an error in mplayer, xmms
and beep-media-player.

Could not open/intialize audio device -> no sound.

Changing configuration of these programs doesn't help.

Comment 5 Martin Stransky 2005-10-07 12:06:43 UTC
What happens if you remove your .asoundrc file and use the "dmix" ALSA device? 
(in xmms or mplayer, you simply use "dmix" instead of "default"). Does sound
work properly?

Comment 6 Jacek Piskozub 2005-10-10 09:15:00 UTC
What if I have no .asoundrc file and still see this problem?

Comment 7 Martin Stransky 2005-10-10 09:23:06 UTC
And what about dmix plugin? Did you test it instead of the default?

Comment 8 Rafal Komar 2005-10-10 11:10:39 UTC
If I remove .asoundrc file. I can solve problem with sound in all multimedia
applications (xmms, mplayer, xine and others) by choosing alsa or dmix plugin
instead default. Problem exist when I choose arts or oss plugin. Only when I
play  games .asoundrc file is still needed.

How could I remove all sound daemons like arts and oss and leave only alsa?
Mayby this will solve problem with sound in games?

Comment 9 Martin Stransky 2005-11-04 10:29:27 UTC
You can stop arts in kde control center. OSS is only an emulation layer for
ALSA, so you don't have to stop it.