summaryrefslogtreecommitdiffstats
path: root/src/modules/alsa/alsa-util.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary #includesMaarten Bosmans2011-06-221-2/+0
|
* Fix up according to Coding StyleMaarten Bosmans2011-03-111-1/+1
| | | | Only whitespace changes in here
* alsa: disable period wakeups in tsched mode if possiblePierre-Louis Bossart2011-02-011-0/+28
| | | | | | | | | | | | | | | | | | | | | | | This patch reflects a new capability that Lennart was wishing for. Wish granted... Re-submitting it now that alsa-lib 1.0.24 provides additional entry points to disable period wakeups in timer-scheduling mode if hardware can work without it (HDAudio, oxygen and Intel SST). Example with standard playback on HDAudio output Before change: Top causes for wakeups: 3.8% ( 5.4) [hda_intel] <interrupt> 2.8% ( 4.0) alsa-sink After change: Top causes for wakeups: 2.3% ( 3.0) alsa-sink Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
* alsa: Sprinkle some PA_UNLIKELYs around error checksArun Raghavan2010-11-181-11/+10
| | | | | This just adds a few PA_UNLIKELY macros around some error paths in frequently called code.
* alsa: remove redundant call to snd_pcm_nonblock()Pierre-Louis Bossart2010-11-161-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: work around slightly broken _delay implementationsWim Taymans2010-09-091-3/+43
| | | | | | 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-util: strip spaces from ALSA card/pcm namesLennart Poettering2010-02-211-5/+7
| | | | http://pulseaudio.org/ticket/778
* alsa: fix minor sampling rate deviations before adjusting the buffer sizeLennart Poettering2009-11-201-7/+9
|
* alsa: disable timer-based scheduling inside a VMLennart Poettering2009-11-051-0/+24
| | | | | | | | | | | | | | | 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: disable period event only with tsched=1Lennart Poettering2009-10-061-2/+2
|
* alsa: make build gcc clean on 32bitLennart Poettering2009-09-201-1/+1
|
* alsa: properly convert sample buffer sizesLennart Poettering2009-09-111-3/+3
|
* alsa: disable tsched for software devices before we configure the buffer ↵Lennart Poettering2009-09-091-1/+4
| | | | metrics so that we don't accidently set a buffer size that is suitable for tsched where we don't use tsched
* alsa: rework buffer/period configurationLennart Poettering2009-09-091-84/+164
| | | | | | | | | | | | | - As discussed on alsa-devel it's probably better to initialize the buffer size first, followed by the period size. If that fails try the other way round. If that fails try to configure only buffer size. If that fails try to configure only period size. Finally, try to configure neither. - Don't require integral periods anymore. Both of these changes should help improving compatibility with various weirder sound devices, such as TV cards.
* llvm-clang-analyzer: drop a few unnecessary assignments and other trivial fixesLennart Poettering2009-09-081-1/+1
|
* alsa: revert to first set number of periods, then set buffer sizeLennart Poettering2009-07-311-26/+29
| | | | | | | Apparently some ALSA drivers aren't happy with getting the buffer size configured first followed the period size. So swap the order again and document this for future reference so that we don't turn that around again.
* alsa: unify alsa log handling and snd_config_update_free_global() handling ↵Lennart Poettering2009-06-181-3/+5
| | | | in one place
* alsa,core: include mapping name in description stringsLennart Poettering2009-06-181-9/+12
|
* alsa: allow placing device id in alsa device strings at arbitrary positionsLennart Poettering2009-06-171-5/+5
|
* alsa: rework mixer logicLennart Poettering2009-06-171-896/+140
| | | | | | | | | | | | Completely rework mixer logic. This now allows controlling a full set of elements from a single sink's volume slider/mute button. This also introduces sink and source "ports" that can be used to choose different input or output ports with the UI. (i.e. "mic"/"line-in" or "speaker"/"headphones". The mixer paths and device maps are now configered in external configuration files and can be tweaked as necessary.
* alsa: fix bad memory access for devices that lack a mixerLennart Poettering2009-06-101-1/+3
|
* alsa: be a bit more verbose when a hwparam call failsLennart Poettering2009-05-141-8/+37
|
* alsa: include mixer name in sink/source propertiesLennart Poettering2009-05-121-11/+46
|
* alsa: initialize buffer size before number of periods to improve compat with ↵Lennart Poettering2009-05-011-13/+20
| | | | some backends
* alsa: allow configuration of fallback device strings in profilesLennart Poettering2009-04-291-37/+89
| | | | | | This has the benefit that we can properly support ALSA devices where only the raw 'hw' device exists but no 'front' although it's a proper 2ch stereo device.
* alsa: remove debug codeLennart Poettering2009-04-191-2/+0
|
* alsa: properly convert return values of snd_strerror() to utf8Lennart Poettering2009-04-191-26/+57
|
* alsa: include the alsa mixer control that is used in the property listLennart Poettering2009-04-131-1/+4
|
* alsa: store mixer controls to use in profile dataLennart Poettering2009-04-131-13/+40
| | | | | This allows us to easily use different mixer controls for analog and spdif output.
* alsa: when passing emptry mixer control name, force sw volumeLennart Poettering2009-04-131-0/+5
|
* alsa: when printing warning about bogus data from alsa include snd_pcm_dump()Lennart Poettering2009-04-101-3/+6
|
* refuse to initialize on modem devicesLennart Poettering2009-04-041-0/+12
|
* various spelling fixesMaarten Bosmans2009-04-041-1/+1
|
* downgrade a few messagesLennart Poettering2009-04-031-1/+1
|
* Specifying ALSA mixer controlKyle Cronan2009-03-311-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | On Fri, Mar 27, 2009 at 7:21 AM, Lennart Poettering <lennart@poettering.net> wrote: >> I tried installing the latest git sources on my Ubuntu Jaunty box but >> it just broke sound in all my applications.  For my own purposes, I'm >> going to need to start with the Ubuntu-patched 0.9.14.  However, if >> you are willing to accept this patch I will forward port it so that it >> applies to the latest sources.  It's a completely harmless change, so >> why not apply it? > > Yes, I am happy to apply it. Could you please update it for current git? > Great. An updated patch is attached. For symmetry, I added this option to the alsa source module as well. The Ubuntu folks have customized pulse so much that it is difficult for me to get this version working on my system. For this patch I have only made sure that it compiles. But it does pretty much the same thing as the one for 0.9.14, which is working great for me. Thanks, Kyle
* don't enabled tsched on software ALSA devicesLennart Poettering2009-03-301-1/+14
|
* fix channel mapping for a52 devices. Closes #508Lennart Poettering2009-03-201-3/+3
|
* Use LGPL 2.1 on all files previously using LGPL 2Colin Guthrie2009-03-031-1/+1
|
* add logic for initializing a useful icon nameLennart Poettering2009-03-011-16/+7
|
* get additional device data from udevLennart Poettering2009-03-011-11/+40
|
* don't put both the card and the pcm name in the description of a device if ↵Lennart Poettering2009-02-241-3/+3
| | | | one contains the other
* implement device reservation schemeLennart Poettering2009-02-241-0/+21
|
* if ALSA gives us nonsensical data at least try to fix it up a littleLennart Poettering2009-02-241-4/+15
|
* print driver name when we encounter driver bugsLennart Poettering2009-02-231-6/+14
|
* add new wrapper pa_alsa_safe_delay() around snd_pcm_delay()Lennart Poettering2009-02-231-0/+37
|
* add new function pa_alsa_get_driver_name_by_pcm()Lennart Poettering2009-02-231-0/+15
|
* initialize selem indexLennart Poettering2009-02-221-1/+2
|
* print warnings about driver bugs at most onceLennart Poettering2009-02-211-6/+12
|
* Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudioLennart Poettering2009-02-201-4/+8
|\
| * alsa-util: check if mixer_poll_descriptors_count() < 0Marc-André Lureau2009-02-191-2/+6
| |