Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA should sound, but it doesn't: is it a bug, or an XFILE?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Mar 04, 2007 1:21 pm    Post subject: ALSA should sound, but it doesn't: is it a bug, or an XFILE? Reply with quote

hi,
i recompiled linux-kernel v2.6.15/gentoo-patched-for-ppc (emerge gentoo-sources)
i disabled OSS, i enabled sound as module: alsa, oss-emulation, ALS4000 driver, ecc as modules
i enabled dma support, it is required by ALS4000

i reboot, i called alsaconf that configred the ALS4000 soundcard
then i called /etc/init.d alsasount start

Code:
  Loading ALSA modules ...
    Loading: snd-card-0 ...
    Loading: snd-seq-oss ...
    Loading: snd-pcm-oss ...
    Loading: snd-opl3-synth ...
    Loading: snd-seq-midi ...
  Restoring Mixer Levels ...


i called alsamixer, i unmuted pcm, master and all out sound channels

(in /etc/make.conf USE= "..[..].. alsa oss", so mpg123 and madplay have been compiled with these USE flags)

then i called mpg123 garbage--special.mp3

no sound, no error, nothing

so i called madplay garbage--special.mp3

Code:
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
audio: esd_open_sound() failed



what does it mean ?
how to solve it ?
(to be sure it is not an hw problem, i recompiled my dual-pentium-pro system to use this sound board: it sounds good !)


