ALSA (Advanced Linux Sound Architecture ) is an API of audio functions for the linux platform.

learn more… | top users | synonyms

23
votes
4answers
16k views

Generating random noise for fun in /dev/snd/

Recently I have been exploring the enchanted /dev folder. I want to write some random data to an audio device in order to generate some noise. I am using ALSA. So I instruct cat to pipe some random ...
17
votes
3answers
12k views

Change PulseAudio Input/Output from Shell?

I have a set of nice wireless headphones which I use from time to time, in addition to my speakers and normal microphone. I'd like to write a script to switch between one input and output source and ...
16
votes
1answer
30k views

How to use command line to change volume?

I am trying to control the volume using my programming script. How can I do the following in Fedora 15, Ubuntu linux? Mute/ Unmute Volume up and volume down Note: Please note that I use a web USB ...
12
votes
1answer
1k views

Debian systems seems to recognize speakers but not the headphones for Lenovo laptops

First of All, I know there are lot of questions out there on same topic but still I could not figure out the solution. Being a average system level programmer (beginner in kernel programming) I would ...
9
votes
4answers
3k views

Low sound volume on Lenovo laptop under Fedora

I'm having trouble hearing anything at all under Fedora 16 on this Lenovo T520. Everything in alsamixer is at 100% (both pulseaudio and card). I installed Windows 7 on the laptop to check if the same ...
8
votes
3answers
6k views

Microphone - static background noise suppression on Linux

