Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: sound on Compaq Armada 1750
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Mon Sep 19, 2005 9:26 am    Post subject: HOWTO: sound on Compaq Armada 1750 Reply with quote

I got the ISA soundcard of an Compaq Armada 1750 to work with ALSA. I share the necessary steps here in the hope that someone will find it helpful.

Installed Packages

kernel:
sys-kernel/gentoo-sources-2.6.11-r11

ALSA:
media-libs/alsa-lib-1.0.9
media-sound/alsa-utils-1.0.8
media-sound/alsa-headers-1.0.9
media-sound/alsa-driver-1.0.9a


Configuration Files

/etc/make.conf:
Code:
ALSA_CARDS="es18xx"


kernel configuration:
Code:
#
# Sound
#
CONFIG_SOUND=m

#
# Advanced Linux Sound Architecture
#
# CONFIG_SND is not set

#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set



/etc/modules.d/alsa:
Code:
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
alias snd-card-0 snd-es18xx
alias sound-slot-0 snd-es18xx
options snd-es18xx isapnp=0

important: the settings applied by alsaconf did not work. Passing any options other than shown above to the snd-es18xx module breaks ALSA for me.
Back to top
View user's profile Send private message
C.M
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2003
Posts: 132
Location: Göteborg - Sweden

PostPosted: Mon Sep 19, 2005 9:09 pm    Post subject: Reply with quote

Hello!

I tried again to get the sound working on this laptop, but no success so far. I changed my alsa-config so it looks like yours, but this is my dmesg:
Code:

reset at 0x220 failed!!!
es18xx: [0x220] ESS chip not found
reset at 0x240 failed!!!
es18xx: [0x240] ESS chip not found
reset at 0x260 failed!!!
es18xx: [0x260] ESS chip not found
reset at 0x280 failed!!!
es18xx: [0x280] ESS chip not found
ESS AudioDrive ES18xx soundcard not found or device busy

I tried turning off isa plug and play for the soundcard in bios, but that didn't help Should it be on or off? My bios says I have a ES1869 isa soundcard btw. Have you changed any settings in bios? Like a different irq or memory offset?

A simple modprobe doesn't work either:
Code:

root@armada> modprobe snd-es18xx                                              ~
FATAL: Error inserting snd_es18xx (/lib/modules/2.6.12-gentoo-r10/kernel/sound/isa/snd-es18xx.ko): No such device

Since the card is ISA, it doesn't show in lspci. :(

/Claes
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Mon Sep 19, 2005 10:19 pm    Post subject: Reply with quote

Maybe you are missing some isapnp stuff in your kernel? I have
Code:
CONFIG_GENERIC_ISA_DMA=y
CONFIG_ISA=y
CONFIG_ISAPNP=y

As far as I remeber I didn't change any settings in the bios.
Back to top
View user's profile Send private message
C.M
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2003
Posts: 132
Location: Göteborg - Sweden

PostPosted: Tue Sep 20, 2005 5:52 pm    Post subject: Reply with quote

I have all isa-stuff in the kernel. I'll reboot and check my bios settings.
Back to top
View user's profile Send private message
C.M
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2003
Posts: 132
Location: Göteborg - Sweden

PostPosted: Tue Sep 20, 2005 7:35 pm    Post subject: Reply with quote

Thanks for helping me out with this btw! It's not the end of the world if I can't get the sound working, but it's very annoying when I'm this close.

Ok.. Found another page with some info about ALSA on the Armada 1750, and tried with changeing the last Input/Output range in BIOS to 0x0330 - 0x0331. Now at least the modules load correctly.

Code:

