Debian squeeze - zvuk len pre jednu aplikaciu

Petr Šobáň soban na soban.cz
Úterý Srpen 4 11:13:05 CEST 2009


Dne 3.8.2009 20:14, Martin Tirsel napsal(a):
> Zdravim,
> 
> po jednom z poslednych updatov mi prestal fungovat zvuk, teda on
> funguje, ale len pre tu aplikaciu, ktora si ho skorej uchmatne. O zvuku
> na linuxu viem velke kulove a nemam sa nejako ani od coho odrazit, vie
> niekto poradit, co s tym, pripadne na co sa zamerat? V logoch som nasiel
> toto:
> 
> Aug  3 19:30:02 pigtower kernel: [  119.210208] gnome-volume-co[4534]
> trap divide error ip:414e63 sp:7fff18f28420 error:0 in
> gnome-volume-control.pulse[400000+20000]
> Aug  3 19:30:07 pigtower pulseaudio[4060]: alsa-source.c: Increasing
> minimal latency to 1.00 ms
> Aug  3 19:35:58 pigtower pulseaudio[4060]: alsa-source.c: Increasing
> minimal latency to 2.00 ms
> Aug  3 19:44:21 pigtower pulseaudio[4060]: alsa-sink.c: ALSA woke us up
> to write new data to the device, but there was actually nothing to write!
> Aug  3 19:44:21 pigtower pulseaudio[4060]: alsa-sink.c: Most likely this
> is a bug in the ALSA driver '(null)'. Please report this issue to the
> ALSA developers.
> Aug  3 19:44:21 pigtower pulseaudio[4060]: alsa-sink.c: We were woken up
> with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or
> another value < min_avail.
> Aug  3 19:45:47 pigtower pulseaudio[4060]: alsa-source.c: Error opening
> PCM device front:0: Device or resource busy
> Aug  3 19:47:39 pigtower pulseaudio[4060]: alsa-source.c: Error opening
> PCM device front:0: Device or resource busy
> Aug  3 19:47:43 pigtower pulseaudio[4060]: alsa-sink.c: Error opening
> PCM device front:0: Device or resource busy
> Aug  3 19:54:03 pigtower pulseaudio[4060]: ratelimit.c: 4 events suppressed
> Aug  3 19:54:03 pigtower pulseaudio[4060]: alsa-source.c: Increasing
> minimal latency to 4.00 ms
> Aug  3 19:55:40 pigtower pulseaudio[4060]: alsa-sink.c: Error opening
> PCM device front:0: Device or resource busy
> 
> 
> Amarok alebo flash player na tomto zmrzmu a musim ich killovat, co je
> dost neprijemne :(
> 
> 
> Vdaka,

Jste si to rozhodil.

Jsou dvě možnosti buď nebudete používat pulseaudio a vše budete hnát
přes alsu na které rozběhnete dmix (u nových stačí smazat konfigurák alsy).

A nebo si musíte spravit to pulse audio a potom používat pulseaudio
místo alsy.

Co používají vaše programy?

Co máte v /etc/asound.conf ?

Já tam mám:

 [petr na nt /etc]$ cat asound.conf
 #
 # Place your global alsa-lib configuration here...
 #

 @hooks [
 	{
 		func load
 		files [
 			"/etc/alsa/pulse-default.conf"
 		]
 		errors false
 	}
 ]

A v /etc/alsa/pulse-default.conf

[petr na nt ~]$ cat /etc/alsa/pulse-default.conf
# PulseAudio plugin configuration
# $Id: pulse-default.conf,v 1.3 2008/03/09 15:50:49 lkundrak Exp $

# Let's create a virtual device "pulse" for mixer and PCM

pcm.pulse {
    type pulse
    hint {
        description "PulseAudio Sound Server"
    }
}

ctl.pulse {
    type pulse
    hint {
        description "PulseAudio Sound Server"
    }
}

# Let's make it the default!

pcm.!default {
    type pulse
    hint {
        description "Default"
    }
}

ctl.!default {
    type pulse
    hint {
        description "Default"
    }
}






-- 

/----------------------------------------\
|            Petr Šobáň                  |
|            Olomouc                     |
|----------------------------------------|
|    ICQ    179223500                    |
|    jabber soban_petr na jabber.org        |
\----------------------------------------/

Pamäť sa stráca vtedy, keď sa necvičí.
		-- Cicero




Další informace o konferenci Linux