summaryrefslogtreecommitdiffstats
path: root/src/modules/alsa-util.c
Commit message (Collapse)AuthorAgeFilesLines
* move alsa and oss modules into their own subdirectoriesLennart Poettering2009-01-151-1261/+0
|
* Prefer mixer controls with volumes over switchesLennart Poettering2009-01-081-8/+72
| | | | | | | | When we look for a mixer control prefer controls that have both volume and a mute switch over those that have only a volume switch over those that only have a mute switch. Originally pointed out by Adel Gadllah.
* fix a gcc warningLennart Poettering2008-12-231-2/+2
|
* If we cannot open an ALSA device with SND_PCM_NO_AUTO_FORMAT retry withoutLennart Poettering2008-12-231-4/+24
| | | | | This should fix compatibility with some sound cards which only support 24 bit packed samples.
* downgrade a few warningsLennart Poettering2008-12-171-4/+4
|
* warn if ALSA wakes us up and there is actually nothing to doLennart Poettering2008-10-221-0/+6
|
* Try to catch certain driver errorsLennart Poettering2008-10-211-0/+60
| | | | | ... by verifying return values of snd_pcm_avail_update() and snd_pcm_begin_mmap() for their sanenness.
* get rid of pa_alsa_volume_divide() since we have pa_sw_volume_divide() nowLennart Poettering2008-10-041-24/+0
|
* Work around presumable ALSA bug that treats the dir argument toLennart Poettering2008-09-091-4/+11
| | | | snd_pcm_hw_params_set_periods_near() actually as > or < instead of >= and <=.
* rework device opening code: work around broken SND_PCM_NO_AUTO_xxx support ↵Lennart Poettering2008-08-311-39/+68
| | | | in ALSA <= 1.0.17a
* alsa_error_handler should note source of errorsEd Catmur2008-08-261-1/+6
| | | | | | When an error gets passed up from alsa-lib via alsa_error_handler, it's unclear the source of the error. alsa_error_handler should note that the error came from alsa-lib. (Closes #341)
* add a few more gcc warning flags and fix quite a few problems found by doing soLennart Poettering2008-08-191-15/+16
|
* drop 0db reset functions since they are not necessary anymoreLennart Poettering2008-08-131-50/+0
|
* add new function pa_alsa_volume_divide()Lennart Poettering2008-08-131-0/+24
|
* reword some log messagesLennart Poettering2008-08-131-3/+3
|
* don't use PA_GCC_UNUSED anymoreLennart Poettering2008-08-091-2/+2
|
* try to bypass alsa softvol, since it is broken when used with snd_pcm_rewind()Lennart Poettering2008-07-161-1/+2
|
* make user of pa_channel_map_init_extend() wherever it makes senseLennart Poettering2008-06-181-20/+2
|
* get rid of svn $ keywordsLennart Poettering2008-06-181-2/+0
|
* merge glitch-free branch back into trunkLennart Poettering2008-05-151-24/+363
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
* deal with a possibly failing pa_channel_map_init_auto() correctlyLennart Poettering2008-02-131-1/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2105 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Rework ALSA mixer channel detection code. This time we actually care about ↵Lennart Poettering2007-11-131-4/+128
| | | | | | the channel names the ALSA mixer exports for us git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2055 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Completely rework ALSA device selection code: choose the device to open ↵Lennart Poettering2007-11-131-18/+234
| | | | | | depending on the requested number of channels and channel map. In most cases it will now suffice to set default-channels=6 to enable 5.1 sound for all devices that support it git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2050 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add support for 32bit integer samplesLennart Poettering2007-11-091-3/+11
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2037 fefdeb5f-60dc-0310-8127-8f9354f1896f
* merge 'lennart' branch back into trunk.Lennart Poettering2007-10-281-94/+108
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Add copyright notices to all relevant files. (based on svn log)Pierre Ossman2007-02-131-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Huge trailing whitespace cleanup. Let's keep the tree pure from here on,Pierre Ossman2007-01-041-14/+14
| | | | | | | mmmkay? git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove all occurences of Lennart Poettering2006-08-181-11/+11
| | | | | | | | | | | | pa_logXXX(__FILE__": and replace them by pa_logXXX(" git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1272 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix bad memory access and a leak when detructing ALSA fd listsLennart Poettering2006-08-111-2/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1198 fefdeb5f-60dc-0310-8127-8f9354f1896f
* change order of the ALSA event dispatch code to make sure that the code ↵Lennart Poettering2006-08-111-2/+2
| | | | | | survives if the event dispatcher frees the ALSA client git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1193 fefdeb5f-60dc-0310-8127-8f9354f1896f
* big s/polyp/pulse/gLennart Poettering2006-06-191-7/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * make hw param settings easier to debug by splitting up long ifLennart Poettering2006-06-171-6/+18
| | | | | | | | * actually set the sample rate * disable resampling done by ALSA git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1024 fefdeb5f-60dc-0310-8127-8f9354f1896f
* if S16NE is not supported, fall back to S16RE. If FLOAT32NE is not ↵Lennart Poettering2006-06-161-14/+70
| | | | | | supported, fall back to FLOAT32NE. If still nothing is supported, try everything else in order git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1020 fefdeb5f-60dc-0310-8127-8f9354f1896f
* decrease maximum allowed sample frequency for ALSA devices to 5%, since ↵Lennart Poettering2006-05-311-1/+1
| | | | | | 48000 would otherwise match with 44100 git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@995 fefdeb5f-60dc-0310-8127-8f9354f1896f
* downgrade a log messageLennart Poettering2006-05-301-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@994 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * alsa-sink: if "PCM" is not found as mixer track name, fallback to "Master"Lennart Poettering2006-05-301-6/+17
| | | | | | | * alsa-source: if "Capture" is not found as mixer track name, fallback to "Mic" git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@993 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * if an ALSA device doesn't support the channel count requested, use what ↵Lennart Poettering2006-05-301-3/+14
| | | | | | | | | | ALSA suggests instead * if an ALSA device doesn't support the sampling freq requested, use what ALSA suggests and resample if this deviates more than 10% from what we requested * fix segfault freeing an unitialized mixer_fdl field git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@992 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Move xmalloc to the public side (libpolyp).Pierre Ossman2006-05-171-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@908 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * modify pa_channel_map_init_auto() to take an extra argument specifying the ↵Lennart Poettering2006-05-161-44/+0
| | | | | | | | | standard to use (ALSA, AIFF, ...) * add some more validity checks to pa_source_new(),pa_sink_new(),pa_sink_input_new(),pa_source_output_new() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@888 fefdeb5f-60dc-0310-8127-8f9354f1896f
* first set buffer size, and afterwards period sizeLennart Poettering2006-05-131-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@854 fefdeb5f-60dc-0310-8127-8f9354f1896f
* use default alsa channel map for alsa devicesLennart Poettering2006-05-131-0/+44
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@851 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Zero the fd list since we do a memcmp on it later.Pierre Ossman2006-04-281-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@818 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix a couple of issues I found when compiling polypaudio with gcc 2.95Lennart Poettering2006-04-181-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@754 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Fix ALSA fd handling to be compatible with blocking deferred events.Pierre Ossman2006-04-161-2/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@724 fefdeb5f-60dc-0310-8127-8f9354f1896f
* It's safer to set buffer size than to try setting number of periods.Pierre Ossman2006-03-051-1/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@628 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Return the proper error code so that we get a correct error message.Pierre Ossman2006-03-051-12/+12
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@627 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Get notifications about mixer changes from ALSA.Pierre Ossman2006-02-261-7/+37
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@607 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Handle ALSA file descriptors more correctly. This means a bit more overhead,Pierre Ossman2006-02-261-43/+182
| | | | | | | but following their API properly should avoid problems in the future. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@606 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Hardware volume support in ALSA modules.Pierre Ossman2006-02-261-0/+39
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@604 fefdeb5f-60dc-0310-8127-8f9354f1896f
* change pa_log() and friends to not require a trailing \n on all logged stringsLennart Poettering2006-02-231-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@574 fefdeb5f-60dc-0310-8127-8f9354f1896f