PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Probleme mit Alsa



Destroyer4000
01.11.13, 13:59
Hallo,

Ich habe es soweit geschafft, Arch Linux zu konfigurieren. Nur habe ich jetzt folgendes
Problem. nach der Alsa Konfiguration ist es nun möglich meine Soundkarte Audigy 2 von
creative zu benutzen. Dabei musste ich nichts an der .asoundrc machen. Die Karte lief von
Werk aus einwandfrei. Mit einwandfrei möchte ich betonen, dass ich komischerweise auch direkt
im mixer unter kde auch lfe pegel und surroundpegel einstellen konnte. Somit hatte ich schon
von Werk aus 5.1 Sound auch bei Stereoquellen wurde der LFE angesprochen, obwohl ich in der
asoundrc nichts gemacht habe, weder upmix noch sonst etwas.

Doch nun das Problem: Nun möchte ich trotzdem einen Lowpassfilter für den Lfe, da er das
komplette frequenzspektrum abbekommt. Ich habe die Ladspa plugins installiert und
dementsprechend auch die asoundrc editiert, jedoch tut sich da nix wirklich, der Sound bleibt
wie er ist.

meine .asoundrc, wie ich den upmix realisiert hätte, wenn er nicht schon von werk an da wäre)


pcm.snd_card {
type hw
card 1
device 0
}

ctl.snd_card {
type hw
card 1
device 0
}

pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave.pcm "snd_card"
slave {
period_time 0
period_size 1024
buffer_size 4096
rate 44100
channels 6
}
bindings {
0 0
1 1
2 2
3 3
4 4
5 5
}
}

pcm.dsnooper {
type dsnoop
ipc_key 2048
ipc_perm 0666
slave.pcm "snd_card"
slave
{
period_time 0
period_size 1024
buffer_size 4096
rate 44100
channels 2
}
bindings {
0 0
1 1
}
}

pcm.duplex {
type asym
# Wenn man nur Stereo-Signale hat, so kann man alle upmixen lassen:
# playback.pcm "upmix"
# Falls nicht, so wählt man den normalen Weg
playback.pcm "dmixer"
# und spricht den upmix direkt an; zB "aplay -D upmix sound.wav"
# In den allermeisten Fällen wird die Aufnahme nur Stereo sein:
capture.pcm "dsnooper"
}

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

pcm.upmix {
type route
slave.pcm dmixer
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.5
ttable.1.4 0.5
ttable.0.5 0.5
ttable.1.5 0.5
}


Meine asoundrc mit lfe, da tut sich aber nix:


pcm.upmix_20to51 {
type plug
slave.pcm lowpass_21to21
slave.channels 3
ttable {
0.0 1 # left channel
1.1 1 # right channel
0.2 0.5 # mix left and right ...
1.2 0.5 # ... channel for subwoofer
}
}

pcm.lowpass_21to21 {
type ladspa
slave.pcm upmix_21to51
path "/usr/lib/ladspa"
channels 3
plugins {
0 {
id 1098 # Identity (Audio) (1098/identity_audio)
policy duplicate
input.bindings.0 "Input";
output.bindings.0 "Output";
}
1 {
id 1672 # 4 Pole Low-Pass Filter with Resonance (FCRCIA) (1672/lp4pole_fcrcia_oa)
policy none
input.bindings.2 "Input";
output.bindings.2 "Output";
input {
controls [ 300 2 ]
}
}
}
}

pcm.upmix_21to51 {
type plug
slave.pcm surround51
slave.channels 6
ttable {
0.0 1 # front left
1.1 1 # front right
0.2 1 # rear left
1.3 1 # rear right
0.4 0.5 # center
1.4 0.5 # center
2.5 1 # subwoofer
}
}


aplay -l


**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 0: emu10k1 [ADC Capture/Standard PCM
Playback]
Subdevices: 32/32
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
Subdevice #8: subdevice #8
Subdevice #9: subdevice #9
Subdevice #10: subdevice #10
Subdevice #11: subdevice #11
Subdevice #12: subdevice #12
Subdevice #13: subdevice #13
Subdevice #14: subdevice #14
Subdevice #15: subdevice #15
Subdevice #16: subdevice #16
Subdevice #17: subdevice #17
Subdevice #18: subdevice #18
Subdevice #19: subdevice #19
Subdevice #20: subdevice #20
Subdevice #21: subdevice #21
Subdevice #22: subdevice #22
Subdevice #23: subdevice #23
Subdevice #24: subdevice #24
Subdevice #25: subdevice #25
Subdevice #26: subdevice #26
Subdevice #27: subdevice #27
Subdevice #28: subdevice #28
Subdevice #29: subdevice #29
Subdevice #30: subdevice #30
Subdevice #31: subdevice #31
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 2: emu10k1 efx [Multichannel
Capture/PT Playback]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 3: emu10k1 [Multichannel Playback]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 4: p16v [p16v]
Subdevices: 1/1
Subdevice #0: subdevice #0


aplay -L


