Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Enable Four Channels Sound Card
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Fri Mar 03, 2006 10:34 pm    Post subject: Enable Four Channels Sound Card Reply with quote

I connected a second sound card to my system and enables the driver as module for the second card as well,
Code:
# lspci | grep audio
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
03:0b.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)

here is kernel config
Code:
# cat .config |grep SND | grep -v '#'
CONFIG_SND=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_AC97_BUS=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
CONFIG_SND_MPU401_UART=m
CONFIG_SND_OPL3_LIB=m
CONFIG_SND_CMIPCI=m
CONFIG_SND_INTEL8X0=m
CONFIG_SND_VIA82XX=m

and here is
Code:
# ALSA portion
        alias char-major-116 snd
        alias snd-card-0 snd-cmipci
alias snd-card-1 snd-intel8x0
        # module options should go here
        options snd-cmipci id="first" mpu_port=0x330 four_ch=1

        # OSS/Free portion
        alias char-major-14 soundcore
        alias sound-slot-0 snd-card-0

        # 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

# card #2
alias sound-slot-1 snd-intel8x0

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

probing intel8x0 module is succesful but not cmipci
Code:
 # modprobe snd-cmipci
FATAL: Module snd_cmipci not found.

any ideas?
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714


Last edited by rojanu on Wed Mar 08, 2006 6:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon Mar 06, 2006 9:40 am    Post subject: Reply with quote

rebuild the kernel?
Code:

gameport                4736  3 snd_cmipci,snd_ens1371,analog


check for silly errors , I no longer have the card but modprobe from your post works and I have the module now loaded.
8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Mar 06, 2006 2:11 pm    Post subject: Reply with quote

Thanks for the suggestion. After rebuilding the kernel I realised that in the /boot sysmlink to the new built kernel was not updated and I still was using a very very old kernel and thinking I was updating my kernel for the last 3-4 months
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon Mar 06, 2006 5:05 pm    Post subject: Reply with quote

"Any fool can rebuild the kernel. Good admins can get it to boot!" :twisted:

Only joking, glad I could help. :wink:
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon Mar 06, 2006 5:10 pm    Post subject: Reply with quote

BTW not sure what you want to do with 2 snd cards .

I found my system got a bit confused with joysticks . It would always assume the joystick was on one of the cards (probably snd_card_0) even if it was set for the other.

If you simply want to replace an onboard snd device with a pci one I suggest you disable the onboard from bios.

HTH 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Mar 06, 2006 6:26 pm    Post subject: Reply with quote

Gentree wrote:

If you simply want to replace an onboard snd device with a pci one I suggest you disable the onboard from bios.
HTH 8)
I am kind of doing that because I could not enabled the 4 channels on on board card and thought that it would be easier to add another one.

However I don't know how to enable four channels on this card. on the CD tutorials says add
Code:
four_ch=1
to modules.conf but doing that gives errors
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon Mar 06, 2006 9:40 pm    Post subject: Reply with quote

cant help with that , I've never tried. Suggest you post more detail on the errors and change the title of the thread (edit first post) to attract attention to that issue.

also post a link to the tut. you have followed so ppl know where you're at.

HTH. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Wed Mar 08, 2006 6:55 pm    Post subject: Reply with quote

Here what says on the cd
Quote:
STEPS TO BUILD DRIVER
================================================================================

1. Backup the Config.in and Makefile in the sound driver directory
(/usr/src/linux/driver/sound).
The Configure.help provide help when you config driver in step
4, please backup the original one (/usr/src/linux/Document) and
copy this file.
The cmpci is document for the driver in detail, please copy it
to /usr/src/linux/Document/sound so you can refer it. Backup if
there is already one.

2. Extract the tar file by 'tar xvzf cmpci-xx.tar.gz' in the above
directory.

3. Change directory to /usr/src/linux

4. Config cm8338 driver by 'make menuconfig', 'make config' or
'make xconfig' command.

5. Please select Sound Card (CONFIG_SOUND=m) support and CMPCI
driver (CONFIG_SOUND_CMPCI=m) as modules. Resident mode not tested.
For driver option, please refer 'DRIVER PARAMETER'

6. Compile the kernel if necessary.

7. Compile the modules by 'make modules'.

8. Install the modules by 'make modules_install'


INSTALL DRIVER
================================================================================

1. Before first time to run the driver, create module dependency by
'depmod -a'

2. To install the driver manually, enter 'modprobe cmpci'.

3. Driver installation for various distributions:

a. Slackware 4.0
Add the 'modprobe cmpci' command in your /etc/rc.d/rc.modules
file.so you can start the driver automatically each time booting.

b. Caldera OpenLinux 2.2
Use LISA to load the cmpci module.

c. RedHat 6.0 and S.u.S.E. 6.1
Add following command in /etc/conf.modules:

alias sound cmpci

also visit http://www.cmedia.com.tw for installation instruction.

DRIVER PARAMETER
================================================================================

Some functions for the cm8738 can be configured in Kernel Configuration
or modules parameters. Set these parameters to 1 to enable.

spdif_loop: Enable S/PDIF loop, this route S/PDIF-in to S/PDIF-out
directly.
four_ch: Enable 4 channels mode, rear-out or line-in will output
the same as line-out.
rear_out: Enable this if you have independent rear-out jacket on
your sound card, otherwise line-in will be used as
rear-out.
modem: You will need to set this parameter if you want to use
the HSP modem. You need install the pctel.o, the modem
driver itself.
joystich: Enable joystick. You will need to install Linux joystick
driver.
But I actually haven't extracted those drivers to the kernel as the driver already is in the kernel. However when I put
Code:
options snd-cmipci id="first" mpu_port=0x330 four_ch=1
I get
Code:
# /etc/init.d/alsasound restart
 * Service alsasound stopping
 * WARNING:  you are stopping a boot service.
 * Service alsasound stopped
 * Service alsasound starting
FATAL: Error inserting snd_cmipci (/lib/modules/2.6.15-gentoo-r7/kernel/sound/pci/snd-cmipci.ko): Unknown symbol in module, or unknown parameter (see dmesg)                                                                                                                                                    [ !! ]
 * Service alsasound started

and dmesg
Code:
snd_cmipci: Unknown parameter `four_ch'

_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Mar 11, 2006 6:50 pm    Post subject: Reply with quote

Quote:
But I actually haven't extracted those drivers to the kernel as the driver already is in the kernel.


might be worth a try then. It seems the driver you have does not support that option.
8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Sat Mar 11, 2006 11:32 pm    Post subject: Reply with quote

Well I thought of that and gave it a try in the guide it says to extract the driver to /usr/src/linux/driver/sound but there isn't it a such directory. instead there is something like sound in kernel directory itself however extracting the drivers to there did not bring any other extra options to menuconfig
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Tue Mar 14, 2006 9:54 am    Post subject: Reply with quote

Dont expect this to bring up a new option. You have already selected cmipci it seems. The source code you are unpacking will over write the installed driver source. There should be no change needed.

(I suggest you backup your source before arbitarily unzipping stuff too , you may overwrite what you have now with something that does not work at all.)

I have
Code:
/usr/src/linux/sound/drivers
. I dont know if that is where they are supposed to go. It may be a typo in the instructions.

look at the contents of the gz and see if you can find similiar file structure and names somewhere in sound or drivers. that should give you a clue.

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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