Commit graph

2335 commits

Author SHA1 Message Date
Takashi Iwai
d5caee8d36 Fix bogus value when no user TLV is defined
Check whether non-zero size TLV is really returned by comparing
with the pre-filled pattern.  ALSA 1.0.12 driver doesn't notify
the error even if user TLV is empty, so the previous value is
passed bogusly.
2006-08-25 11:43:22 +02:00
Jaroslav Kysela
042df4e80a release v1.0.12 #2 2006-08-23 20:39:47 +02:00
Takashi Iwai
66f3749cab Fix segfault when invalid TLV is passed
Fix segfault when invalid TLV is passed.
The invalid TLV entries must be ignored as error.
2006-08-23 15:44:09 +02:00
Takashi Iwai
4165a5bfd1 Fix dB ops for global volume
Fixed dB ops for global volume.
2006-08-23 15:25:43 +02:00
Jaroslav Kysela
7bed21e5a1 Added tag v1.0.12 for changeset cc4d79200add09a38f7b74e6748a558cb1532a7e 2006-08-22 14:40:42 +02:00
Jaroslav Kysela
94572ff3a8 release 1.0.12
Patch-level: Merged
2006-08-22 14:40:42 +02:00
Tobin Davis
da076c868c Fix build issue on earler x86_64 based distributions
This patch fixes a build issue on systems with Gnu assembler
prior to 2.15.92.  Instead of having the inline assembler
translate the leal function on a 32 bit register, it is byte encoded.

Signed-off-by: Tobin Davis <tobinx.b.davis@intel.com>
2006-08-21 19:12:33 +02:00
James Courtier-Dutton
15d9a28b5b Fix default paths. 2006-08-13 22:48:34 +01:00
Jaroslav Kysela
b826a3dae4 Added tag v1.0.12rc2 for changeset 41bc403d142e64ebe6fbbf783c8b8fb936b5fafe 2006-08-04 14:28:12 +02:00
Jaroslav Kysela
8d708c7d61 release 1.0.12rc2
Patch-level: Merged
2006-08-04 14:28:12 +02:00
Takashi Iwai
ae76129999 Move dB parser to mixer abstraction
Moved the parser of dB value to mixer abstraction from hcontrol layer.
Also, cleaned up codes.
2006-07-28 14:36:37 +02:00
James Courtier-Dutton
8f7152b633 Fix default install libpath and datapath. 2006-07-28 10:05:34 +01:00
Jaroslav Kysela
c4a5efeba3 mixer - cleanups for dB scale parsing 2006-07-27 10:45:25 +02:00
Takashi Iwai
a98fd022fa Remove dependencies with kernel headers from instrument layer codes
Don't include kernel headers from alsa-lib codes.
Still remained in instrument layer codes, but now all should be gone.
2006-07-25 15:36:14 +02:00
Takashi Iwai
982786e9eb Fix bogus pause flag on dmix
Fix bogus PCM pause flag on dmix.  It doesn't support pause properly.
2006-07-25 15:36:13 +02:00
James Courtier-Dutton
5e3fc87888 Implement support for dB gain display in alsamixer. 2006-07-22 14:56:48 +01:00
Jaroslav Kysela
91273c228f Fix examples for PCM API. Fix dogygen warnings. 2006-07-11 21:48:51 +02:00
Jaroslav Kysela
c7a0708a23 Control API - add TLV support
snd_ctl_elem_tlv_read
snd_ctl_elem_tlv_write
snd_ctl_elem_tlv_command
snd_ctl_elem_info_is_tlv_readable
snd_ctl_elem_info_is_tlv_writable
snd_ctl_elem_info_is_tlv_commandable
snd_hctl_elem_tlv_read
snd_hctl_elem_tlv_write
snd_hctl_elem_tlv_command
2006-07-05 17:42:16 +02:00
Takashi Iwai
408697bfe2 Add config for new snd-aoa driver
Add a new config for new snd-aoa driver, aliased to PMacToonie.
2006-06-30 11:34:30 +02:00
Takashi Iwai
67ff9b7bf0 Fixed driver alias of Aureon 7.1 Universe
Fixed driver alias of Aureon 7.1 Universe.  Aureon71Universe was too long
as the driver name.  The corrected name is Aureon71Univ.
2006-06-29 16:43:56 +02:00
Takashi Iwai
f725af9987 Fix segfault with bindings parameters of dmix/dshare
Fix segfault with bindings parameters of dmix/dshare (bug#2235).
2006-06-27 12:08:38 +02:00
Takashi Iwai
bbbb06bc8f Turn on iec958 capture of iec1724 boards with spdif PCM
Automatically turn on iec958 capture of iec1724 boards
with spdif PCM via hooks plugin.
2006-06-23 14:42:59 +02:00
Jaroslav Kysela
f042aab013 Added tag v1.0.12rc1 for changeset e91448ebc6bd17085fd8fd3a6d977be4df65a76f 2006-06-21 15:50:41 +02:00
Jaroslav Kysela
04b9161ede release 1.0.12rc1
Patch-level: Merged
2006-06-21 15:50:41 +02:00
Takashi Iwai
da17b50892 Add default dmix rate and format definitions in alsa.conf
Added defaults.pcm.dmix_format and dmix_rate definitions to
alsa.conf.  They are referred as the default values of standard
dmix/dsnoop PCM.
2006-06-16 19:27:35 +02:00
Takashi Iwai
9984a0a4b4 Fix division-by-zero in snd_pcm_dump_hw_setup()
Fixed division-by-zero error in snd_pcm_dump_hw_setup().
2006-06-16 18:53:32 +02:00
Takashi Iwai
b3c3e355d9 Initialize all fields of slave PCM instance of direct plugins
Initialize all fields of slave PCM instance of direct plugins.
Some fields were not initialized properly.
2006-06-16 18:52:12 +02:00
Pierre Ossman
2a7f35347b Make snd_hctl_wait() respect the API
snd_hctl_wait() currently makes a lot of assumptions that fall outside
the defined API. snd_pcm_wait(), however, follows the API nicely so the
new version is based on that.

Signed-off-by: Pierre Ossman <ossman@cendio.se>
2006-05-26 17:27:00 +02:00
Pierre Ossman
3fd9369990 Allow ioplugins to override snd_pcm_delay()
Some io plug-ins might want to adjust the reported delay value and not
strictly follow the current buffer usage (that's why we have two calls
after all).

Allow them to specify a delay() callback and use the previous behaviour
if they don't.

Signed-off-by: Pierre Ossman <ossman@cendio.se>
2006-05-26 17:08:18 +02:00
Juan Carlos Castro y Castro
1d80c5b901 Addition of "infile" parameter (virtual mic) to the file plugin
When this new parameter is specified, the behavior of opening a file PCM
for input is changed to the following: reads from the device, instead of
being passed down to the slave PCM, will read the raw data from the
specified file. No file writes will take place in this case. In the
absence of this parameter, previous behavior is unchanged.

The input file name and descriptor are kept in the snd_pcm_file_t struct
in a manner analogous to the already existing output file parameter.

TODO:

(1) Only interleaved reads (snd_pcm_file_readi) have been implemented
for now.

(2) File read()'s that return a number of bytes that's not a multiple of
the frame size will result in data loss (choppiness). The rbuf,
rbuf_size_bytes, and rbuf_used_bytes members of the snd_pcm_file_t
struct will be used to address this problem in the future.

(3) Mind whether the PCM was opened in blocking mode. If so, we'll have
to loop until the buffer has been filled with read()'s.

Signed-off-by: Juan Carlos Castro y Castro <jcastro@vialink.com.br>
2006-05-19 18:26:41 +02:00
Takashi Iwai
daed233936 Fix surround40 config for ens1370
Fixed surround40 config for ens1370.  Added missing interface for
the hook control.
2006-05-18 11:26:00 +02:00
Takashi Iwai
8a347e4267 Add hgcompile script and fix INSTALL document
Added hgcompile script (just a copy of cvscompile), and
fixed INSTALL document about HG.
2006-05-12 15:33:44 +02:00
Takashi Iwai
ffebf01d61 Correction for fixing alsa-lib static build
Added the missing _snd_module_pcm_* definitions for static alsa-lib.

From: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
2006-05-12 14:43:26 +02:00
Takashi Iwai
308f52e65a Fix a typo in pcm_file.c
Fix a typo in snd_pcm_file_readn().
2006-05-12 12:09:33 +02:00
Takashi Iwai
06e3df0549 Remove enum from kernel API
Remove enum in structs from kernel API headers.
The enum is not always equivalent with int on some architectures.

From: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
2006-05-10 16:27:14 +02:00
Takashi Iwai
f9e0c56c46 Fix hwptr update in rate plugin
Fixed the update of hwptr in rate plugin.
This caused bad sounds on rate expansion and invalid memory access.
2006-05-03 19:18:28 +02:00
Takashi Iwai
ae363f57be Fix the description of return value of snd_config_search_definition()
Fixed the description of the return value of snd_config_search_definition().
2006-05-02 17:48:47 +02:00
Clemens Ladisch
123e2b7780 clarify SND_SEQ_PORT_TYPE_xxx documentation
Clarify the documentation for the SND_SEQ_PORT_TYPE_xxx flags, especially
for _SYNTH and *_SAMPLE where it was rather misleading.
2006-05-02 16:28:22 +02:00
Clemens Ladisch
c3ac7bdf87 add more sequencer port type information bits
Add four new information flags SNDRV_SEQ_PORT_TYPE_HARDWARE, _SOFTWARE,
_SYNTHESIZER, _PORT for sequencer ports.  This makes it easier for apps
like Rosegarden to make policy decisions based on the port type.
2006-05-02 16:08:36 +02:00
Takashi Iwai
c445fddab6 Fix device number of ICH4 iec958 controls
Fix device number of control emenets in ICH4 iec958 PCM hooks.
2006-05-02 14:30:33 +02:00
Takashi Iwai
eafb7ae5d8 Use O_APPEND mode with dmix & co plugins
Use O_APPEND mode (only if available) with dmix, dsnoop and dshare
plugins.  Using this mode, the plugin requires no resource server
any more.
2006-04-28 15:55:32 +02:00
Takashi Iwai
194ff97ea6 Fix delayed start with rate plugin
Add the internal start_pending state in the rate plugin for supporting
delayed start in the case no data is committed to slave PCM.

This fixes the problem of CPU hog with artsd.
2006-04-27 15:46:30 +02:00
Takashi Iwai
6ff727bb7f Add check of binding ranges in direct plugins
Add checks of slave channel numbers in bindings of dmix/dsnoop/dshare
plugins to avoid segfault.
Also, fix a possible memory leaks in the error path.
2006-04-26 18:30:44 +02:00
Takashi Iwai
4632e0f637 Fix segfault with dshare plugin
Fixed the segfault with dshare plugin at the second open.
2006-04-25 18:53:17 +02:00
Takashi Iwai
fc7bd60f0d Add missing snd_dlclose() in pcm_meter.c
Added the missing snd_dlclose() in snd_pcm_meter_close().
2006-04-25 17:32:48 +02:00
Takashi Iwai
9123203f8d Fix the error path of snd_pcm_hook_add_conf()
Fixed the segfault in the error path of snd_pcm_hook_add_conf()
(calling invalid install_func pointer).
Also, added the missing snd_dlclose() to release the handle properly.
2006-04-25 17:32:23 +02:00
Takashi Iwai
9c69158f31 Fix missing snd_dlclose() in sequencer
Call snd_dlclose() with the dlopen handle in snd_seq_close().
2006-04-25 17:27:26 +02:00
Takashi Iwai
b9c53dd962 Fix missing snd_dlclose() in timer handlers
Call snd_dlclose() properly for the dlopened handlers in timer
and timer_query closing functions.
2006-04-25 17:26:16 +02:00
Takashi Iwai
34e99ad251 Add missing snd_dlclose() in snd_hwdep_close()
Added the missing snd_dlclose() in snd_hwdep_close().
2006-04-25 17:24:39 +02:00
Jaroslav Kysela
2875f1169f Added tag v1.0.11 for changeset ae6753322b638dc95de4ab900d21e8eff14f5952 2006-04-19 12:29:47 +02:00