card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 0: emu10k1 [ADC Capture/Standard PCM
Playback]
Subdevices: 32/32
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
Subdevice #8: subdevice #8
Subdevice #9: subdevice #9
Subdevice #10: subdevice #10
Subdevice #11: subdevice #11
Subdevice #12: subdevice #12
Subdevice #13: subdevice #13
Subdevice #14: subdevice #14
Subdevice #15: subdevice #15
Subdevice #16: subdevice #16
Subdevice #17: subdevice #17
Subdevice #18: subdevice #18
Subdevice #19: subdevice #19
Subdevice #20: subdevice #20
Subdevice #21: subdevice #21
Subdevice #22: subdevice #22
Subdevice #23: subdevice #23
Subdevice #24: subdevice #24
Subdevice #25: subdevice #25
Subdevice #26: subdevice #26
Subdevice #27: subdevice #27
Subdevice #28: subdevice #28
Subdevice #29: subdevice #29
Subdevice #30: subdevice #30
Subdevice #31: subdevice #31
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 2: emu10k1 efx [Multichannel
Capture/PT Playback]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 3: emu10k1 [Multichannel Playback]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 4: p16v [p16v]
Subdevices: 1/1
Subdevice #0: subdevice #0
[jens@timobeilpc ~]$ ^C
[jens@timobeilpc ~]$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
HDMI Audio Output
sysdefault:CARD=Audigy2
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
Default Audio Device
front:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
Front speakers
rear:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
Rear speakers
center_lfe:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
Center and Subwoofer speakers
side:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
Side speakers
surround40:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
4.0 Surround output to Front and Rear speakers
surround41:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Audigy2,DEV=0
SB Audigy 2 Platinum [SB0240P], ADC Capture/Standard PCM Playback
IEC958 (S/PDIF) Digital Audio Output


http://imageshack.us/a/img401/9043/fbrt.th.jpg (http://imageshack.us/photo/my-images/401/fbrt.jpg/)

Vielen Dank im Vorraus !!!

Destroyer4000
03.11.13, 18:41
Habe mich jetzt mehr mit alsa beschäftigt und verstehe jetzt auch mehr von der .asoundrc.
Wenn ich das erstellte device mit speaker-test oder dem alsaplayer teste habe ich jedoch, wenn ich im alsamixer alle kanäle außer den lfe runterdrehe immer noch das volle frequenzspektrum auf dem subwoofer. Irgendwie scheint irgendwo systemwide schon ein upmix aktiv zu sein, der mir die einstellungen quasi überschreibt. Denn irgendwie habe ich ja schon einen upmix "out of the box" ohne die asoundrc, was ich schon komisch finde.

Habe jetzt die Nvidia Ausgabe deaktiviert und somit nur noch eine Audiokarte, nämlich die Audigy2.

Meine .asoundrc:


# ALSA configuration for use with surround speaker sets.
# Provides on-demand upmixing via plugin plus
# lowpass filtering/crossover capability plus
# software-mixing/dmix support.
# Possibly useful sources include:
# https://wiki.archlinux.org/index.php/Alsa
# http://www.volkerschatz.com/noise/alsa.html
# http://www.sabi.co.uk/Notes/linuxSoundALSA.html
# http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
# For those who understand German: http://wiki.ubuntuusers.de/.asoundrc


# Change default samplerate conversion algorithm to
# SRC_SINC_MEDIUM_QUALITY. Requires package "libsamplerate".
# See http://www.mega-nerd.com/SRC/api_misc.html.
# Other resampling algorithms are available.
defaults.pcm.rate_converter "samplerate_medium"

# The first ALSA device of the first soundcard
# (here: Analog Multichannel Ouput).
# See /proc/asound and "aplay -l".
pcm.sndcard {
type hw
card 0
device 0
}

# Dmix software mixing device.
# Takes multiple input streams, resamples them to target
# rate (here: 48kHz) and sends it to the sound card.
pcm.dmix51 {
type dmix
ipc_key 1024
slave {
pcm "sndcard"
channels 6
rate 48000
period_time 0 # Fixes audio crackling/stutter
period_size 1024 # with libsamplerate and chromium.
buffer_time 0 # Not all options may be
buffer_size 4096 # absolutely necessary.
}
}

# Convert float data from "lowpass51" to integer data
# and pass it on to the dmix device.
pcm.lowpass_float {
type lfloat
slave {
pcm "dmix51"
format "S16_LE"
}
}

# Lowpass filter.
# Requires "ladspa" for plugin support,
# "cmt" for identity_audio plugin and
# "swh-plugins" for lpf plugin.
# See http://www.ladspa.org/.
pcm.lowpass51 {
type ladspa
slave.pcm "lowpass_float"
path "/usr/lib/ladspa"
plugins {
# Copies all audio of all channels to other plugins.
# If no other plugin handles a channel, it comes out unchanged.
0 {
id 1098 # Identity (Audio) (1098/identity_audio)
policy duplicate
input.bindings.0 "Input";
output.bindings.0 "Output";
}

# Actual low-pass filter functionality.
# Operate on channel 5 (LFE) and remove
# frequencies higher than 120Hz.
1 {
id 1051 # Low Pass Filter (One Pole) (1051/lpf)
policy none
input.bindings.5 "Input";
output.bindings.5 "Output";
input {
controls [ 120 ]
}
}
}
}

# Automatic upmixing. Requires package "alsa-plugins".
pcm.upmix51 {
type upmix
# Simply "lowpass51" won't work.
# "plug:..." specifies a plug device like
# the long form for the default device below
# and takes care of channel/format conversions
# automatically.
slave.pcm "plug:lowpass51"
# Specifying the number of channels to upmix to here is mandatory.
channels 6
}

# Default device to be used by all applications playing all sorts of sources.
# There's automatic upmixing for 2.0 sources and native playback of 5.1 sources.
# (possibly others as supported by the upmix plugin)
pcm.!default {
type plug
slave.pcm "upmix51"
}


Ich bitte um Hilfe!!