Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
big problem with ALSA or/and OSS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
networkorg
n00b
n00b


Joined: 02 Feb 2006
Posts: 74
Location: Buenos Aires

PostPosted: Wed Feb 07, 2007 2:35 am    Post subject: big problem with ALSA or/and OSS Reply with quote

Hello,

now I'm on testing since like 3 days and I don't get is perfect. If I will use OSS in my kernel I see that the sound card is a 6 channel soundcard (ICH5 i8x0 onboard) based default 2 channels. So I only hear the sound in my REAR Speakers :evil:

So in case that OSS is DEPRECATED in the 2.6.19 kernel I use now ALSA in my kernel (fix included) and now this would be work a little bit better but like in a stadium where I will get a horror :twisted:

I have installed the alsa-utils and have configured as described in so many how-to's the ALSA with the alsamixer. So now I can test it with
Code:
speaker-test -c6 -twav -D surround51


but with the result that I hear FRONT LEFT, FRONT RIGHT but nothing more. So it seems that there is a problem with the surround channels but I have activeted 6ch in the alsamixer.

In one thread there was a help to generate/write a .asoundrc and .openalrc but this don't will help too. So now I'm a little bit disfused because I don't know how to fix this shit stuff. Maybe I have disconfigured my alsamixer but I don't know which parameter must be in which way in the /etc/asound.state.

Can anybody send a correct /etc/asound.state code for an ICH5 chip ?? Or can anybody tell me which Lines/parts I must activate or deactive in the alsamixer ??

Many thanks in advance

cu alex
Back to top
View user's profile Send private message
dreadhead
Guru
Guru


Joined: 09 Jul 2004
Posts: 470
Location: Ulm - Germany

PostPosted: Wed Feb 07, 2007 10:38 am    Post subject: Reply with quote

Are you sure all sliders in alsamixer are above the 50%? By default all channels but front left/right are muted and set to 0.
_________________
Kopete OTR Plugin
Back to top
View user's profile Send private message
networkorg
n00b
n00b


Joined: 02 Feb 2006
Posts: 74
Location: Buenos Aires

PostPosted: Wed Feb 07, 2007 11:26 am    Post subject: Reply with quote

Hello,

if I will turn off all slides I get a big tone out of all boxes which isn't really what I like. Ok I've the following slides at this moment :
Code:

Master             ON     90%
Master Mono     OFF
Master Surround     ON   90%
Headphone       OFF
PCM               ON 81%
Surround         ON 90%
Surround Jack Mode    Independ
Center                ON   84%
LFE                  ON 84%
Line              OFF
LIne Jack Sense           OFF
CD                 OFF
Mic                  OFF
Mic Boost             OFF
Mic Select              Mic1
Phone                OFF
Aux                   OFF
Channel MOde       6ch
Downmix               OFF
Exchange Front/Surround         OFF
External Amplifier                 OFF
High Pass Filter ENable          ON
Spread Front to Surround and Center/LFE          ON
V_REFOUT ENable                ON


Maybe some isn't on or in wrong way. But maybe you can tell it which slider could be wrong.

I've the AlsaMixer v1.0.14rc2 installed :-)

cu alex[/quote]
Back to top
View user's profile Send private message
dreadhead
Guru
Guru


Joined: 09 Jul 2004
Posts: 470
Location: Ulm - Germany

PostPosted: Wed Feb 07, 2007 6:20 pm    Post subject: Reply with quote

These settings look good. But I miss the "Duplicate Front" switch that should come with the intel8x0 module...
_________________
Kopete OTR Plugin
Back to top
View user's profile Send private message
networkorg
n00b
n00b


Joined: 02 Feb 2006
Posts: 74
Location: Buenos Aires

PostPosted: Sat Feb 10, 2007 10:35 pm    Post subject: Reply with quote

hmmm ... maybe it is in case that I have compiled the ALSA directly into the kernel (not as module) but with direct compile it works better as with module compile. It seems that on a real 64bit system it is better to have it directly in the kernel.

I will take a look to the new 2.6.20 kernel (now I use 2.6.19-gentoo-r5) in the next days. But maybe there is only a wrong entry in the /etc/asound.state ?? I will post it.