root@armada> lsmod                                                            ~
Module                  Size  Used by
xirc2ps_cs             15696  1
pcmcia                 21448  5 xirc2ps_cs
snd_pcm_oss            49248  0
snd_mixer_oss          17216  1 snd_pcm_oss
snd_seq_oss            34304  0
snd_seq_midi_event      5920  1 snd_seq_oss
snd_seq                50608  4 snd_seq_oss,snd_seq_midi_event
snd_es18xx             29480  2
snd_pcm                83560  2 snd_pcm_oss,snd_es18xx
snd_page_alloc          7556  1 snd_pcm
snd_opl3_lib            9536  1 snd_es18xx
snd_timer              22148  3 snd_seq,snd_pcm,snd_opl3_lib
snd_hwdep               7136  1 snd_opl3_lib
snd_mpu401_uart         6336  1 snd_es18xx
snd_rawmidi            20928  1 snd_mpu401_uart
snd_seq_device          7020  4 snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
snd                    49572  16 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,
                                 snd_seq,snd_es18xx,snd_pcm,snd_opl3_lib,snd_timer,
                                 snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device
yenta_socket           20168  3
rsrc_nonstatic         11424  1 yenta_socket
pcmcia_core            43140  4 xirc2ps_cs,pcmcia,yenta_socket,rsrc_nonstatic


Trying to play a sound gives an error:
Code:

cm@armada> aplay /usr/share/sounds/gaim/redalert.wav                          ~
Playing WAVE '/usr/share/sounds/gaim/redalert.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
aplay: pcm_write:1171: write error: Input/output error


The sound related devices shown below, owned by the audio group, of which I'm a member.
Code:

root@armada> ls -l /dev/sound/                                                ~
crw-rw----  1 root audio 14, 4 Sep 20  2005 audio
crw-rw----  1 root audio 14, 3 Sep 20  2005 dsp
crw-rw----  1 root audio 14, 0 Sep 20  2005 mixer
crw-rw----  1 root audio 14, 1 Sep 20  2005 sequencer
crw-rw----  1 root audio 14, 8 Sep 20  2005 sequencer2
root@armada> ls -l /dev/snd/                                                  ~
crw-rw----  1 root audio 116,  0 Sep 20  2005 controlC0
crw-rw----  1 root audio 116, 24 Sep 20  2005 pcmC0D0c
crw-rw----  1 root audio 116, 16 Sep 20  2005 pcmC0D0p
crw-rw----  1 root audio 116,  1 Sep 20  2005 seq
crw-rw----  1 root audio 116, 33 Sep 20  2005 timer

cm@armada> groups                                                             ~
wheel floppy audio cdrom games users


The output from amixer is: (I have the same alsa-packages as you wrote in the first post)
Code:

cm@armada> amixer                                                             ~
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Mono
  Limits: Playback 0 - 63
  Mono: Capture [off]
  Front Left: Playback 48 [76%] [on]
  Front Right: Playback 48 [76%] [on]
Simple mixer control '3D Control - Level',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Limits: 0 - 63
  Mono: 57 [90%]
Simple mixer control '3D Control - Switch',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume cvolume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 15 Capture 0 - 15
  Front Left: Playback 9 [60%] Capture 0 [0%]
  Front Right: Playback 9 [60%] Capture 0 [0%]
Simple mixer control 'FM',0
  Capabilities: pvolume cvolume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 15 Capture 0 - 15
  Front Left: Playback 9 [60%] Capture 0 [0%]
  Front Right: Playback 9 [60%] Capture 0 [0%]
Simple mixer control 'Line',0
  Capabilities: pvolume cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 15 Capture 0 - 15
  Front Left: Playback 0 [0%] Capture 0 [0%] [off]
  Front Right: Playback 0 [0%] Capture 0 [0%] [off]
Simple mixer control 'CD',0
  Capabilities: pvolume cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 15 Capture 0 - 15
  Front Left: Playback 0 [0%] Capture 0 [0%] [off]
  Front Right: Playback 0 [0%] Capture 0 [0%] [off]
Simple mixer control 'Mic',0
  Capabilities: pvolume cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 15 Capture 0 - 15
  Front Left: Playback 0 [0%] Capture 0 [0%] [off]
  Front Right: Playback 0 [0%] Capture 0 [0%] [off]
Simple mixer control 'Mic Boost (+26dB)',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Mic Master',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Mic1',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'PC Speaker',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 7
  Mono: Playback 4 [57%]
Simple mixer control 'Aux',0
  Capabilities: pvolume cvolume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 15 Capture 0 - 15
  Front Left: Playback 0 [0%] Capture 0 [0%]
  Front Right: Playback 0 [0%] Capture 0 [0%]
Simple mixer control 'Mono',0
  Capabilities: pvolume cvolume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 15 Capture 0 - 15
  Front Left: Playback 15 [100%] Capture 0 [0%]
  Front Right: Playback 15 [100%] Capture 0 [0%]
Simple mixer control 'Mono Input',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 15
  Front Left: Playback 15 [100%]
  Front Right: Playback 15 [100%]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 15 [100%] [off]
  Front Right: Capture 15 [100%] [off]
Simple mixer control 'Mix',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'AOUT',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Hardware Master',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Front Left: Playback 48 [76%] [on]
  Front Right: Playback 48 [76%] [on]
Simple mixer control 'Hardware Master Volume Split',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Record Monitor',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]


Can it be a problem that I have the pc-speaker enabled? I've tried with head-phones too, and it's just the same low static as the speakers have. The error message suggests it has something to do with pcm. Any ideas there?
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Sep 21, 2005 8:53 am    Post subject: Reply with quote

For me it works with the following BIOS settings:
ESS 1869 Audio-Controller-Interface:
Code:
IO: 0x0250-0x0257

ESS 1869 Plug-and-Play-Audiodrive:
Code:
IRQ: 5
DMA1: 1
DMA2: 0
IO: 0x0220-0x022F
    0x0388-0x038B
    0x0300-0x0301


I got the same pcm_write error you get. It was fixed by changing the module options for snd-es18xx to the ones shown in my initial post.
Back to top
View user's profile Send private message
C.M
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2003
Posts: 132
Location: Göteborg - Sweden

PostPosted: Wed Sep 21, 2005 5:45 pm    Post subject: Reply with quote

I changed my bios settings back so they look exactly like yours. Didn't help though, still get the exact same error. My alsasound config looks like this:
Code:

root@armada> grep yes /etc/conf.d/alsasound                                   ~
# yes - Load oss emul drivers if they're found
ENABLE_OSS_EMUL="yes"
# yes - Restore state
RESTORE_ON_START="yes"
# yes - Save state
SAVE_ON_STOP="yes


And my module config:
Code:

root@armada> cat /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.4 2004/11/16 01:31:22 eradicator Exp $

# ALSA portion
alias char-major-116 snd

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
alias snd-card-0 snd-es18xx
alias sound-slot-0 snd-es18xx
options snd-es18xx isapnp=0

options snd major=116 device_mode=0666
options snd cards_limit=1


My devices and error is still the same..
Code:

root@armada> ls /dev/snd                                                      ~
controlC0  pcmC0D0c  pcmC0D0p  seq  timer
root@armada> ls /dev/sound                                                    ~
audio  dsp  mixer  sequencer  sequencer2
root@armada> aplay /usr/share/sounds/gaim/redalert.wav                        ~
Playing WAVE '/usr/share/sounds/gaim/redalert.wav' : Signed 16 bit Little
Endian, Rate 22050 Hz, Mono
aplay: pcm_write:1171: write error: Input/output error

I'm using sys-fs/udev-068-r1, but dont' save a tarball of my devices when I reboot. Have you changed udev policies somehow? It seems like some people had similar problems with this soundcard about a year ago, but I haven't seen any solution yet. Maybe I have to give more parameters? Like the dma 1 and 2 or so.

Thanks again for your help and patience chrbecke! :)
Back to top
View user's profile Send private message
fisk
n00b
n00b


Joined: 29 Mar 2004
Posts: 63

PostPosted: Sat Oct 29, 2005 12:13 am    Post subject: Reply with quote

I have the Armada 1700 (identical soundchip), and sound is working.

However there are a bit of a hitch to be able to get it to work. Search through my post history, and you'll be able to find out how I did it.
_________________
-doh
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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