Commit graph

1863 commits

Author SHA1 Message Date
Takashi Iwai
cac370de25 Fix segfault
Fix segfault (occuring when buffer/period sizes are aligned).
2005-04-19 16:11:26 +00:00
Takashi Iwai
9a0f2817bb Fix timer read in non-TREAD mode
Fix timer read in non-TREAD mode.  (the struct is different.)
2005-04-15 09:22:48 +00:00
Takashi Iwai
c5fc9e7cf7 Add external PCM plugin
Added the section for external PCM plugin.
2005-04-14 15:29:57 +00:00
Takashi Iwai
bdabcb9679 Check timer protocol number for direct plugins
Check timer protocol number before enabling TREAD mode for direct plugins.
2005-04-14 15:29:06 +00:00
Takashi Iwai
ca67f32848 Increase timer protocol number
Increase the timer protocl number (to distinguish the fix for TREAD ioctls).
2005-04-14 15:28:23 +00:00
Takashi Iwai
c9fbe951a9 Suppress verbose debug messages
Suppress verbose debug messages in hw_params_set[min|max|minmax] errors.
2005-04-14 15:27:47 +00:00
Takashi Iwai
21e676e383 Add PMac Toonie configuration
Added PMac Toonie configuration.  Using softvol for default.
2005-04-14 14:30:02 +00:00
Takashi Iwai
b579a024db Add verbose hw_params debugging
Added the verbose hw_params dump for debugging.
The verbose error message is shown with the current hw_params dump
when $LIBASOUND_DEBUG is set.
2005-04-14 14:22:13 +00:00
Takashi Iwai
0aed1ab2af Remove invalid ATTRIBUTE_UNUSED
Remove the invalid use of ATTRIBUTE_UNUSED.
2005-04-14 14:21:10 +00:00
Takashi Iwai
91f7dd2378 Move old PCM API to pcm_old.h
Clean up -- move old 0.9.x PCM API to pcm_old.h.
2005-04-14 14:01:10 +00:00
Takashi Iwai
54ec88bafb Use 'Channel Mode' control
Use 'Channel Mode' control to set the 4/6 channel mode in the config hooks.
2005-04-13 13:35:58 +00:00
Jaroslav Kysela
f65d9f3108 Added snd_pcm_hw_params_set_rate_resample function
- snd_pcm_hw_params_set_rate_resample()
- snd_pcm_hw_params_get_rate_resample()
2005-04-12 12:09:55 +00:00
Takashi Iwai
72ad0e9ae7 Fix more CPU hang-up bugs in dmix
- Fix CPU hang-up during snd_pcm_drain()
  A new internal function snd_pcm_wait_nocheck() to force to call poll().

- Clean up, fix status() callback of dmix
2005-04-11 10:03:28 +00:00
Takashi Iwai
c915659538 Fix compile warning
Fix compile warning (forgot return 0).
2005-04-06 13:08:28 +00:00
Takashi Iwai
999609f7e0 Compile warning fixes
Trivial compile warning fixes.
2005-04-05 15:53:24 +00:00
Takashi Iwai
aa89f27de4 More fixes for 100% CPU hang with dmix
More fixes for 100% CPU hang-up problem with dmix.