cu alex

Code:

state.ICH5 {
        control.1 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 2
                iface MIXER
                name 'Master Surround Playback Switch'
                value.0 true
                value.1 true
        }
        control.2 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 31'
                iface MIXER
                name 'Master Surround Playback Volume'
                value.0 28
                value.1 28
        }
        control.3 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Center Playback Switch'
                value true
        }
        control.4 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 1
                comment.range '0 - 31'
                iface MIXER
                name 'Center Playback Volume'
                value 26
        }
        control.5 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'LFE Playback Switch'
                value true
        }
        control.6 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 1
                comment.range '0 - 31'
                iface MIXER
                name 'LFE Playback Volume'
                value 26
        }
        control.7 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 2
                iface MIXER
                name 'Surround Playback Switch'
                value.0 true
                value.1 true
        }
        control.8 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 31'
                iface MIXER
                name 'Surround Playback Volume'
                value.0 28
                value.1 28
        }
        control.9 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 2
                iface MIXER
                name 'Master Playback Switch'
                value.0 true
                value.1 true
        }
        control.10 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 31'
                iface MIXER
                name 'Master Playback Volume'
                value.0 3
                value.1 3
        }
        control.11 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Master Mono Playback Switch'
                value false
        }
        control.12 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 1
                comment.range '0 - 31'
                iface MIXER
                name 'Master Mono Playback Volume'
                value 0
        }
        control.13 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Phone Playback Switch'
                value false
        }
        control.14 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 1
                comment.range '0 - 31'
                iface MIXER
                name 'Phone Playback Volume'
                value 0
        }
        control.15 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Mic Playback Switch'
                value false
        }
        control.16 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 1
                comment.range '0 - 31'
                iface MIXER
                name 'Mic Playback Volume'
                value 0
        }
        control.17 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Mic Boost (+20dB)'
                value false
        }
        control.18 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 2
                iface MIXER
                name 'Line Playback Switch'
                value.0 false
                value.1 false
        }
        control.19 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 31'
                iface MIXER
                name 'Line Playback Volume'
                value.0 0
                value.1 0
        }
        control.20 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 2
                iface MIXER
                name 'CD Playback Switch'
                value.0 false
                value.1 false
        }
        control.21 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 31'
                iface MIXER
                name 'CD Playback Volume'
                value.0 0
                value.1 0
        }
        control.22 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 2
                iface MIXER
                name 'Aux Playback Switch'
                value.0 false
                value.1 false
        }
        control.23 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 31'
                iface MIXER
                name 'Aux Playback Volume'
                value.0 0
                value.1 0
        }
        control.24 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 2
                iface MIXER
                name 'PCM Playback Switch'
                value.0 true
                value.1 true
        }
        control.25 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 31'
                iface MIXER
                name 'PCM Playback Volume'
                value.0 31
                value.1 31
        }
        control.26 {
                comment.access 'read write'
                comment.type ENUMERATED
                comment.count 2
                comment.item.0 Mic
                comment.item.1 CD
                comment.item.2 Video
                comment.item.3 Aux
                comment.item.4 Line
                comment.item.5 Mix
                comment.item.6 'Mix Mono'
                comment.item.7 Phone
                iface MIXER
                name 'Capture Source'
                value.0 Mic
                value.1 Mic
        }
        control.27 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 2
                iface MIXER
                name 'Capture Switch'
                value.0 false
                value.1 false
        }
        control.28 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 15'
                iface MIXER
                name 'Capture Volume'
                value.0 12
                value.1 12
        }
        control.29 {
                comment.access 'read write'
                comment.type ENUMERATED
                comment.count 1
                comment.item.0 Mic1
                comment.item.1 Mic2
                iface MIXER
                name 'Mic Select'
                value Mic1
        }
        control.30 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Exchange Front/Surround'
                value false
        }
        control.31 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'V_REFOUT Enable'
                value true
        }
        control.32 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'High Pass Filter Enable'
                value true
        }
        control.33 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Spread Front to Surround and Center/LFE'
                value true
        }
        control.34 {
                comment.access 'read write'
                comment.type ENUMERATED
                comment.count 1
                comment.item.0 Off
                comment.item.1 '6 -> 4'
                comment.item.2 '6 -> 2'
                iface MIXER
                name Downmix
                value Off
        }
        control.35 {
                comment.access 'read write'
                comment.type ENUMERATED
                comment.count 1
                comment.item.0 Shared
                comment.item.1 Independent
                iface MIXER
                name 'Surround Jack Mode'
                value Independent
        }
        control.36 {
                comment.access 'read write'
                comment.type ENUMERATED
                comment.count 1
                comment.item.0 '2ch'
                comment.item.1 '4ch'
                comment.item.2 '6ch'
                iface MIXER
                name 'Channel Mode'
                value '6ch'
        }
        control.37 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Headphone Jack Sense'
                value false
        }
        control.38 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Line Jack Sense'
                value false
        }
        control.39 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'External Amplifier'
                value false
        }
}
Back to top
View user's profile Send private message
dreadhead
Guru
Guru