My soundcard is Realtek ALC 892. On Windows 7 I use official Realtek drivers, on Linux I use PulseAudio (on Ubuntu 13.10). On both Windows and Linux, when I enable microphone boost +30db (required ...
8
votes
1answer
4k views

ALSA/ASoC: How to correctly load devices/drivers?

I am using Buildroot to build an embedded Linux (2.6.39.2) system for the NXP LPC3250 microcontroller. Right now, I'm trying to get ALSA/ASoC up and running, but I'm having some issues with getting ...
8
votes
1answer
733 views

Merge two audio sources with x11grab, possible?

Currently I'm running with the following setup. ffmpeg \ -i http://pub1.di.fm:80/di_vocaltrance \ -f x11grab -s 1920x1080 -r 25 -i :0.0 \ -c:v libx264 -preset fast -pix_fmt yuv420p -s 1280x800 \ ...
7
votes
1answer
7k views

How to check why sound over HDMI doesn't work

I installed Gentoo clean on my system, except my /home but I deleted all hidden folders that might have an impact on sound (.mplayer .pulse* .config .esd_auth and more) and with a fresh user adduser ...
7
votes
1answer
1k views

Changing default audio device in Pulseaudio

I would like to use HDMI on my graphic card for audio output. ALSA shows it as a card with 4 devices and I can get sound through one of them (the other three are different channels, perhaps? I have ...
7
votes
2answers
748 views

No sound when attached to docking station

I have been using Linux and Ubuntu only since the last two months on my (2006) Sony Vaio VGN A617S laptop which is going pretty well on Ubuntu 10.10. When installing Ubuntu audio did get installed ...
6
votes
3answers
9k views

How do I enable sound in this fresh Arch install?

I'm following the Arch Beginner's Guide. I have Arch running. Now I'm working on the post-installation instructions, one of the first parts of which is to unmute the speakers. This is where my ...
6
votes
4answers
4k views

How can I switch to my USB headset automagically when it's plugged in?

I'm running Funtoo Linux, a Gentoo derivative. My two new Plantronics USB headsets (one wired, one wireless) work nicely. I plug one in, ALSA notices it, and if I manually set an application to use ...
6
votes
1answer
3k views

Can someone diagnose this JACK error message?

OK. I start JACK without starting the JACK server. I get: 23:09:22.730 Patchbay deactivated. 23:09:22.765 Statistics reset. Cannot connect to server socket err = No such file or directory Cannot ...
6
votes
2answers
917 views

Microphone always picks up sound and routes it to speakers

I've started running into a kind of strange problem on my laptop, and Google hasn't proved to be very helpful so far. Essentially, at seemingly random times, my microphone will start sending output ...
5
votes
3answers
4k views

Command line audio player that exits immediately after file finished playing back?

I am experimenting with audio players in the command line, and noticed something weird: if the sound is very short, most players will take up to a second or two after playback has finished, before ...
5
votes
5answers
2k views

recording audio from web-based audio player using ALSA loop device

I am trying to save voicemail messages from Verizon Fios phone in best quality possible. The voicemail messages are available online, but for playing only (Java based player), no saving. Officially, ...
5
votes
1answer
4k views

Sound not working when both the sound card and HDMI use the Intel HDA driver. How to exchange their device loading order?

I have an Acer Aspire One 522 netbook which has an Intel HDA sound card based on the Conexant CX20584 chipset. Although KDE does output sound when starting up, flash and probably many other apps which ...
5
votes
2answers
445 views

Can I query which processes (if any) are currently accessing the microphone?

I'm running Debian (technically Raspbian), trying to get a Star-Trek style voice-command system. I've got it mostly up and running, but in the interests of privacy and all that jazz, I don't want my ...
5
votes
1answer
1k views

Samson Meteor Mic under Linux/ALSA

Has anybody gotten a Samson Meteor Mic working under Linux/ALSA? I tried to google it but I found no mention of Samson Meteor under Linux at all. Kernel/ALSA/Audacity see the device. Unfortunately I ...
5
votes
1answer
11k views

ALSA: how to temporarily change the output device

I want to do a simplest thing possible in ALSA: to have USB-headphones produce sound instead of internal speaker of my tablet. I don't want to change config files such as asound.rc or alsa.conf or ...
5
votes
1answer
814 views

ALSA dummy device - how to configure?

I am working on an audio stream between two virtual servers. For that, I have set up a dummy soundcard (as the vservers don't have a hw card) using modprobe snd-dummy. That seems to work fine - I am ...
5
votes
1answer
272 views

Xorg key clicks?

I've currently got Fedora 9 on my home PC (yes, I know its quite old - but hell I only reboot it every 6 months - nevermind upgrading!) . My only niggle is that keyboard I've got has quite a different ...
5
votes
1answer
1k views

Why do I have to run alsactl init each time I boot my system? [closed]

After a new update, there is no sound by default in my Debian Squeeze box until running alsactl init, but whenever rebooting the computer I have to run the command again to gain sound. How can I ...
4
votes
2answers
1k views

What is the alsamixer of Pulse Audio?

I just installed Pulse Audio over my ALSA installation. Is there a Pulse Audio equivalent of alsamixer that I can use for tasks such as changing the microphone gain?
4
votes
2answers
854 views

How do I detect wheter the audio cable is connected?

I'm using Ubuntu Lucid (10.04). In my shell script running as root I want to detect whether an audio cable (analog jack) is connected to the laptop or not. How do I do that? I don't need a portable ...
4
votes
3answers
7k views

amixer - How to change recording channel?

So fat, I am setting up microphone settings : $ amixer set 'Rear Mic' 90% mute cap $ amixer set 'Rear Mic Boost' 80% But, after some sys. update, my default recoding chanell changed to 'Front Mic' ...
4
votes
1answer
446 views

How can I set a top limit for the PCM value when changing the loudness with pulseaudio?

when I change the loudness with pulseaudio, pulseaudio acts on several of the values I can see when I use alsamixer -c0 I have a problem: when the PCM loudness exceeds a certain value (80%), the ...
4
votes
4answers
6k views

My audio device not working

I have been setting up a new CrunchBang Linux and my sound doesn't work. When I type lspci -v command and alplay -l command in command prompt I can see that my sound card is connected and detected. ...
4
votes
1answer
36 views

Default sound volume for all ALSA devices

I woud like to set up the default sound volume once for all, for all ALSA devices that will be connected ever. Of course, I could do amixer ... or even alsamixer to modify the volume of currently ...
4
votes
1answer
864 views

Finding the current speaker volume (signal strength)

I'm trying to create a widget for awesome wm that controls and monitors volume. Getting and setting the speaker volume is easy in ALSA and PulseAudio, but how about getting the actual signal ...
4
votes
1answer
787 views

How to get Debian's volume control working with Pulse

I finally configured Pulse to work with every application, however using the volume control on my keyboard still controls the default ALSA selected device. How do I change it so it adjusts the current ...
4
votes
2answers
168 views

Sound crackles and echos to the point of being unusable

I recently got a new desktop, installed debian 64 bit, and found out that the sound doesn't work at all. I'm not entirely sure what information I should give to help identify the problem but I'll do ...
4
votes
1answer
437 views

Alsa not detecting USB microphone on system boot

I have a USB microphone that works fine, up until I reboot my system. After that, it doesn't work at all until I unplug it and replug it. Based on my (limited) understanding of the components ...
4
votes
4answers
1k views

Is there any gnome-shell mixer icon relying on alsa and not pulseaudio?

So, long story short, when I installed Mint 12 on my Dell laptop I realized my HDA-intel sound board have problems with pulseaudio. I uninstalled pulseaudio and got my sound back, but removing ...
3
votes
2answers
91 views

How proc gets updated about the devices [duplicate]

If i do cat /proc/asound/cards it lists all the sound card details from where proc gets this information.This file is continuously updating what if i want to make a manual entry
3
votes
1answer
1k views

What is ALSA in the Linux kernel?

What is ALSA? I read the Wikipedia page but couldn't understand it. All I understand is that it is a module in the kernel that has something to do with sound. What happens if you don't include it in ...
3
votes
1answer
4k views

How to restart Alsa/PulseAudio after using Jack

After I use Jack, the PulseAudio outputs and inputs are replaced by a dummy device. I've tried to kill PulseAudio and reload Alsa, but the only way I can use an Alsa-based application again is to ...
3
votes
1answer
800 views

How can I find the correct name for my microphone and sound output using aplay or pacmd or something else, to apply in asound.conf?

I need to write a default mic and default speaker output in the asound.conf config file. But I don't know exactly how I can find my external sound card or microphone device's name, so that on reboot ...
3
votes
2answers
2k views

Recording audio output

I've been following these instructions for recording the output of a program I wrote (that uses rtaudio to synthesize music) ...
3
votes
1answer
1k views

5.1 speakers on soundblaster x-fi 'extreme audio'

The rear and center channels on my 5.1 speakers don't work. I've checked the connections a few time, and turned up volume sliders in alsamixer “System information” in alsamixer correctly identifies ...
3
votes
2answers
136 views

Where do sound drivers live? [closed]

A little while ago I searched for a good driver for my sound card (with surround sound support) and didn't find any. So it seems there is none. I thought I could try (even though I think nothing ...
3
votes
1answer
652 views

Record audio from multiple devices with ALSA and Pulseaudio

I want to record audio from multiple input devices using ALSA and Pulseaudio. More precisely, I want to play UltraStar Deluxe. It is a game using SDL. As far as I can tell, it supports ALSA only. ...
3
votes
1answer
531 views

How to simultaneously play sounds on 4.0 surround system using aplay

After my first configuration war against alsa (won with the help of CL.) check this question ... I would now want to go further : I am able to play multi-channel sounds on my setup, but I now need ...
3
votes
1answer
165 views

Turn on PC speaker after resume

After resuming from suspend my PC speaker becomes silent. I need to run alsamixer and arbitrarily adjust its volume either up or down for it to come back again. But if I suspend and then resume a ...
3
votes
1answer
2k views

Command line audio - piping for simultaneous playback and recording

I am trying to generate sound data, convert it and store it to a WAV format. I'm almost there - except I'd like to hear the generated sound "while" it is being "recorded". This command line just ...
3
votes
2answers
1k views

How do I know if my microphone is mute or unmute when I have more than one microphone?

How do I find out if my microphone is muted or unmuted, when I have more than one microphone such as Motherboard, USB and HDMI? 1) I can't find it with this: $ cat /proc/asound/cards 0 [PCH ...
3
votes
0answers
100 views

Set maximum volume in Arch Linux

Recently, I purchased new over-ear headphones that have some really powerful speakers. I usually have to listen at ~4% volume to use them comfortably. Each time I restart my computer, they move back ...
3
votes
1answer
119 views

ALSA sampling rate

Couple of questions: If you set the capture sampling rate in ALSA API to say 1000Hz, is the input really sampled at 1000Hz, or does the sound card always sample at its maximum capable sampling rate, ...
3
votes
0answers
644 views

How to set up AMD Cayman/Antilles HDMI Audio (Radeon HD 6900 series)?

I've got an AMD Radeon HD 6950 card: $ lspci | grep AMD 03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cayman PRO [Radeon HD 6950] 03:00.1 Audio device: Advanced Micro ...