- Clear timer queues properly when XRUN happens.
- Don't check XRUN when the stream isn't really running.
- Do hwsync properly for the delayed start state.
2005-04-05 15:50:15 +00:00
Takashi Iwai
e5b91844bf Fix channel_info callbacks of hooks, file and plug plugins
Fixed channel_info callbacks of hooks, file and plug plugins (BTS #1034).
snd_pcm_generic_channel_info_slave() is added.
2005-04-05 15:48:01 +00:00
Takashi Iwai
38f4e69b0c Remove Azalia.conf
Removed Azalia.conf, using alias to HDA-Intel instead.
2005-04-05 15:21:22 +00:00
James Courtier-Dutton
ef42a53dda Update user land emu10k1.h with changes from kernel emu10k1.h 2005-04-02 14:21:59 +00:00
Takashi Iwai
1889920a43 Fix segfault with downsampling
Fix segfault in the initialization for downsampling.
2005-03-31 15:24:40 +00:00
Takashi Iwai
a0a440dcf4 Stop timer at XRUN
Stop PCM timer at XRUN.
2005-03-31 15:23:20 +00:00
Takashi Iwai
586c8872a9 Use dmix/dsnoop as default
Use dmix/dsnoop plugins as default for emu10k1x.
2005-03-29 17:42:40 +00:00
Takashi Iwai
06044933cc Use S16 for default format
Use S16 (endian-dependent) for the default PCM format of dmix/dnsoop
configurations.
2005-03-29 16:35:28 +00:00
Takashi Iwai
5c91ee386d Check PCM format aliases
Check PCM format alias strings (e.g. "S16") as acceptable PCM formats.
2005-03-29 16:34:31 +00:00
Takashi Iwai
9207804912 Generic architecture support
Support dmix on generic architectures without atomic operations but
using a semaphore to avoid concurrent accesses.  This is less effective
than atomic operations but should work on every system.
2005-03-29 14:13:04 +00:00
Takashi Iwai
6a6a70ffe7 Do hwsync of slave PCM on dmix
Call hwsync of slave PCM on snd_pcm_hwsync() over dmix.
This reduces ocasional output noises, typically seen in xmms and bmp with
multi-threading on SMP/HT systems.

Disabled slowptr of default dmix definition again.
2005-03-29 14:10:16 +00:00
Takashi Iwai
5e325ea18b Delayed start for dmix
Introducing a private state for the delayed start of PCM stream.
This problem occurs when the rate plugin doesn't feed the data
properly before triggering START.  This results in weird problems,
e.g. an inifinte loop of artsd eating 100% CPU time.

To solve this problem, the state is marked as "pending" when no
data appears at the trigger, and the stream is started later at
the mmap commit.
2005-03-29 14:06:00 +00:00
Takashi Iwai
c5c9b2c8bb Fix noises on exapnd
Fixes noise on rate expansion (bug #1018).
2005-03-29 13:52:41 +00:00
Jaroslav Kysela
1ac50201b0 latency test - Added -B and -E options 2005-03-25 08:53:48 +00:00
Takashi Iwai
e64cab565e Fix noises in rate exapnsion
Fixed noises in rate exapnsion.
2005-03-24 20:28:56 +00:00
Takashi Iwai
7acb52ed84 Evaluate CARD argument
Evaluate $CARD argument properly even when no card-specific default
PCM is given.
2005-03-24 17:19:05 +00:00
Takashi Iwai
ad0b348227 Fix compile with gcc-4.0
Fixed compilation with gcc-4.0.
2005-03-24 17:18:01 +00:00
Takashi Iwai
e87851b96f Enable slowptr option as default
Enabled slowptr option as default.
This seems to eliminate the occasional noises on SMP/HT systems (maybe
some race or cache mismatch).
2005-03-24 11:59:18 +00:00
James Courtier-Dutton
e67db18455 Fixes AC3 output on Audigy2 sound cards
This patch adds a DSP patch to fix an spdif_bug on some Audigy2 cards.
It also does detailed identification of the capabilities of the sound
card so that the patch is only applied to the sound cards that really
need it.

Signed-off-by: James Courtier-Dutton
2005-03-24 11:24:31 +00:00
Jaroslav Kysela
173823a4f3 release: 1.0.9rc2 2005-03-24 09:49:44 +00:00
Takashi Iwai
248d0b285c Fix compilation with gcc-4.0
Fixed compilation with gcc-4.0
2005-03-22 18:49:07 +00:00
James Courtier-Dutton
d36e8f20d4 Fix AC3 output on alsa-lib ca0106.conf
This fixes AC3 SPDIF output. It now correctly turns SPDIF OUT on when
using the iec958 device.

Signed-off-by: James Courtier-Dutton
2005-03-21 19:55:16 +00:00
Clemens Ladisch
2570bfc7ad add HPET support
add a wrapper for the HPET driver
2005-03-21 08:17:26 +00:00
Takashi Iwai
231d55e537 Fix a typo
Fix a typo of sostenuto.
The old definition is kept for compatibility.
2005-03-17 16:14:17 +00:00
Takashi Iwai
b0b8957c00 Fix the device-open check
Fixed the device-open check with --disable-aload.
2005-03-16 13:25:25 +00:00
Takashi Iwai
0434c183e3 Added asound_fm.h
Added asound_fm.h to be used from specific apps.
2005-03-16 11:41:02 +00:00
Takashi Iwai
dab2b58e0e Fix resume of dmix, dsnoop and dshare plugins
Fix the resume of dmix, dsnoop and dshare plugins.

[This replaces the timer mode with TREAD mode, and may trigger Oops
 with the older kernel...]
2005-03-15 11:39:51 +00:00
Jaroslav Kysela
4e992e3424 release: 1.0.9rc1 2005-03-13 09:31:24 +00:00
Jaroslav Kysela
b088e1294b Fix rear/center_lfe subdevice mismatch 2005-03-10 20:03:02 +00:00
Clemens Ladisch
e3f57ccc90 rawmidi_virt: fix hang on invalid MIDI data
When writing invalid MIDI data to a virtual rawmidi port,
snd_rawmidi_virtual_write() would forget to remove that data
from the input buffer before continuing, resulting in an
infinite loop.
2005-03-10 10:45:19 +00:00
Takashi Iwai
8003e03b50 Small code clean up
Small code clean up for readability.
2005-03-09 12:00:37 +00:00
Takashi Iwai
9dd4436f29 Fix invalid free
Fixed the invalid free of memory.
2005-03-09 11:59:37 +00:00
Takashi Iwai
73008debc3 Add snd_pcm_parse_control_id()
Added a new function snd_pcm_parse_control_id() for the user controls.
This can be used in external plugins, too.
2005-03-09 11:57:54 +00:00
Takashi Iwai
227441b2c8 More doxygen comments
Added more doxygen comments in pcm_extplug and pcm_ioplug codes.
2005-03-09 11:54:58 +00:00
Jaroslav Kysela
4a34ac6acd Added snd_seq_ev_set_tag() macro 2005-03-03 11:13:00 +00:00