: Segfaults all functions after snd_pcm_hw_params_get_buffer_size (params,(snd_pcm_uframes_t *) & val);
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2287>
======================================================================
Reported By: cruiseoveride
Assigned To:
======================================================================
Project: ALSA - lib Issue ID: 2287 Category: 0_general Reproducibility: always Severity: crash Priority: normal Status: new ====================================================================== Date Submitted: 07-16-2006 18:03 CEST Last Modified: 07-17-2006 07:31 CEST
======================================================================
Summary: Segfaults all functions aftersnd_pcm_hw_params_get_buffer_size (params,(snd_pcm_uframes_t *) & val); Description:
I am new to Alsa and am not happy at all at the state of documentation available.
You guys seriously need to do something about this.
I have an M-Audio Audiophile Delta 192 (ICE1724) and I want to port envy24control for this chip, However I first need to familiar myself with the ALSA API. So I began by looking for simple examples on how to use ALSA API and came accross the followinf prog (Attached file test.c).
The program compiles cleanly with gcc-4.1 and runs, however after it prints out the ..."buffer size = 8192 frames"
It segfaults.
If you slash out line 104, it resolves the issue.
My question is,
Is there a bug in this function?
Code was obtained from http://www.linuxjournal.com/article/6735
======================================================================
----------------------------------------------------------------------
cruiseoveride - 07-17-06 05:46
----------------------------------------------------------------------
I changed the format, still segfaults at the same place.
even with the plughw:2
----------------------------------------------------------------------
Raymond - 07-17-06 07:31
----------------------------------------------------------------------
Some of the functions seem out-dated.
snd_pcm_hw_params_get_periods (params, &val, &dir); snd_pcm_hw_params_get_rate_numden (params, &val, &val2);
http://www.alsa-project.org/alsa-doc/alsa-lib/examples.html
Can you run alsa-lib examples ?
pcm.c, pcm_min.c and latency.c
The alsa-lib control inteface api
http://www.alsa-project.org/alsa-doc/alsa-lib/group___h_control.html
alsa-tool (e.g. envy24control, echomixer, hdspmixer, ..)
alsa-driver control api
http://www.alsa-project.org/~iwai/writing-an-alsa-driver/c843.htm
ice1712/ice1724 driver code
http://hg-mirror.alsa-project.org/alsa-kernel?mf=a7ac5a5c1e51;path=/pci/ice1712/;style=gitweb
Issue History
Date Modified Username Field Change
======================================================================
07-16-06 18:03 cruiseoveride New Issue 07-16-06 18:03 cruiseoveride File Added: test.c 07-16-06 20:38 cruiseoveride Issue Monitored: cruiseoveride 07-17-06 02:44 Raymond Note Added: 0011032 07-17-06 02:47 Raymond Note Edited: 0011032 07-17-06 03:18 Raymond Note Edited: 0011032 07-17-06 05:45 cruiseoveride Note Added: 0011033 07-17-06 05:46 cruiseoveride Note Edited: 0011033 07-17-06 07:31 Raymond Note Added: 0011035
======================================================================
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642