Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C-Media CMI9739/A && alsa
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
exilian
n00b
n00b


Joined: 19 Jun 2004
Posts: 27

PostPosted: Wed Oct 20, 2004 12:14 pm    Post subject: C-Media CMI9739/A && alsa Reply with quote

Hello,

I managed to intall and configure gentoo so it now runs great, but with one exception which is sound.

1. i cannot regulate volume with mixers...
2. 2 sound cannot be played at the same time...
3. only my front two speakers are working (i have 4.0 and yes i have unmuted)

I'm using kernel 2.6.9 (alsa 1.0.6) with alsa as module. I tried dmix and still not working. I even tried new experimental drivers for intel8x0 (which i use) in 2.6.9 but without success.

Code:
/etc/asound.conf
pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 8192
 rate 44100
    }

    bindings {
        0 0
        1 1
    }
}

pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}

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

pcm.default {
 type plug
 slave.pcm "dmixer"
}

ctl.mixer0 {
    type hw
    card 0
}


Code:
/etc/modules.d/alsa
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.2 2004/07/18 03:40:55 dragonheart Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-intel8x0
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1


I give up....
Back to top
View user's profile Send private message
abali
n00b
n00b


Joined: 19 Sep 2004
Posts: 69
Location: Budapest, Hungary

PostPosted: Wed Oct 20, 2004 9:34 pm    Post subject: Re: C-Media CMI9739/A && alsa Reply with quote

Welcome to the club. That card is a real piece of shit.

exilian wrote:
1. i cannot regulate volume with mixers...

Stop looking for solutions, it's impossible. The chip simply lacks hardware support for that. Could be done in software, but ALSA doesn't support that, nor it is planned. ALSA dmix might get its own volume control some time in the future, but that will still suck with stuff that use the OSS emulation like Unreal.
exilian wrote:
2. 2 sound cannot be played at the same time...

Interesting, that should work. You do not need to specify the "rate" in asound.conf (and it's not 44100 anyway). Not all applications will be able to utilize dmixing, only those that support ALSA (xmms does, for example).
exilian wrote:
3. only my front two speakers are working (i have 4.0 and yes i have unmuted)

I cannot comment that, I have 2.0. Check the ALSA documentation though, you might have to edit your asound.conf in addition to setting volume levels in the mixer.
Back to top
View user's profile Send private message
exilian
n00b
n00b


Joined: 19 Jun 2004
Posts: 27

PostPosted: Thu Oct 21, 2004 10:44 am    Post subject: Reply with quote

i read somewhere that original linux driver from cmedia could regulate volume, but the drivers are only for 2.4 kernel

dont know why dmix isnt working for me... but i have the same problem as many on this form had, sound from gimp and others are played after i stop listening to music.

and alo i tried implanting 4.0 (i saw exemple on net) in asound.conf but alo without success.

do u have to enable asound.conf somewhere meybe??
is there anyway to fix my problem (at least 2 sound at the same time) with some dirty trick?
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Thu Oct 21, 2004 1:11 pm    Post subject: CMedia Reply with quote

I have philips sonic edge 5.1. Philips means the card is not linux-compatible, ok i have a hard try googling for this, but what i have found is that this card uses cmedia 8738. I don't know why they are insisting on linux incompatiblity :::)))) ok that was the first step the card worked but only 2 or 4 channels, i thought ok probably it is not fully compatible with linux, i have asked questions about this in the alsa-mailing-lists but alas no answer ::((( the problem was that alsa - don't ask me why - uses different connectors for the output :::((( from windows. so try it, probably this one helps.
Back to top
View user's profile Send private message
exilian
n00b
n00b


Joined: 19 Jun 2004
Posts: 27

PostPosted: Thu Oct 21, 2004 2:17 pm    Post subject: Reply with quote

damn.. it was a good suggestion, but there is still no sound from rear speakers.
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Thu Oct 21, 2004 2:40 pm    Post subject: Reply with quote

Hi,
the other thing is to try the alsamixer and turn on the four channel mode, if u have one and play with the options:::))) I hope this helps, but the resolutions of alsa problems tend to be simple but hard to find, due to lack of information ::((( Great coding, but no help and documentation. btw the sound quality with alsa is better than in windows :::))))
Back to top
View user's profile Send private message
abali
n00b
n00b


