View previous topic :: View next topic |
Author |
Message |
darkbasic Tux's lil' helper

Joined: 06 Sep 2006 Posts: 133
|
Posted: Wed Apr 08, 2009 8:20 pm Post subject: [RISOLTO] Upmixing non ne vuole sapere di funzionare |
|
|
Questo è l'.asoundrc che usavo con debian e che funzionava perfettamente, ma con gentoo (gentoo unstable, alsa 1.0.19, kernel 2.6.27) l'upmixing non ne vuole sapere di funzionare..
Code: | # 6 channel dmix
pcm.!surround51 {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:1,0"
# format S32_LE
rate 48000
channels 6
period_time 0
period_size 1024
buffer_time 0
# prevent stutter at 48000
buffer_size 8192
# alternately lower to 44100 and keep the buffer low
#rate 44100
#buffer_size 5120
}
bindings {
0 0 # front left
1 1 # front right
2 4 # rear left
3 5 # rear right
4 2 # center
5 3 # lfe
}
}
# perform upmixing
pcm.ch51dup {
type route
slave.pcm surround51
slave.channels 6
ttable {
0.0 1 # front right
1.1 1 # front left
0.2 1 # rear left
1.3 1 # rear right
0.4 0.5 # right channel to centre 0.5 gain
1.4 0.5 # left channel to centre 0.5 gain
0.5 0.5 # right channel to lfe 0.5 gain
1.5 0.5 # left channel to lfe 0.5 gain
}
}
pcm.duplex {
type asym
playback.pcm "ch51dup" # upmix first
capture.pcm "hw:1"
}
# change default device
pcm.!default {
type plug
slave.pcm "duplex"
}
# for aoss
pcm.dsp "duplex"
pcm.dsp1 "duplex" |
aplay -l
Code: | **** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Revolution71 [M Audio Revolution-7.1], device 0: ICE1724 [ICE1724]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Revolution71 [M Audio Revolution-7.1], device 1: IEC1724 IEC958 [IEC1724 IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Revolution71 [M Audio Revolution-7.1], device 2: ICE1724 Surrounds [ICE1724 Surround PCM]
Subdevices: 3/3
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2 |
alsamixer -c1
Se lancio uno speaker-test -c6 funzionano solo i canale front left/right.
Ciao e grazie,
Darkbasic
edit:
emerge -s alsa _________________ Computers are like air conditioners:
they stop working properly when you open Windows...
Coltiva Linux, Windows si pianta da solo.
http://www.linuxsystems.it/
Last edited by darkbasic on Wed Apr 15, 2009 7:14 pm; edited 1 time in total |
|
Back to top |
|
 |
!equilibrium Bodhisattva


Joined: 06 Jun 2004 Posts: 2109 Location: MI/BG/LC
|
Posted: Thu Apr 09, 2009 8:52 am Post subject: Re: [ALSA] Upmixing non ne vuole sapere di funzionare |
|
|
darkbasic wrote: | ma con gentoo (gentoo unstable, alsa 1.0.19, kernel 2.6.27) |
solo una domanda, stai usando tutto il sistema in unstable? _________________ Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe
all my contents are released under the Creative Commons Licence by-nc-nd 2.5 |
|
Back to top |
|
 |
darkbasic Tux's lil' helper

Joined: 06 Sep 2006 Posts: 133
|
Posted: Thu Apr 09, 2009 10:57 am Post subject: Re: [ALSA] Upmixing non ne vuole sapere di funzionare |
|
|
!equilibrium wrote: | solo una domanda, stai usando tutto il sistema in unstable? |
Kernel a parte sì, più alcuni overlay (kde-testing + qting-edge).
Comunque mi sembra che avessi lo stesso problema anche prima di aggiornare ad ~amd64. _________________ Computers are like air conditioners:
they stop working properly when you open Windows...
Coltiva Linux, Windows si pianta da solo.
http://www.linuxsystems.it/ |
|
Back to top |
|
 |
darkbasic Tux's lil' helper

Joined: 06 Sep 2006 Posts: 133
|
Posted: Thu Apr 09, 2009 5:47 pm Post subject: |
|
|
Oggi pomeriggio ha deciso di funzionare
Adesso devo solo capire che fine ha fatto il master perché altrimenti non posso regolare il volume di tutti i canali.
Qualcuno ha idea del perché in alsamixer non ci sia? Stasera posto un screenshot di alsamixer.
Edit: o forse questa scheda non ce l'ha mai avuto il master e sono io che ricordo male? Mi sa che mi toccherà usare softvol.. _________________ Computers are like air conditioners:
they stop working properly when you open Windows...
Coltiva Linux, Windows si pianta da solo.
http://www.linuxsystems.it/ |
|
Back to top |
|
 |
darkbasic Tux's lil' helper

Joined: 06 Sep 2006 Posts: 133
|
Posted: Wed Apr 15, 2009 7:11 pm Post subject: |
|
|
Io non ho parole: più passa il tempo e più alsa si decide a funzionare come dovrebbe
Ora flash non mi crasha più con il mio asoundrc e l'upmixing funziona
Nel frattempo ho aggiunto il softvol, ho reso il mio asoundrc compatibile con phonon e l'ho modificato affinché sia immune agli scleri di udev che a random mi mappa l'altra scheda audio al posto della Revolution
Code: | # 6 channel dmix
pcm.!surround51 {
type dmix
ipc_key 1024
# ipc_key_add_uid false
# ipc_perm 0660
slave {
pcm "hw:Revolution71,0"
# format S32_LE
# rate 48000
channels 6
period_time 0
period_size 1024
buffer_size 4096
# buffer_time 0
# prevent stutter at 48000
# buffer_size 8192
# alternately lower to 44100 and keep the buffer low
#rate 44100
#buffer_size 5120
}
bindings {
0 0 # front left
1 1 # front right
2 4 # rear left
3 5 # rear right
4 2 # center
5 3 # lfe
}
}
# perform upmixing
pcm.ch51dup {
type route
slave.pcm surround51
slave.channels 6
ttable {
0.0 1 # front right
1.1 1 # front left
0.2 1 # rear left
1.3 1 # rear right
0.4 0.5 # right channel to centre 0.5 gain
1.4 0.5 # left channel to centre 0.5 gain
0.5 0.5 # right channel to lfe 0.5 gain
1.5 0.5 # left channel to lfe 0.5 gain
}
}
pcm.duplex {
type asym
playback.pcm "ch51dup" # upmix first
capture.pcm "hw:Revolution71"
}
pcm.plugDuplex {
type plug
slave.pcm "duplex"
}
pcm.softvol {
type softvol
slave {
pcm "plugDuplex"
}
control {
name "SoftMaster"
card Revolution71
}
min_dB -51.0
max_dB 0.0
resolution 100
hint {
show on
description "Revolution 7.1 SoftMaster"
}
}
# change default device
pcm.!default {
type plug
slave.pcm "softvol"
}
# for aoss
pcm.dsp "duplex"
pcm.dsp1 "duplex" |
Non è ancora completo, devo ancora aggiungere il downmixing per i film in 7.1 e l'upmixing per i contenuti mono (oltre che tutta la parte relativa alla registrazione che mi interessa relativamente e sciccherie varie come resampling software, filtri passabasso per il sub e passaalto per i tweeter che però in passato mi davano rogne con flash e con xine), però spero che sia utile a qualcuno e ne approfitto per chiedere se sapete come fare per associare il softmaster al controllo volume di default di kmix (che adesso è pcm, il quale controlla solo i canali frontali).
P.S.
!equilibrium, gentoo unstable è una bomba  _________________ Computers are like air conditioners:
they stop working properly when you open Windows...
Coltiva Linux, Windows si pianta da solo.
http://www.linuxsystems.it/ |
|
Back to top |
|
 |
|