PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ALSA: Annoying background noises in some circumstances



ecv
18.03.11, 15:02
Ich habe ein wirklich nervendes Problem mit meinem Sound-setup. Bei so ziemlich jeder Anwendung die läuft während ich Musik höre taucht ein knistern oder rascheln, oder was auch immer das ist, in meiner Audioausgabe auf.

Wenn ich zum Beispiel ein mp3 mit Rhythmbox höre (oder mit Banshee oder mit Totem, egal eigentlich) während ich im Web Browse ist hier die Hölle los, bei jedem Scrollen der Seite ( mit Mausrad oder Tastatur, egal) tauht dieses Geräusch auf.
Nur Musik hören ohne was nebenbei zu machen ist kein Problem.
Es scheint auch nicht wirklich was mit CPU-Last zu tun zu haben: Ich kann meine CPU auslasten z.B ein 3D-Bild rendern oder eine Datenbank sichern und ich habe glasklaren sound. Sobald ich dann vielleicht im Dateimanager nach unten scrolle ist es da, das Rascheln!

Das gleiche gilt für Spiele wie z.B. Nexuiz mit höchsten Grafikeinstellungen: Das Spiel ruckelt, klar, ist ein schwacher Rechner im Vergleich, aber es gibt keinerlei Soundprobleme.

Ich verwende on-board sound, lspci sagt es ist ein VIA Technologies, Inc. VT1708/A [Azalia HDAC] (VIA High Definition Audio Controller) (rev 10), reines ALSA setup, kein pulse/esd oder so. Hab zu Unstable gewqechselt um zu schauen ob ein neuer Kernel oder neue Softwareabhilfe erschafft, tat es aber nicht!

Ich habe jetzt Debian Unstable - 2.6.38-2-amd64 kernel mit dem Gnome-Desktop am laufen. Wenn mehr Infos nötig sind, kein Problem, bitte sagt mir welche!

Folgendes musste ich damals einstellen um überhaupt sound zu bekommen, da debian meinen On-Board Sound nicht korrekt erkannt hat:

Um On-Board Sound Systemweit zum Standard zu machen: /etc/asound.conf:


# Modified as per http://www.linuxquestions.org/questions/debian-26/sound-problems-with-new-squeeze-install-859148/
pcm.!default {
type hw
card VT82xx
}

ctl.!default {
type hw
card VT82xx
}

Letzte Zeile in /etc/modprobe.d/alsa-base.conf:


# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }

# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2

# Reordering devices (does not work, still some research needed *g*)
# Intel HDA : move HDMI to end of list, pull VIA Sound to index 0
# options snd-hda-intel index=0 vid=0x1106 pid=0x3288 model=3stack enable_msi=0
# Puts Webcam-Sound at slot 1
# options snd-usb-audio index=1 vid=0x046d pid=0x08a2

# added as per http://ubuntuforums.org/showthread.php?t=803343
# to enable alsa-sound: enable_msi is just experimental, as is 3stack, works with 6stack, stutters with both :(
options snd-hda-intel model=3stack enable_msi=0


Um dem FGLRX Treiber das Meckern abzugewöhnen (irq wasauchimmer blah-error) starte ich mit der Kerneloption :


pci=nomsi


Für den Surround-Sound hab ich ein paar verschiedene ~/.asoundrc quellen zusammengeschraubt:


pcm {
snd_card {
type hw
card VT82xx
device 0
}

# Nothin much happens here. Basicly, what goes in comes out again
dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm snd_card
# "cat /proc/asound/card{$number}/pcm0p/sub0/hw_params"
# replace number with your device number, subdevices may vary,
# use tab-completion (double-tab *g*)
period_size 2720
buffer_size 5440
rate 48000
channels 6
# These dont seem to do anything!
# period_time 84000
# buffer_time 840000
}
}

# Distributes Stereo signals across you 5.1 setup
# ttable.inputCH.outputCH volume?
upmixer {
type route
slave {
pcm dmixer
channels 6
}
ttable {
0.0 1.0
0.2 0.6
0.4 0.3
0.5 0.3

1.1 1.0
1.3 0.6
1.4 0.3
1.5 0.3
}
}

# This thing supposedly takes care of any inputs up to two channels
# Never used this, so it's untested
dsnooper {
type dsnoop
ipc_key 2048
ipc_perm 0666
slave
{
pcm snd_card
# period_time 0
period_size 2048
buffer_size 32768
channels 2
}
bindings {
0 0
1 1
}
}

duplex {
type asym
playback {
pcm upmixer # Upmixing is default, no problems so far, 5.1 Surround!
# pcm dmixer # Some sort of Fallback, Only two front channels
}
capture {
pcm dsnooper # Untested, but included 'cause everyone seems to do this *g*
}
}

!default {
type plug
slave {
pcm duplex
}
}

# this should make flash work but doesnt :(
dsp {
type plug
slave {
pcm upmixer
}
}

dsp0 {
type plug
slave {
pcm upmixer
}
}

dsp1 {
type plug
slave {
pcm upmixer
}
}
}

ctl {
snd_card {
type hw
card VT82xx
device 0
}
}


lspci -v Ausgabe (nur der Audio Abschnitt)


02:00.1 Audio device: ATI Technologies Inc RV630/M76 audio device [Radeon HD 2600 Series]
Subsystem: Micro-Star International Co., Ltd. Device aa08
Flags: bus master, fast devsel, latency 0, IRQ 25
Memory at dfefc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel

80:01.0 Audio device: VIA Technologies, Inc. VT1708/A [Azalia HDAC] (VIA High Definition Audio Controller) (rev 10)
Subsystem: ASUSTeK Computer Inc. Device 81b3
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at bfffc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel


aplay -l (postet irgenwie jeder, ich auch :)):


Karte 0: HDMI [HDA ATI HDMI], Gerät 3: HDMI 0 [HDMI 0]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 1: VT82xx [HDA VIA VT82xx], Gerät 0: AD198x Analog [AD198x Analog]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 1: VT82xx [HDA VIA VT82xx], Gerät 1: AD198x Digital [AD198x Digital]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0


Alles läuft sonst bestens, bis auf das Soundproblem mit dem Rascheln, Knistern oder was auch immer!

Naja, fast alles, OSS und Flash wollen nicht wirklich, was mir grad aber nicht viel ausmacht. Wäre aber schön das in den Griff zu bekommen, möchte endlich mal richtig angeben können mit meinem Debian *g*
Falls es eine Hilfe ist, ich schliesse ein Hardware-Problem aus, das WinXP und Win7 auf dieser Hardware keinerlei Probleme hat.

roadracer
18.03.11, 15:21
It's maybe better to use an english forum for your question such as http://www.linuxforums.org/

But if you're lucky someone here knowing the problem and its answer will tell you how to fix your problem ;).

Greets Nick

ecv
19.03.11, 11:20
Hi Nick, danke für die Reaktion.

Da habe ich mich die letzten Tage durch so viele Foren gewühlt das ich kaum noch bemerkt habe was Englisch und was Deutsch ist :) Sorry. Werde den Beitrag morgen auf Deutsch übersetzen :)

ecv
07.04.11, 17:48
Danke an Nick nochmal für den Hinweis. Hab ich echt nicht gemerkt das das hier ein deutsches Forum ist. Ahrg! Hoffe jetzt kann mir jemand Helfen hier!!