LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 09-12-2009, 05:31 PM   #1
fmnovais
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
Sound problem AMD Geode LX800


Hi,

I'm building a distro with the board PCM-9375, but my sound card dont work.

In the path /proc/asound I have:
card0 cards devices Audio modules oss pcm seq timers version
When I type cat cards it show:
# ls -l Audio:
Audio -> card0
# cat cards:
0[Audio ] cs5535audio - cs5535 Audio
CS5535 Audio cs5535audio at 0xfe00, irq 15
# cat devices:
2: : timer
3: : sequencer
4: [ 0- 0] : digital audio playback
5: [ 0- 0] : digital audio capture
6: [ 0 ] : control
# cat modules:
0 snd_cs5535audio
# cat pcm:
00-00 CS5535 Audio : CS5535 Audio : playback 1 : capture 1
# cat timers:
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
# cat version:
Advanced Linux Sound Architecture Driver Version 1.0.18a.


And the path /proc/asound/card0:
codec97#0
id
oss_mixer
pcm0c
pcm0p

These files seem nice but i cat hear sound.

When a type: cat /dev/urandom > /dev/audio
Nothing happens...

I load these modules:

# insmod soundcore.ko
# insmod sound_firmware.ko
# insmod snd.ko
# insmod snd-seq-device.ko
# insmod snd-rawmidi.ko
# insmod snd-mpu401-uart.ko
# insmod snd-page-alloc.ko
# insmod ac97_bus.ko
# insmod snd-timer.ko
# insmod snd-pcm.ko
# insmod snd-ac97-codec.ko
# insmod snd-mixer-oss.ko
# insmod snd-pcm-oss.ko
# insmod cs5535audio/snd-cs5535audio.ko
# insmod seq/snd-seq.ko
# insmod snd-seq-dummy.ko
# insmod snd-seq-midi.ko
# insmod snd-seq-midi-event.ko
# insmod snd-seq-midi-emul.ko
# insmod snd-seq-oss.ko

When I type:

# cat /dev/sndstat:
Sound Driver:3.8.1a-980706 (ALSA v1.0.18a emulation code)
Kernel: Linux xxxxxx i586
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
CS5535 Audio cs5535audio at 0xfe00, irq 15

Audio devices:
0: CS5535 Audio (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers:
0: Realtek ALC203 rev 0
---------------------------------------------------

I have to do something in the kernel? I am forgetting something ? I m new in the compile kernel, i dont know if have more things to enable sound..


thnaks.
fmnovais.
 
Old 09-22-2009, 09:30 AM   #2
fnadeau
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: Disabled
I had the same problem with a Geode LX800 from Winsystems.

I had to hack the kernel driver to make it work.

My problem was that the mixer was not configured properly. Your board does not use the same mixer than mine so my patch will not work.

Their is a number of thing to check. Check if your speaker out if physically connected to the main out or the headphone out of the realtehk chip. If that is the case, you have to load the AC97 codec with an argument(see kernel doc)

If that is not the case, here is how I debuged mine:

Compile the AC97 with debug info so you have:
/proc/asound/card0/codec97\#0/ac97\#0-0\+regs

Get the program mixer.c
http://www.oreilly.de/catalog/multil...pt/ch14-07.htm
this allow you to change mixer value from shell

This gives you the AC97 register:
02 is your master output, should vary when you vari the master mixer
18 is your PCM output level, should vary when you vari the PCM mixer

my problem was than when I was doing
# mixer pcm 100
the register 18 was not modified accordingly.

Hope this help.


In the meanwhile, if someone could tell me how to get in touch with ALSA AC97 kernel driver coder so that I could talk about my patch...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smooth video playback on amd geode lx800? ignarus Linux - General 0 05-04-2008 01:50 AM
AMD Geode LX800 and xorg? Mig21 Linux - Hardware 2 08-11-2007 07:26 AM
inline assembly causing seg fault in AMD Geode Driver. qwijibow Programming 2 08-01-2007 03:00 PM
Fixed amd geode-klx framebuffer driver... how to sumbit a patch ? qwijibow Programming 0 01-20-2007 04:35 AM
LXer: Tiny computer module runs Linux on Geode LX800 LXer Syndicated Linux News 0 09-02-2006 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration