LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Installing ALSA (https://www.linuxquestions.org/questions/debian-26/installing-alsa-362841/)

adz 09-20-2005 07:01 PM

You need an ncurses development library. Do an apt-cache search ncurses dev to get a list of related packages and then install the right one.

rossjman1 09-20-2005 07:13 PM

I have libncurses5, libncurses5-dev, and libncursesw-dev.
Code:

debian:/usr/src/alsa/alsa-utils-1.0.9a# apt-cache search ncurses dev
bochs-term - Terminal (ncurses-based) plugin for Bochs
dav-text - A minimalist ncurses-based text editor
kernel-source-2.2.25 - Linux kernel source for version 2.2.25
kernel-source-2.4.24 - Linux kernel source for version 2.4.24 with Debian patches
kernel-source-2.4.25 - Linux kernel source for version 2.4.25 with Debian patches
kernel-source-2.4.26 - Linux kernel source for version 2.4.26 with Debian patches
kernel-source-2.4.27 - Linux kernel source for version 2.4.27 with Debian patches
kernel-source-2.6.8 - Linux kernel source for version 2.6.8 with Debian patches
libncurses5-dev - Developer's libraries and docs for ncurses
libncursesw5-dev - Developer's libraries for ncursesw
librote-dev - a simple C library for VT102 terminal emulation - development
moc - ncurses based console audio player
php4-cli - command-line interpreter for the php4 scripting language
tcd - Portable CD player with an ncurses interface
whiptail - Displays user-friendly dialog boxes from shell scripts


adz 09-20-2005 07:41 PM

Here are the ones which I have installed. Make sure you have them installed too.
Code:

adz@hades:~/storage/alsa-utils-1.0.8$ dpkg -l *curses*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name          Version        Description
+++-==============-==============-============================================
un  libcurses-ruby <none>        (no description available)
un  libncurses-dev <none>        (no description available)
ii  libncurses5    5.4-9          Shared libraries for terminal handling
ii  libncurses5-de 5.4-9          Developer's libraries and docs for ncurses
ii  libncursesw5  5.4-9          Shared libraries for terminal handling (wide
un  ncurses        <none>        (no description available)
ii  ncurses-base  5.4-9          Descriptions of common terminal types
ii  ncurses-bin    5.4-9          Terminal-related programs and man pages
un  ncurses-dev    <none>        (no description available)
un  ncurses-develo <none>        (no description available)
un  ncurses-runtim <none>        (no description available)
ii  ncurses-term  5.4-9          Additional terminal type definitions
un  pinentry-curse <none>        (no description available)


rossjman1 09-20-2005 07:52 PM

Yep. That worked. I got everything installed. then I did
Code:

debian:/usr/src/alsa/alsa-utils-1.0.9a# modprobe snd-ca0106;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss
Then alsamixer, but sound still does not work, should I have apt-get remove alsa, before I did this? It seems that the old settings are still in effect.

adz 09-20-2005 10:14 PM

Can you post the output of cat /var/lib/alsa/asound.state? I'd like to compare it to another set I found.

Another thing, do you have a volume control called "Audigy Analogue/Digital Output Jack" in alsamixer?

rossjman1 09-20-2005 10:27 PM

Code:

debian:~# cat /var/lib/alsa/asound.state
state.CA0106 {
        control.1 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 255'
                iface MIXER
                name 'Analog Front Volume'
                value.0 205
                value.1 205
        }
        control.2 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 255'
                iface MIXER
                name 'Analog Rear Volume'
                value.0 205
                value.1 205
        }
        control.3 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 255'
                iface MIXER
                name 'Analog Center/LFE Volume'
                value.0 205
                value.1 205
        }
        control.4 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 255'
                iface MIXER
                name 'Analog Unknown Volume'
                value.0 205
                value.1 205
        }
        control.5 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 255'
                iface MIXER
                name 'SPDIF Front Volume'
                value.0 205
                value.1 205
        }
        control.6 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 255'
                iface MIXER
                name 'SPDIF Rear Volume'
                value.0 205
                value.1 205
        }
        control.7 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 255'
                iface MIXER
                name 'SPDIF Center/LFE Volume'
                value.0 205
                value.1 205
        }
        control.8 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 255'
                iface MIXER
                name 'SPDIF Unknown Volume'
                value.0 205
                value.1 205
        }
        control.9 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 2
                comment.range '0 - 255'
                iface MIXER
                name 'CAPTURE feedback into PLAYBACK'
                value.0 205
                value.1 205
        }
        control.10 {
                comment.access read
                comment.type IEC958
                comment.count 1
                iface MIXER
                name 'IEC958 Playback Mask'
                value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
        }
        control.11 {
                comment.access read
                comment.type IEC958
                comment.count 1
                iface MIXER
                name 'IEC958 Playback Mask'
                index 1
                value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
        }
        control.12 {
                comment.access read
                comment.type IEC958
                comment.count 1
                iface MIXER
                name 'IEC958 Playback Mask'
                index 2
                value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
        }
        control.13 {
                comment.access read
                comment.type IEC958
                comment.count 1
                iface MIXER
                name 'IEC958 Playback Mask'
                index 3
                value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
        }
        control.14 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'SPDIF Out'
                value true
        }
        control.15 {
                comment.access 'read write'
                comment.type ENUMERATED
                comment.count 1
                comment.item.0 'SPDIF out'
                comment.item.1 'i2s mixer out'
                comment.item.2 'SPDIF in'
                comment.item.3 'i2s in'
                comment.item.4 'AC97 in'
                comment.item.5 'SRC out'
                iface MIXER
                name 'Capture Source'
                value 'i2s in'
        }
        control.16 {
                comment.access 'read write'
                comment.type IEC958
                comment.count 1
                iface MIXER
                name 'IEC958 Playback Default'
                value '0492100200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
        }
        control.17 {
                comment.access 'read write'
                comment.type IEC958
                comment.count 1
                iface MIXER
                name 'IEC958 Playback Default'
                index 1
                value '0492100200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
        }
        control.18 {
                comment.access 'read write'
                comment.type IEC958
                comment.count 1
                iface MIXER
                name 'IEC958 Playback Default'
                index 2
                value '0492100200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
        }
        control.19 {
                comment.access 'read write'
                comment.type IEC958
                comment.count 1
                iface MIXER
                name 'IEC958 Playback Default'
                index 3
                value '0492100200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
        }
}

