summaryrefslogtreecommitdiffstats
path: root/src/modules/alsa
Commit message (Collapse)AuthorAgeFilesLines
* ratelimit: fix log levels of log suppression messagesLennart Poettering2011-01-222-5/+5
| | | | | When logging a suppression message do so on the same log level as the suppressed messages.
* Fix typosZhang Wanming2010-12-201-4/+4
|
* build-sys: Replace dummy Makefiles with proper Makefile.am'sColin Guthrie2010-12-048-4/+80
| | | | | | | | | | | | | | | | | | | | | | | | This is needed to better support out of tree builds (including distcheck) and to ensure the necessary folders are created in the build tree on configure and also works around an intl-tools bug (https://bugs.launchpad.net/intltool/+bug/605826) The Makefile.am's used are minimal (and in some cases completely blank). At present they do not include anything interesting with the majority of the real work still done by the monolitic src/Makefile.am It may make sense to start splitting out src/Makefile.am into smaller chunks but this commit makes the minimum changes to address the issues that result from using make distcheck and other out of tree builds. Note: This 'breaks' the ability to type make in e.g. the src/modules folder and have all of PA rebuilt accordingly (this is because the static Makefiles previously present just did a "make -C ..") which was purportedly for use in emacs. But I'm sure there will be a better and more robust way to configure emacs to do your builds properly if this behaviour is still desirable.
* Handle 'Internal Mic 1' as an 'Input Source'Daniel T Chen2010-11-251-0/+4
| | | | | | | | | BugLink: https://launchpad.net/bugs/680810 Some laptops have 'Internal Mic 1' exposed as an 'Input Source', e.g., Dell XPSM 1530, so handle these, too. Signed-off-by: Daniel T Chen <crimsun@ubuntu.com>
* Add "Rear Mic" to alsa mixer paths.David Henningsson2010-11-252-0/+13
| | | | Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* alsa-source: fix enum typesLennart Poettering2010-11-251-2/+2
|
* alsa-mixer: make a few strings translatableLennart Poettering2010-11-251-3/+3
| | | | | | Original patch contributed by 'kelemeng' http://pulseaudio.org/ticket/843
* alsa: remove redundant call to snd_pcm_nonblock()Pierre-Louis Bossart2010-11-171-2/+0
| | | | | | | The PCM handle is already opened with the SND_PCM_NONBLOCK flag. This additional call is useless. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
* alsa-mixer: add profile for Native Instruments KorecontrollerDaniel Mack2010-10-312-0/+86
|
* alsa: Only set the 'first' flag to false when we actually call snd_pcm_start()Colin Guthrie2010-09-141-1/+2
| | | | Previously, if work_done was false, we could conceivably not call snd_pcm_start().
* alsa-mixer: add profile for Traktor Kontrol S4Daniel Mack2010-09-142-0/+82
| | | | | This new audio interface from Native Instruments has 2 stereo channels for both input and output direction. This patch adds mappings for them.
* alsa: make defines for smoother configurationWim Taymans2010-09-142-4/+10
| | | | | | | | | | | | Make new defines for the smoother window size and adjust time constants instead of reusing some unrelated constant. Increase the smoother window size even more because the bigger it is, the better. Since we have a 200ms max update interval and the max smoother history is 64 entries, 10seconds is a good default. Decrease the smoother adjust time to 1 second. The previous value of 4 seconds was too much to adapt quickly after a resume.
* alsa: work around slightly broken _delay implementationsWim Taymans2010-09-144-6/+46
| | | | | | Use snd_pcm_avail_delay() in pa_alsa_safe_delay() so that we can check the delay value against the avail value and patch it up when it looks invalid. Only do this for capture.
* alsa-source: refactor smoother and device startWim Taymans2010-09-141-8/+18
| | | | | | | Move the code to start the capture and the smoother closer together to improve smoother accuracy. Rework things to look more like the alsa sink where the device is started in only one place.
* alsa: Set the rewind safeguard proportionally to sample specColin Guthrie2010-09-041-2/+3
| | | | | | | | | | | | | Currently when rewinding alsa, a fixed value of 256 bytes is used, which represents 1.33ms @ 48kHz (2ch, 16bit). This is typically fine and due to DMA constraints we would not want to rewind less than this. However with more demanding sample specs, (e.g. 8ch 192kHz 32bit) 256 bytes is likely not sufficient, so calculate what 1.33ms would be and use which ever value is bigger. Discussed with David Henningsson and Pierre-Louis Bossart here: http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/7286
* alsa-sink: Get rid of a compiler warning regarding rewind_safeguard type.Tanu Kaskinen2010-09-041-2/+2
| | | | | GCC gave a warning, because the pointer given to pa_modargs_get_value_u32() had type size_t instead of uint32_t.
* add rewind-safeguard parameterPierre-Louis Bossart2010-09-042-5/+17
| | | | | | | | | | Rewinding the ring buffer completely causes audible issues with DMAs. Previous solution didn't work with tsched=0, and used tsched_watermark for guardband, which isn't linked to hardware and could become really high if underflows occurred. Added separate parameter that can be tuned to hardware limitations and size of DMA bursts.
* alsa: don't make use of tsched related variables when tsched is disabledLennart Poettering2010-09-042-22/+40
|
* alsa: increase the smoother windowWim Taymans2010-09-031-2/+2
| | | | | 40ms for the smoother window is too small. Increase the size to 4 seconds, like we do for the sinks.
* alsa: resume smoother after unsuspendWim Taymans2010-08-231-1/+1
| | | | | | The smoother is paused when the device is suspended but never resumed on unsuspend. Pass the paused = FALSE flag to the pa_smoother_reset() call to make it unpause when unsuspending. This patch improves source timings quite a bit.
* alsa: disable rewinds when using ALSA pluginsPierre-Louis Bossart2010-07-151-2/+12
| | | | | | | | | | This is required to when playing on a52: device, rewind is broken in those plugins. Credits to Michael Rans <mcarans@yahoo.co.uk> for finding this workaround, and Tanu Kaskinen <tanuk@iki.fi> for providing valuable feedback. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
* alsa: Fix assertion on mmap_write (triggered via a52 plugin)Colin Guthrie2010-07-151-0/+3
|
* thread: name all threads so that the names appear in /proc/$PID/task/$TID/commLennart Poettering2010-05-032-2/+2
|
* Handle 'Digital Mic' as an 'Input Source'Daniel T Chen2010-03-121-0/+4
| | | | | | | BugLink: https://launchpad.net/bugs/533877 Some laptops have 'Digital Mic' exposed as an 'Input Source', e.g., Dell XPS 1330, so handle these, too.
* alsa: reset max_rewind/max_request while suspendingLennart Poettering2010-02-221-1/+10
|
* alsa-util: strip spaces from ALSA card/pcm namesLennart Poettering2010-02-221-5/+7
| | | | http://pulseaudio.org/ticket/778
* alsa: use default output port namesLennart Poettering2010-02-165-3/+5
| | | | | instead of coming up with pointless aliases, reuse the already established names, for second headphones, and second speakers.
* alsa: cover "Internal Mic" elementsLennart Poettering2010-02-169-0/+98
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=562216
* alsa: cover 'Shared Mic/Line in', 'Analog Source'Lennart Poettering2010-02-151-0/+25
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=558638
* alsa: cover "Desktop Speaker" mixer elementsLennart Poettering2010-02-159-8/+131
| | | | As exposed by really old Microsoft USB sound systems
* alsa: add profile set for M-Audio FastTrack Pro USBDavid Kågedal2010-01-152-0/+86
|
* alsa: cover bass boost mixer elementLennart Poettering2010-01-142-0/+13
| | | | http://pulseaudio.org/ticket/740
* alsa: Cover the 'Int Mic Boost' element.Colin Guthrie2010-01-131-0/+9
| | | | | | | | | | This is not 100% ideal as we have not way to tie specific boosts to specific inputs and this particular chipset (as noted in #772) appears to support just that. For the time being incorporate it into the normal boost logic. See http://pulseaudio.org/ticket/772
* alsa: cover Input Source:Int MicColin Guthrie2010-01-131-0/+4
| | | | | As seen on some HDA chips (e.g. Fujitsu Siemens S6410) Refs http://pulseaudio.org/ticket/772
* alsa: ignore volume changes from the hw if we are not on the active consoleLennart Poettering2010-01-132-0/+6
|
* alsa: fix minor sampling rate deviations before adjusting the buffer sizeLennart Poettering2009-11-231-7/+9
|
* alsa: fix log output when the audio device refuses to give us again the same ↵Lennart Poettering2009-11-232-2/+2
| | | | period settings we had before
* alsa: disable timer-based scheduling inside a VMLennart Poettering2009-11-114-8/+28
| | | | | | | | | | | | | | | In virtual machines sound card clocks and OS scheduling tend to become unreliable, adding various 'uneven' latencies. The adaptive algorithm that handles drop-outs does not handle it this well: in contrast to drop-outs on real machines that are evenly distributed, small and can easily be encountered via the adpative algorithms, drop-outs in VMs tend to happen abruptly, and massively, which is not easy to counter. This patch simply disables timer based scheduling in VMs reverting to classic IO based scheduling. This should help make PA perform better in VMs. https://bugzilla.redhat.com/show_bug.cgi?id=532775
* alsa: introduce more standard path namesLennart Poettering2009-11-111-10/+14
|
* alsa: cover 'Analog Output' controlLennart Poettering2009-11-111-0/+17
| | | | http://pulseaudio.org/ticket/702
* alsa: create a seperate mixer path for Speaker elementsLennart Poettering2009-11-113-13/+106
| | | | | | | On some cards line-out is independant of Sepaker and it is a good idea to cover that so that they can independantly be activated. https://bugzilla.redhat.com/show_bug.cgi?id=520884
* alsa: leave other headphone control enabled if possibleLennart Poettering2009-11-115-4/+22
|
* alsa: lower priority for Headphone2 pathLennart Poettering2009-11-111-1/+1
|
* alsa: cover Input Source:AUX INLennart Poettering2009-11-111-0/+4
| | | | | | As seen on some HDA chips: https://bugzilla.redhat.com/attachment.cgi?id=359804
* alsa: cover Headphone2 mixer elementLennart Poettering2009-11-113-2/+85
| | | | | | As seen on some drivers: https://bugzilla.redhat.com/show_bug.cgi?id=498612
* alsa: cover 'Digital Input Source' elementLennart Poettering2009-11-111-0/+14
| | | | | | As used by some HDA devices: https://bugzilla.redhat.com/attachment.cgi?id=365290
* alsa: cover Mic Jack Mode elementLennart Poettering2009-11-111-1/+12
| | | | | | As used by some HDA chips: https://bugzilla.redhat.com/attachment.cgi?id=366816
* alsa: disable period event only with tsched=1Lennart Poettering2009-11-114-5/+6
|
* alsa: make build gcc clean on 32bitLennart Poettering2009-09-201-1/+1
|
* alsa: Give all ports a human name to allow UI tools to present the choice to ↵Colin Guthrie2009-09-181-3/+3
| | | | users.