Joined: 19 Sep 2004
Posts: 69
Location: Budapest, Hungary

PostPosted: Thu Oct 21, 2004 4:22 pm    Post subject: Reply with quote

exilian wrote:
i read somewhere that original linux driver from cmedia could regulate volume, but the drivers are only for 2.4 kernel

That's right, C-Media did release some OSS modules which do software volume control, but they are not the way to go. Anyway you can have a look at them here.

exilian wrote:
dont know why dmix isnt working for me... but i have the same problem as many on this form had, sound from gimp and others are played after i stop listening to music.

Okay, let's try to copy exactly the way it works here. Copy this to your ~/.asoundrc and try playing two streams at the same time with alsaplayer. If it works, dmix is fine and your applications need to be tweaked.

Code:
pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
    }

    bindings {
        0 0
        1 1
    }
}

pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}

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

pcm.default {
    type plug
    slave.pcm "dmixer"
}

ctl.mixer0 {
    type hw
    card 0
}
Back to top
View user's profile Send private message
exilian
n00b
n00b


Joined: 19 Jun 2004
Posts: 27

PostPosted: Fri Oct 22, 2004 5:06 pm    Post subject: Reply with quote

finally.. i ran 2 alsaplayer and they both worked. (thx abali)

but how do i make rhytmbox and gaim to work at the same time???


Last edited by exilian on Fri Oct 22, 2004 5:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
exilian
n00b
n00b


Joined: 19 Jun 2004
Posts: 27

PostPosted: Fri Oct 22, 2004 5:08 pm    Post subject: Reply with quote

ntw: why do i have to unmute channels everytime i start computer??
Back to top
View user's profile Send private message
abali
n00b
n00b


Joined: 19 Sep 2004
Posts: 69
Location: Budapest, Hungary

PostPosted: Fri Oct 22, 2004 5:39 pm    Post subject: Reply with quote

exilian wrote:
but how do i make rhytmbox and gaim to work at the same time???


Tell them to use ESD and tell ESD to use ALSA (put this in /etc/esd/esd.conf):

Code:
[esd]
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default -r 48000
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=
Back to top
View user's profile Send private message
exilian
n00b
n00b


Joined: 19 Jun 2004
Posts: 27

PostPosted: Fri Oct 22, 2004 6:26 pm    Post subject: Reply with quote

thx it works... but :)

the sound is a little choppy in every app (nothing serious, but annoying)
and my 2 rear speakers still arent working, here is the soultion <a href="http://alsa.opensrc.org/index.php?page=FAQ028">http://alsa.opensrc.org/index.php?page=FAQ028</a> but i dont know how to implant it in asound.conf
Back to top
View user's profile Send private message
exilian
n00b
n00b


Joined: 19 Jun 2004
Posts: 27

PostPosted: Fri Oct 22, 2004 6:33 pm    Post subject: Reply with quote

ooo and why isnt oss using dmix ??
Back to top
View user's profile Send private message
Woody
Guru
Guru


Joined: 30 Nov 2002
Posts: 592
Location: Milwaukee

PostPosted: Fri Oct 22, 2004 7:29 pm    Post subject: Reply with quote

Because it can't. You'll need to use the aoss wrapper:
Code:
# man aoss
Back to top
View user's profile Send private message
exilian
n00b
n00b


Joined: 19 Jun 2004
Posts: 27

PostPosted: Sat Oct 23, 2004 10:05 am    Post subject: Reply with quote

thx..

i figured out what was wrong with dmix. apparently
Code:
period_time 0
period_size 1024
buffer_size 8192

this aren't the right settings for my sound card....

I give up of ever hearing the two rear speakers| but does anyone know why the hell do i have to unmute pcm every time i start computer?? and why is the sound a little chopy?
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