Here are all of the things that I can manipulate in alsamixer:
Analog Center/LFE
Analog Front
Analog Rear
Analog Side
CAPTURE feedback into PLAYBACK
SPDIF Center/LFE
SPDIF Rear
SPDIF Out (no vol control, only mute/unmute)
SPDIF Rear
SPDIF Unknown

Here are some more things that alsamixer wont let me do anything with.
AC97 in
SPDIF in
SPDIF out
SRC out
i2s in
i2s mixer out

adz 09-20-2005 10:45 PM

Can you experiment with muting/unmuting SPDIF Out? In other words play sound, toggle SPDIF Out, play sound, toggle SPDIF Out.

Also, I've found some information on the drivers here. It may help you in some way.

Greg Mink 09-20-2005 11:30 PM

I seem to be having similar problems with my sound card. However, I don't have modules for snd-ca0106, snd-emu10k1 or snd-emu10k2. I'm running 3.1 with 2.6.8-2-386 kernel (debian precompiled).

Also, how do you make the /dev/dsp device under 2.6 kernels?

adz 09-21-2005 02:42 AM

Greg Mink, you should definetly have the modules. How did you come to the conclusion that you didn't?

rossjman1 09-21-2005 03:56 PM

Sound doesn't work when it's off or on. When I toggle it, though, I hear a faint "popping sound".

adz 09-22-2005 08:02 AM

Well try this link and see if it helps.

Also, it sounds a bit like there may be some confusion between analogue and digital outputs on your card/driver. Check out this link as it has some good analysis that gets down to some nitty-gritty. It may serve only to educate you a little but that couldn't hurt, I suppose.

rossjman1 09-22-2005 01:39 PM

I give up with alsa. I'm going to try to see if Oss works, but I need to uninstall alsa first. I tried 'make uninstall' for all alsa-driver, alsa-lib, alsa-oss, and alsa-utils (all the things i compiled from source). In addition I 'apt-get uninstall' for alsa-base, alsa-oss, and alsa-utils (none of which were installed). Debian still tries to load the driver. It gives me errors like this:
Code:

modprobe: fatal error trying to load snd-ca0106
driver ca0106 loaded successfully

This makes it impossible to install oss.
Code:

Debian:/home/jantosh/sound# ./oss-install
Checking for any previously installed sound drivers...
You appear to have the the kernel level sound driver installed as a loadable
module. Unload it by executing rmmod sound and try installing OSS/Linux again.

If this error repeats again you probably have the sound driver being loaded
automagically by the kerneld daemon. In this case you should log out from the
X Windows session, then press <ctl><alt><F1> and log in on the Linux console
as root and then install OSS again.

I also deleted the /etc/modutils/alsa file. Is there anyway to get rid of Alsa?

adz 09-22-2005 06:54 PM

After you delete that file you have to run update-modules.

Quote:

Unload it by executing rmmod sound and try installing OSS/Linux again.
Did you try that?

Quote:

If this error repeats again you probably have the sound driver being loaded
automagically by the kerneld daemon. In this case you should log out from the
X Windows session, then press <ctl><alt><F1> and log in on the Linux console
as root and then install OSS again.
Or that?

deepclutch 09-22-2005 08:30 PM

for nongeeks only:-
For sound working for ur new cards mostly onboard u may need to compile a new kernel with
kernel-module-alsa .deb files.to be more precise get this link and read it fully.
http://www.linuxforu.com/yabbse/inde...;threadid=1223
for kernel compiling
http://www.linuxquestions.org/questi...hreadid=206992
IT is not that tough.u can atleast experiment it in a spare deb sarge machine or by installing a new deb sarge on another partition on same pc.best of Luck:study: :twocents:

Greg Mink 09-25-2005 03:24 PM

>Greg Mink, you should definetly have the modules. How did you >come to the conclusion that you didn't?

I tried to modprobe the ca0106 and snd-ca0106 modules and it says module not found. When I look in the modules directory, I find the emu module but no ca. Also when I run modconf, I see emu is in the list ca isn't.

Here is what I have installed:
install:/dev# dpkg -l | grep alsa
ii alsa-base 1.0.8-7 ALSA driver configuration files
ii alsa-oss 1.0.8-1 ALSA wrapper for OSS applications
ii alsa-utils 1.0.8-4 ALSA utilities
ii alsamixergui 0.9.0rc2-1-7 graphical soundcard mixer for ALSA soundcard
ii alsaplayer 0.99.76-0.3 PCM player designed for ALSA
ii alsaplayer-com 0.99.76-0.3 PCM player designed for ALSA (common files)
ii alsaplayer-gtk 0.99.76-0.3 PCM player designed for ALSA (GTK version)
ii alsaplayer-oss 0.99.76-0.3 PCM player designed for ALSA (OSS output mod

What's sounds cards are high quality for music/recording, etc but is (and has been for a while) completely supported, that I could buy without ending up with some weirdo late rev model that's not compatible with the original?


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