[Alsa-user] RT-timings when recording

2016-10-24 Thread Dennis Borgmann
Hello ALSA-user list! I am trying to read on an ALSA-device with a simple example program I found here: https://gist.github.com/albanpeignier/104902 It just sets up the audio interface and then records audio samples in a loop. That's it already. I enhanced it a little in order to measure some

Re: [Alsa-user] period_size below 8000 on Intel Edison

2016-01-07 Thread Dennis Borgmann
iod size (Unknown error -22), error-code: -22". Here is how I call it: >>>>>>>>>>>>>>>>>>>>>> val = 96; dir = 0; err = snd_pcm_hw_params_set_period_size(*pcm_handle, hwparams, val, dir); if( err != 0 ) { printf("%s:%u erro

[Alsa-user] period_size below 8000 on Intel Edison

2016-01-04 Thread Dennis Borgmann
Hi alsa-users! I have a software written in C, that's been running for quite some time (about 5 years) on a x86-machine(actually, it's a PC Engines ALIX-Board with a Debian Linux running on it). It is using ALSA for reading from a soundcard, transmitting it via network to another node running

Re: [Alsa-user] "_snd_pcm_hw_open not defined" - ALSA plus MPlayer on ARM[AT91SAM9260]

2011-03-31 Thread Dennis Borgmann
Hello alsa-list, hello mplayer-list! These are the options I need in order to make it all run on my AT91SAM9260: ALSA-lib: :~/downloads/alsa-lib-1.0.24.1$ export LDFLAGS="" :~/downloads/alsa-lib-1.0.24.1$ export CFLAGS="" :~/downloads/alsa-lib-1.0.24.1$ export LIBS="-lm" :~/downloads/alsa-lib-1.

[Alsa-user] "_snd_pcm_hw_open not defined" - ALSA plus MPlayer on ARM[AT91SAM9260]

2011-03-30 Thread Dennis Borgmann
Hello alsa-users, hello mplayer-users! Recently, I tried to compile MPlayer 1.0rc4-4.3.5 for ARM AT91-SAM9260. # uname -a Linux testsystem 2.6.33.7 #1 PREEMPT Wed Mar 30 13:33:39

Re: [Alsa-user] getting device name for playback

2011-03-29 Thread Dennis Borgmann
Hello alsa-users! I found out, how to get to know the device names. It can be done by parsing the output of alsactl store. Every device, that is capable of output, has got a negative or 0-value of dbmax. Best regards, Dennis Dennis Borgmann schrieb: > Hello alsa-users! > > I woul

[Alsa-user] getting device name for playback

2011-03-28 Thread Dennis Borgmann
Hello alsa-users! I would like to extract the info, which device is for playback on a sound device. For example, I have a headset, which gives back this info: :~# amixer -c 0 scontrols Simple mixer control 'Mic',0 Simple mixer control 'Auto Gain Control',0 Simple mixer control 'Speaker',0 and fo

[Alsa-user] snd_pcm_wait won't return

2010-06-13 Thread Dennis Borgmann
Hello alsa-users list! I am using the alsa-lib in one of my projects and within this project, there is a call for snd_pcm_wait() on a machine, that plays sound. The call itself looks like this: snd_pcm_wait( pcm_handle, 1000 ); A few steps before, I had the timeout set to unlimited (-1), which s

[Alsa-user] USB-no capture device

2009-12-01 Thread Dennis Borgmann
Hi list! I just compiled the new alsa-driver, since I had no capture option with a Behringer UCA202 USB-card, which contains a PCM2902 from TI using alsa in version 1.0.20. Now, I recompiled the following packages: alsa-driver-1.0.21 alsa-lib-1.0.21a alsa-utils-1.0.21 alsa-firmware-1.0.20 alsa-

[Alsa-user] Sound XRUN on RT-Linux

2009-07-22 Thread Dennis Borgmann
eems to be the reason for my crappy sound. Is there anyone among the RT-list or the ALSA-list who has a slight idea, what my problem might be related to and how I can get rid of it? Very kind regards, Dennis Borgmann --

[Alsa-user] Strange "knocking" while playing sound

2009-07-20 Thread Dennis Borgmann
Hello list-users! I am programming some network-transmitting soundserver and client - I'm tyring to get some soundstreaming via network done. Everything works fine, the load of the driver ringbuffer seems to be OK so far (at least 400 frames in the buffer at any point of time, I am taking care of

[Alsa-user] Underrun although there still is data in the driver

2009-06-16 Thread Dennis Borgmann
Hello Alsa-Users - list! I just wonder, how it is possible, that i get an EPIPE (underrun) on a nonblocking card while issueing writei(). If I issue a snd_pcm_avail() less than 40us before, it shows no underrun, but instead about 600 frames available in the driver, which would take about 10ms to p

Re: [Alsa-user] threshold not applied

2009-06-03 Thread Dennis Borgmann
write it. Where is a good source for documentation? I do NOT want to read the whole sourcecode of the alsa-lib... Very kind regards with sunny greetings from Germany Dennis Jaroslav Kysela schrieb: > On Wed, 3 Jun 2009, Dennis Borgmann wrote: > >> Hello list-users! >> >&

[Alsa-user] threshold not applied

2009-06-02 Thread Dennis Borgmann
Hello list-users! I am trying to set a software-parameter with this command: snd_pcm_sw_params_set_start_threshold This is working fine with a machine, that I got standing in my own flat. But as soon as I use it with a PC from a friend, this parameter is not applied (I can see this from time mea

[Alsa-user] Fragment size

2009-06-02 Thread Dennis Borgmann
Hello List-users! I have been dealing with this for quite some time now and I cannot get to the point. I have a rather simple code of maybe 100 lines which just writes some buffer to the soundcard using snd_pcm_writei(). Although the buffer is just there within the program itself (no external sou