Joined: 09 Jul 2004
Posts: 470
Location: Ulm - Germany

PostPosted: Sun Feb 11, 2007 8:19 am    Post subject: Reply with quote

you could try reconfigure alsa with alsaconf.
AFAIK the asound.state just remerbers your volume settings so that they can be restored after reboot. But I could be wrong now...
_________________
Kopete OTR Plugin
Back to top
View user's profile Send private message
networkorg
n00b
n00b


Joined: 02 Feb 2006
Posts: 74
Location: Buenos Aires

PostPosted: Sun Feb 11, 2007 6:45 pm    Post subject: Reply with quote

alsaconf wouldn't work on my system because it don't knows any PnP card :(

but the alsamixer levels are stored with /etc/init.d/alsasound save and alsasound is added with rc-update in the boot-level. So it restores the levels after each reboot :)
Back to top
View user's profile Send private message
networkorg
n00b
n00b


Joined: 02 Feb 2006
Posts: 74
Location: Buenos Aires

PostPosted: Sun Feb 11, 2007 6:48 pm    Post subject: Reply with quote

do you know/have a link for a MP3 test file which is stored in 5.1 sound ??
because I have only WAV files but my Amorax-Player (which can use 6ch) cann't play them.
maybe I've 5.1 sound and the ALSA works but cann't hear it in case of a wrong player configuration :?:
Back to top
View user's profile Send private message
networkorg
n00b
n00b


Joined: 02 Feb 2006
Posts: 74
Location: Buenos Aires

PostPosted: Mon Feb 12, 2007 6:43 am    Post subject: Reply with quote

hi again,

so it seems to be work - but I'm not 100% sure but now I get sound near 5.1 out 8O To find 5.1 MP3 isn't hard - you can found it here http://www.all4mp3.com/music/ - the best to hear it I think is from Tchaikovsky (Swan Lake - Actll - Scene Moderato - Classical) :wink:

What I've done :

I've changed the kernel from fix compiled (only the PCI devices from ALSA) to module compiled. Why it runs now different please ask another person :lol: but it seems to be better because like alsaconf now find a soundcard and should work/load the driver in other way *maybe*

I don't changed anything on the mixer settings because they are right (but I don't have the "duplicate front" already) and I don't have installed the alsa-driver *you don't need it*

Thats all :wink:

The only strange think is that the speaker-test don't work - here I will only get a "front left and front right" but nothing more but I hear it at same time in Front and Rear Speakers 8O stupid.

cu alex

P.S. if somebody needs any config please give me a hint :idea:
Back to top
View user's profile Send private message
networkorg
n00b
n00b


Joined: 02 Feb 2006
Posts: 74
Location: Buenos Aires

PostPosted: Mon Feb 12, 2007 10:42 pm    Post subject: Reply with quote

ahh .. i've forgot 1 big info :

I've changed the "Surround Jack Mode" from "Independ" to "Shared" :-)

cu alex

P.S. but now with the modules I've the problem that the rebuild of the mixer settings don't work for the "master" but for all others :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum