Jaroslav Kysela
8aaccc9484
Implemented snd_pcm_sw_params_(set|get)_period_event for interrupt wakeup like behaviour
...
Actually, PCM timer is used as source for poll(). It might be optimized
in the kernel code later.
2008-05-09 16:02:02 +02:00
Jaroslav Kysela
c88672d86f
implemented snd_pcm_rewindable() and snd_pcm_forwardable(), removed can_rewind and can_forward
2008-04-21 12:46:50 +02:00
Jaroslav Kysela
058dde8b7d
implemented integer volume <-> dB volume conversion functions for simple mixer
2008-04-21 11:44:20 +02:00
Jaroslav Kysela
82af1df465
added snd_pcm_hw_params_is_monotonic/can_forward/can_rewind functions
2008-04-11 14:11:04 +02:00
Jaroslav Kysela
d4250517f0
PCM API - explain more trigger timestamp
2008-04-10 09:46:10 +02:00
Jaroslav Kysela
d555b15914
fix compilation in pcm/pcm_hw.c - monotonic clock
2008-04-10 09:08:08 +02:00
Stas Sergeev
542b12b888
pcsp: remove downsampling
...
apply softvol before plug as softvol doesn't support U8 as of now.
This also improves the sound quality.
Signed-off-by: Stas Sergeev <stsp@aknet.ru>
2008-03-22 17:40:57 +01:00
Takashi Iwai
87ae12214b
Use defaults.pcm.file_format for the default file format of file plugin
...
Use "defaults.pcm.file_format" for the default file format of
file plugin. It's set to "raw" as default for compatibility.
2008-03-17 16:11:57 +01:00
Takashi Iwai
fe95bc237a
Add the support of WAV format in PCM file plugin
...
Added the support of WAV format in PCM file plugin.
The infile is still only in raw format.
2008-03-17 16:02:56 +01:00
Takashi Iwai
5c5f135812
Use slave PCM as a timing-source for file ifile
...
When ifile option is used for the file plugin, it ignores the slave PCM
and just feeds the input data.
This patch changes the behavior a bit - it uses the slave PCM as the
timing source (just read and throw data away) so that the input data
can be read in the right sample rate.
2008-03-14 14:03:54 +01:00
Takashi Iwai
3d0dae9099
Add truncate option to PCM file plugin
...
Addeed a new option "truncate" to indicate the behavior of creating
the output file. When it's true (the default), the file is overwritten
and truncated at creation. When false, the plugin tries to open a
unique file with a number suffix.
The global behavior of "file" and "tee" PCMs is defined via
defaults.pcm.file_truncate option. You can overwrite it in ~/.asoundrc.
2008-03-12 16:30:26 +01:00
Takashi Iwai
fe8bb13400
dmix skipping first set of samples
...
There was a change in alsa-lib 1.0.16 which looks like it was designed to
make dmix skip samples in the case of underruns, but it causes the first
sample to be skipped since dmix->slave_hw_ptr == dmix->slave_appl_ptr.
The following patch fixes this and fixes a small typo in the comment.
From: Mike Gorse <mgorse@mgorse.dhs.org>
2008-03-10 12:02:26 +01:00
Pawel MOLL
d587383d6b
Fix for alsa-lib cross-compilation problems with ALSA_CONFIG_DIR and ALSA_PLUGIN_DIR
...
"./configure" options for selecting ALSA configuration (default
/usr/share/alsa) and plugin (/usr/lib/alsa-lib) directories introduced
by alsa-hg/alsa-lib changeset 2284 cause problems with cross-compilation
and packaging - there is no way to redefine them in runtime, during
installation phase.
This patch adds a level of indirection between constants and their
usage - alsaconfigdir for ALSA_CONFIG_DIR and alsaplugindir for
ALSA_PLUGIN_DIR - which can be redefined during "make install" stage.
Signed-off-by: Pawel MOLL <pawel.moll@st.com>
2008-03-07 17:18:16 +01:00
Takashi Iwai
df87a4be3d
Add PCM "hdmi"
...
Added the new PCM "hdmi" for HDA-Intel.
It's still experimental.
2008-03-07 17:15:10 +01:00
Takashi Iwai
363b7f8289
Don't show non-existing devices in snd_device_name_hint()
...
Suppress the non-existing devices in snd_device_name_hint().
2008-03-07 17:01:56 +01:00
Takashi Iwai
e58bd6762f
Fix device number assignment in hints
...
Handle the device number properly if given in hints.
The current code resets the device number to -1 wrongly.
2008-03-07 17:00:45 +01:00
Takashi Iwai
91726ddf83
Fix the build with old glibc
...
The old systems don't support CLOCK_MONOTONIC although clock_gettime() API
itself exists. This causes compile errors.
2008-03-07 14:35:25 +01:00
Takashi Iwai
6e0b0e7c6a
Fix the state in snd_pcm_ioplug_pause()
...
The states[] in snd_pcm_ioplug_pause() has wrong values. They should be
swapped. ALSA bug#3796:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3796
2008-02-25 15:11:46 +01:00
Aldrin Martoq
2cec6e2653
mark snd_seq_client_info_{get,set}_event_filter deprecated
...
Mark snd_seq_client_info_{get,set}_event_filter deprecated
Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
2008-02-22 17:51:05 +01:00
Aldrin Martoq
72ffc6db77
use snd_seq_client_info_event_filter_*() functions
...
Change snd_seq_set_client_event_filter to use the new
snd_seq_client_info_event_filter_* API
Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
2008-02-22 17:50:01 +01:00
Aldrin Martoq
75ecdac6f4
add snd_seq_client_info_event_filter_*() functions
...
Added snd_seq_client_info_event_filter_{clear,add,del,check} to alsa
sequencer API
Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
2008-02-22 17:46:50 +01:00
Aldrin Martoq
882f93ac26
add snd_seq_unset_bit()
...
Added snd_seq_unset_bit() to alsa sequencer API
Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
2008-02-22 17:42:56 +01:00
Takashi Iwai
0e5b2a006a
Fix snd_seq_change_bit()
...
snd_seq_change_bit() doesn't change but only set.
From: Aldrin Martoq <amartoq@dcc.uchile.cl>
2008-02-21 12:31:18 +01:00
Takashi Iwai
c622965472
Add surround71 definition to NFORCE.conf
...
Now the board with ALC850 can work with 8-channel outputs.
2008-02-18 12:25:02 +01:00
Takashi Iwai
b2f43ced1c
Fix wrong exported functions
...
The internal functions (as alias of 0.9.0rc4 variants) must be
exported but they were wrongly listed in Versions file.
Fixed the function names now.
2008-02-04 14:15:44 +01:00
Takashi Iwai
676913bcdb
Add the missing card alias for Prodigy71Hifi
...
See ALSA bug#3735
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3735
2008-02-01 12:00:39 +01:00
Takashi Iwai
c1d06bda17
Allow auto-config for dsnoop and dshare plugins
2008-01-23 12:26:22 +01:00
Takashi Iwai
d902c124b4
Remove obsolete instr directory
2008-01-23 08:06:11 +01:00
Takashi Iwai
1683a1b8bd
Fix a memory leak in PCM hook plugin
2008-01-18 14:43:56 +01:00
Takashi Iwai
35d4f9b8d7
dmix - Enable auto format detection as default
...
The direct plugins have the automatic format-detection feature but it
wasn't enabled properly in the interface. Now you can pass the format
"unchanged" to make the plugin detect a proper format.
This will change the default format of some drivers, such as, HD-audio.
2008-01-18 13:42:51 +01:00
Takashi Iwai
91fc64cefb
Implement missing htimestamp callbacks
...
Implemented the missing htimestamp callbacks for ioplug, rate and null
plugins.
2008-01-15 14:29:34 +01:00
Jaroslav Kysela
77849672cd
Allow pcm slave string references for direct plugins (bug#2893).
2008-01-15 14:07:19 +01:00
Takashi Iwai
6968ba94f3
Add missing remix_areas_* for x86-64
...
The remix_areas_* were missing the dmix x86-64 code. Added now.
2008-01-14 17:24:14 +01:00
Clemens Ladisch
50ce5d049e
fix memory leak in snd_config_update_r error path
...
Do not forget to free the memory for the file name when a file to be
read by snd_config_update_r() cannot be accessed.
2008-01-14 08:53:06 +01:00
Clemens Ladisch
fb3a4e8b70
pcm dmix plugin: fix generic direct remixing
...
In the case of the sum buffer being uninitialized, the source sample
must be negated not only when writing to the sum but also when writing
to the destination.
2008-01-14 08:52:16 +01:00
Clemens Ladisch
0e8a259914
check availability of CLOCK_MONOTONIC
...
Use monotonic timestamps only after checking that CLOCK_MONOTONIC is
actually supported by the C library.
2008-01-14 08:51:45 +01:00
Clemens Ladisch
07e1341548
pcm hw plugin: use TSTAMP only with old drivers
...
There is no need to call the TSTAMP ioctl with newer driver versions.
2008-01-14 08:50:46 +01:00
Clemens Ladisch
6f751a923d
pcm hw plugin: fix TTSTAMP version check
...
Fix the version check that determines the availability of the TTSTAMP
ioctl.
2008-01-14 08:50:18 +01:00
Clemens Ladisch
cf822aceef
pcm plug plugin: remove duplicated expression
...
Remove a needlessly duplicated expression.
2008-01-14 08:49:35 +01:00
Jaroslav Kysela
ab8331c882
Added possibility to disable also channel and format conversions + softvol.
...
Unified disable option using mode bits in snd_pcm_open().
2008-01-11 17:21:44 +01:00
Jaroslav Kysela
6814d23d29
SND_PCM_TSTAMP_MMAP -> SND_PCM_TSTAMP_ENABLE change
2008-01-11 08:54:07 +01:00
Jaroslav Kysela
70b11d614d
Implemented snd_pcm_rewind() for the dmix plugin
2008-01-10 10:01:14 +01:00
Takashi Iwai
8f16428f9c
Don't use deprecated functions inside
...
Use the new functions in snd_pcm_sw_params_dump().
2008-01-09 17:21:09 +01:00
Takashi Iwai
3e35983f95
Avoid (null) in printf
...
Show '[builtin]' when the library name is NULL in error messages.
2008-01-09 17:17:58 +01:00
Takashi Iwai
328824509f
Fix exported symbols for hooks and functions
...
The functions dynamically loaded via plugin aren't fully listed
in the exported functions in Versions file. This caused errors at
opening devices with such plugins.
2008-01-09 17:17:14 +01:00
Jaroslav Kysela
2c1318803f
Impemented snd_pcm_htimestamp() function.
2008-01-09 13:50:45 +01:00
Jaroslav Kysela
309a274454
Add support for monotonic timestamps
2008-01-09 11:13:34 +01:00
Clemens Ladisch
a73ad3f265
conf: show path of any missing configuration file
...
In all cases where a configuration file is not found, show an error
message with its full path.
2008-01-09 09:42:42 +01:00
Takashi Iwai
679cea4125
Remove sleep_min and tick
...
The sleep_min and tick are removed features from the kernel.
This patch cleans the corresponding part in alsa-lib.
2008-01-08 18:36:18 +01:00
Takashi Iwai
cf15e49d84
Remove PCM xfer_align
...
The PCM xfer_align is a removed feature from the kernel.
This patch cleans up the corresponding part in alsa-lib.
2008-01-08 18:35:29 +01:00