the cat of all /proc/asound/*

Code:
ALS4000
VOLUME "Master" 0
BASS "" 0
TREBLE "" 0
SYNTH "Synth" 0
PCM "PCM" 0
SPEAKER "PC Speaker" 0
LINE "Line" 0
MIC "Mic" 0
CD "CD" 0
IMIX "" 0
ALTPCM "" 0
RECLEV "" 0
IGAIN "Capture" 0
OGAIN "Playback" 0
LINE1 "" 0
LINE2 "" 0
LINE3 "" 0
DIGITAL1 "" 0
DIGITAL2 "" 0
DIGITAL3 "" 0
PHONEIN "" 0
PHONEOUT "" 0
VIDEO "" 0
RADIO "" 0
MONITOR "" 0
0 snd_als4000
  4: [0- 0]: hardware dependent
 16: [0- 0]: digital audio playback
 24: [0- 0]: digital audio capture
  8: [0- 0]: raw midi
  0: [0- 0]: ctl
  1:       : sequencer
 33:       : timer
0 [ALS4000        ]: ALS4000 - Avance Logic ALS4000
                     Avance Logic ALS4000 at 0xff80, irq 29
 10: [0-10]: hardware dependent
  2: [0- 2]: raw midi
  1:       : sequencer
  8:       : sequencer
  0: [0- 0]: mixer
  3: [0- 3]: digital audio


Last edited by ddc on Sun Mar 04, 2007 1:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Mar 04, 2007 1:43 pm    Post subject: Reply with quote

also i did this test

Code:
sound-esd -d 0
esound-esd -beeps


the result is

Code:
 using device 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM 0
Trace/breakpoint trap   esound-esd -beeps


sound-esd --help shows hw:0 is my sound card
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Mar 04, 2007 4:16 pm    Post subject: Reply with quote

Did you follow the FAQ for setting up your soundcard? (What machine has an ALS4000?) Can you tell us about your machine and your sound configuration?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Mar 04, 2007 6:04 pm    Post subject: Reply with quote

you "could" simply add a pci-card to every apple-system that has a pci bus
in my case, apple 4400 (oldw apple) has pci, so i installed the ALS4000-pci sound card

i'm using /dev statically, i verified /dev/dsp is existing, i downloaded alsa-driver and i used the specific tool to create what is missing in /dev, and the script has successfully did it.

I've used the gentoo ALSA procedure for ALSA support inside the kernel (see sound configuration i'm posting in the next post)


Last edited by ddc on Wed Mar 07, 2007 3:26 pm; edited 2 times in total
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Mar 07, 2007 3:21 pm    Post subject: Reply with quote

Code:
#
# Sound
#
CONFIG_SOUND=m

#
# Advanced Linux Sound Architecture
#
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_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
CONFIG_SND_MPU401_UART=m
CONFIG_SND_OPL3_LIB=m
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set

#
# PCI devices
#
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS4281 is not set
CONFIG_SND_EMU10K1=m
CONFIG_SND_EMU10K1X=m
CONFIG_SND_CA0106=m
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_AD1889 is not set
CONFIG_SND_ALS4000=m
# CONFIG_SND_CMIPCI is not set
CONFIG_SND_ENS1370=m
CONFIG_SND_ENS1371=m
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_HDA_INTEL is not set

#
# ALSA PowerMac devices
#

#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Mar 08, 2007 1:33 pm    Post subject: Reply with quote

i've changed the sound board: i'm using a creative endsoniq
also i'm using driver kernel build in and OSS (no alsa)


dmesg
Code:
Linux version 2.6.15.4-sliding-snow-leopard-ibm-walnut-ppc405 (root@walnut-ppc405) (gcc version 4.1.1 (Gentoo 4.1.1)) #22 Wed Mar 7 21:55:21 Local time zone must be set--see zic manu
IBM Walnut port (C) 2000-2002 MontaVista Software, Inc. (source@mvista.com)
On node 0 totalpages: 8192
  DMA zone: 8192 pages, LIFO batch:1
  DMA32 zone: 0 pages, LIFO batch:0
  Normal zone: 0 pages, LIFO batch:0
  HighMem zone: 0 pages, LIFO batch:0
Built 1 zonelists
Kernel command line: console=ttyS0,9600 root=/dev/hda4 init=/sbin/init
PID hash table entries: 256 (order: 8, 4096 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29480k available (2104k kernel code, 696k data, 128k init, 0k highmem)
Calibrating delay loop... 266.24 BogoMIPS (lpj=532480)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 4 of device 0000:00:04.0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
loop: loaded (max 8 devices)
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 1 TX channels, 1 RX channels
eth0: emac0, MAC de:ad:be:ef:de:ad
eth0: found Generic MII PHY (0x09)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PDC20265: IDE controller at PCI slot 0000:00:04.0
PDC20265: chipset revision 2
PDC20265: not 100% native mode: will probe irqs later
PDC20265: (U)DMA Burst Bit DISABLED Primary PCI Mode Secondary PCI Mode.
    ide0: BM-DMA at 0x1000-0x1007, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1008-0x100f, BIOS settings: hdc:pio, hdd:DMA
Probing IDE interface ide0...
hda: QUANTUM FIREBALL EX3.2A, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 31
Probing IDE interface ide1...
Probing IDE interface ide1...
hda: max request size: 128KiB
hda: 6306048 sectors (3228 MB) w/418KiB Cache, CHS=6256/16/63, UDMA(33)
hda: cache flushes not supported
 hda: hda1 hda2 hda3 hda4
mice: PS/2 mouse device common for all mice
I2O subsystem v1.288
i2o: max drivers = 8
I2O ProcFS OSM v1.145
i2c /dev entries driver
IBM IIC driver v2.1
ibm-iic0: using standard (100 kHz) mode
es1371: version v0.32 time 21:52:03 Mar  7 2007
es1371: found chip, vendor id 0x1274 device id 0x1371 revision 0x08
es1371: found es1371 rev 8 at io 0xffc0 irq 30
ac97_codec: AC97 Audio codec, id: 0x8384:0x7609 (SigmaTel STAC9721/23)
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 128k init
EXT3 FS on hda4, internal journal
Adding 128512k swap on /dev/hda3.  Priority:-1 extents:1 across:128512k
eth0: link is up, 100 FDX



lspci
Code:
00:03.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 08)
00:04.0 IDE interface: Promise Technology, Inc. PDC20265 (FastTrak100 Lite/Ultra100) (rev 02)
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Mar 08, 2007 1:52 pm    Post subject: Reply with quote

about the walnut-ppc405 board's sound card support

from an IRC conversation we realize

(1) the board was not ported to ARCH=powerpc in kernel newer than 2.6.15.4
(2) the sound card problem should be related to DMA support
(3) probably the related ppc405-DMA driver need to be hacked at the kernel


..... to be continued
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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