summaryrefslogtreecommitdiffstats
path: root/maemo/alsa-dsp.c
Commit message (Collapse)AuthorAgeFilesLines
* Mark as static the functions not used outside their unit.Diego E. 'Flameeyes' Pettenò2008-11-211-2/+2
| | | | | | | This allows the compiler to assume more about their interface, if at all possible. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Make some static tables and strings constants.Diego E. 'Flameeyes' Pettenò2008-11-211-5/+5
| | | | | | | | | | | By doing this we move them from the .data section to .rodata setion, or from .data.rel to .data.rel.ro. The .rodata section is mapped directly from the on-disk file, which is always a save, while .data.rel.ro is mapped directly when using prelink, which is a save in a lot of cases. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Various plugins don't support "hint" sectionsTakashi Iwai2008-06-061-1/+1
| | | | | | | | | Ignore hint sections defined by hand. Those are heplful to get listed in various places, such as aplay -L ALSA bug#3834: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3834 Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Alsa support for Maemo SDK (n770) - Remove compile warningsEduardo Valentin2006-11-071-1/+0
| | | | | | | | | | | | | | | | | Here is a patch to remove compile warnings. It must be applied after last patch set I sent. This patch simply changes signedness of some point from the code to match the correct sign used by dsp-protocol structures. All must use unsigned variables. It also changes the way the pthread_mutex is initialized. The warning about pthreads is also removed. I tested the compilation with: gcc (GCC) 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) and sbox-arm-linux-gcc (GCC) 3.4.4 (release) (CodeSourcery ARM 2005q3-2) Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
* Alsa support for Maemo SDK (n770): External PCM IO pluginEduardo Valentin2006-11-061-0/+772
This patch file adds an ALSA External PCM I/O plugin. This source uses the dsp-protocol implementation. The plugin probes for a free communication channel at the start time. It will probe only for channels specified into the configuration file for the plugin. An configuration example is: # PCM pcm.!default { type alsa_dsp playback_device_file ["/dev/dsptask/pcm2"] recording_device_file ["/dev/dsptask/pcm_rec"] } The plugin supports the following: * Playback: o 16-bit PCM formats: + S16_LE + S16_BE + U16_LE + U16_BE o 8-bit PCM formats: + A_LAW + MU_LAW + U8 + S8 o Rates: + 8 KHz + 11.025 KHz + 12 KHz + 16 KHz + 22.050 KHz + 24 KHz + 32 KHz + 44.1 KHz + 48 KHz o Channels: + Mono + Stereo * Recording: o 16-bit PCM formats: + S16_LE o 8-bit PCM formats: + A_LAW + MU_LAW o Rates: + 8 KHz o Channels + Mono Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>