* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-01-31 9:49 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-01-31 9:49 UTC (permalink / raw)
To: alsa-devel
The following issue has been UPDATED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: new
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 01-31-2006 10:49 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
----------------------------------------------------------------------
Raymond - 01-28-06 07:58
----------------------------------------------------------------------
define RULES_DEBUG in /core/pcm_native.c
alsa-lib/test/pcm_min
vortex_pcm_open substream->stream=0
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
TS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfee30]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 2 -> 2
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 8] -> [8 8]
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfee30]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 2 -> 2
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 8] -> [8 8]
BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [6 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [750 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [750 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [24000 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 85334) -> [15625 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 1365334) -> [500000 1365334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [750 4096] -> [1024 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [24000 65536] -> [24000 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 32] -> [6 32]
Rule 11 [e1cfef90]: PERIOD_SIZE = [750 4096] -> [1024 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 14 [e1cfef90]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1024 4096] -> [1024 4096]
Rule 18 [e1cfef90]: PERIOD_TIME = [15625 85334) -> (21333 85334)
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 32] -> [6 32]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfee30]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 2 -> 2
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 8] -> [8 8]
PERIOD_TIME = (21333 85334) -> (21333 85334)
PERIOD_SIZE = [1024 4096] -> [1024 4096]
BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [6 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1024 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [24000 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (21333 85334) -> (21333 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 1365334) -> [500000 1365334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [1024 4096] -> [1024 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [24000 65536] -> [24000 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 32] -> [6 23]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 4096] -> [1044 4000]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1024 4096] -> [1044 4000]
Rule 17 [e1cfef10]: BUFFER_BYTES = [24000 65536] -> [24000 24000]
Rule 18 [e1cfef90]: PERIOD_TIME = (21333 85334) -> [21750 83334)
Rule 19 [e1cfef90]: BUFFER_TIME = [500000 1365334) -> [500000 500000]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1044 4000] -> [2048 2048]
Rule 21 [e1cff230]: BUFFER_BYTES = [24000 24000] -> [24000 24000]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 23] -> [6 22]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1044 4000] -> [1091 4000]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1091 4000] -> [2048 2048]
Rule 12 [e1cfef10]: PERIOD_SIZE = [2048 2048] -> [2048 2048]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 14 [e1cfef90]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 15 [e1cfef10]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 16 [e1cfef10]: PERIOD_BYTES = [2048 2048] -> [2048 2048]
Rule 18 [e1cfef90]: PERIOD_TIME = [21750 83334) -> (42666 42667)
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 22] -> empty
vortex_pcm_hw_free substream->stream=0
vortex_pcm_close substream->stream=0
----------------------------------------------------------------------
Raymond - 01-31-06 08:31
----------------------------------------------------------------------
Why do Rule 9 [e1cfeea0]: PERIODS = [6 22] -> empty ?
----------------------------------------------------------------------
Raymond - 01-31-06 09:48
----------------------------------------------------------------------
It seem that au88x0 is the only driver which use
snd_pcm_hw_constraint_pow2()
/* Force equal size periods */
if ((err =
snd_pcm_hw_constraint_integer(runtime,
SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
return err;
/* Avoid PAGE_SIZE boundary to fall inside of a period. */
if ((err =
snd_pcm_hw_constraint_pow2(runtime, 0,
SNDRV_PCM_HW_PARAM_PERIOD_BYTES)) < 0)
return err;
----------------------------------------------------------------------
perex - 01-31-06 10:19
----------------------------------------------------------------------
Yes and no. It's combination pow2 and periods == integer issue. If the
buffer size is 24000 and period size is 2048, then 24000 / 2048 = 11.7188
which is not integer value and then configuration fails.
In this case depends on the parameter order. Or a better fix maybe to
describe that buffer_size must be N * period_size with pow2 restriction
(create a list with all combinations).
I've tried to add a workaround to snd_pcm_set_params() to CVS, but it does
not prevent other apps using the hw_params ALSA API directly to fail.
----------------------------------------------------------------------
perex - 01-31-06 10:26
----------------------------------------------------------------------
To be sure: I'm talking about SNDRV_PCM_HW_PARAM_BUFFER_BYTES restriction.
See pci/emu10k1/emupcm.c code how you can use the
snd_pcm_hw_constraint_list() for this parameter.
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-01-31 10:06 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-01-31 10:06 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: new
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 01-31-2006 11:06 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
----------------------------------------------------------------------
perex - 01-31-06 10:26
----------------------------------------------------------------------
To be sure: I'm talking about SNDRV_PCM_HW_PARAM_BUFFER_BYTES restriction.
See pci/emu10k1/emupcm.c code how you can use the
snd_pcm_hw_constraint_list() for this parameter.
----------------------------------------------------------------------
Raymond - 01-31-06 11:06
----------------------------------------------------------------------
There are a number of bugs in snd_vortex_playback_hw_adb
1) capture channels is 2
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766
2) Turtle Beach Montego II (au8830) has stereo codec STAC9721, rear
channels seem to use I2S on the daugther card, other au8830 have quad
codec.
3) SQ1500 (au8810) SuperQuad , other au8810 have stereo codec
/* hardware definition */
static struct snd_pcm_hardware snd_vortex_playback_hw_adb = {
.info =
(SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID),
.formats =
SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U8 |
SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW,
.rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 5000,
.rate_max = 48000,
.channels_min = 1,
#ifdef CHIP_AU8830
.channels_max = 4,
#else
.channels_max = 2,
#endif
.buffer_bytes_max = 0x10000,
.period_bytes_min = 0x1,
.period_bytes_max = 0x1000,
.periods_min = 2,
.periods_max = 32,
};
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-01-31 12:48 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-01-31 12:48 UTC (permalink / raw)
To: alsa-devel
The following issue has been ASSIGNED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 01-31-2006 13:48 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
----------------------------------------------------------------------
Raymond - 01-28-06 07:58
----------------------------------------------------------------------
define RULES_DEBUG in /core/pcm_native.c
alsa-lib/test/pcm_min
vortex_pcm_open substream->stream=0
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
TS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfee30]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 2 -> 2
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 8] -> [8 8]
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfee30]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 2 -> 2
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 8] -> [8 8]
BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [6 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [750 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [750 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [24000 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 85334) -> [15625 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 1365334) -> [500000 1365334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [750 4096] -> [1024 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [24000 65536] -> [24000 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 32] -> [6 32]
Rule 11 [e1cfef90]: PERIOD_SIZE = [750 4096] -> [1024 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 14 [e1cfef90]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1024 4096] -> [1024 4096]
Rule 18 [e1cfef90]: PERIOD_TIME = [15625 85334) -> (21333 85334)
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 32] -> [6 32]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfee30]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 2 -> 2
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 8] -> [8 8]
PERIOD_TIME = (21333 85334) -> (21333 85334)
PERIOD_SIZE = [1024 4096] -> [1024 4096]
BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [6 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1024 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [24000 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (21333 85334) -> (21333 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 1365334) -> [500000 1365334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [1024 4096] -> [1024 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [24000 65536] -> [24000 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 32] -> [6 23]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 4096] -> [1044 4000]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1024 4096] -> [1044 4000]
Rule 17 [e1cfef10]: BUFFER_BYTES = [24000 65536] -> [24000 24000]
Rule 18 [e1cfef90]: PERIOD_TIME = (21333 85334) -> [21750 83334)
Rule 19 [e1cfef90]: BUFFER_TIME = [500000 1365334) -> [500000 500000]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1044 4000] -> [2048 2048]
Rule 21 [e1cff230]: BUFFER_BYTES = [24000 24000] -> [24000 24000]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 23] -> [6 22]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1044 4000] -> [1091 4000]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1091 4000] -> [2048 2048]
Rule 12 [e1cfef10]: PERIOD_SIZE = [2048 2048] -> [2048 2048]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 14 [e1cfef90]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 15 [e1cfef10]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 16 [e1cfef10]: PERIOD_BYTES = [2048 2048] -> [2048 2048]
Rule 18 [e1cfef90]: PERIOD_TIME = [21750 83334) -> (42666 42667)
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 22] -> empty
vortex_pcm_hw_free substream->stream=0
vortex_pcm_close substream->stream=0
----------------------------------------------------------------------
Raymond - 01-31-06 08:31
----------------------------------------------------------------------
Why do Rule 9 [e1cfeea0]: PERIODS = [6 22] -> empty ?
----------------------------------------------------------------------
Raymond - 01-31-06 09:48
----------------------------------------------------------------------
It seem that au88x0 is the only driver which use
snd_pcm_hw_constraint_pow2()
/* Force equal size periods */
if ((err =
snd_pcm_hw_constraint_integer(runtime,
SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
return err;
/* Avoid PAGE_SIZE boundary to fall inside of a period. */
if ((err =
snd_pcm_hw_constraint_pow2(runtime, 0,
SNDRV_PCM_HW_PARAM_PERIOD_BYTES)) < 0)
return err;
----------------------------------------------------------------------
perex - 01-31-06 10:19
----------------------------------------------------------------------
Yes and no. It's combination pow2 and periods == integer issue. If the
buffer size is 24000 and period size is 2048, then 24000 / 2048 = 11.7188
which is not integer value and then configuration fails.
In this case depends on the parameter order. Or a better fix maybe to
describe that buffer_size must be N * period_size with pow2 restriction
(create a list with all combinations).
I've tried to add a workaround to snd_pcm_set_params() to CVS, but it does
not prevent other apps using the hw_params ALSA API directly to fail.
----------------------------------------------------------------------
perex - 01-31-06 10:26
----------------------------------------------------------------------
To be sure: I'm talking about SNDRV_PCM_HW_PARAM_BUFFER_BYTES restriction.
See pci/emu10k1/emupcm.c code how you can use the
snd_pcm_hw_constraint_list() for this parameter.
----------------------------------------------------------------------
Raymond - 01-31-06 11:06
----------------------------------------------------------------------
There are a number of bugs in snd_vortex_playback_hw_adb
1) capture channels is 2
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766
2) Turtle Beach Montego II (au8830) has stereo codec STAC9721, rear
channels seem to use I2S on the daugther card, other au8830 have quad
codec.
3) SQ1500 (au8810) SuperQuad , other au8810 have stereo codec
/* hardware definition */
static struct snd_pcm_hardware snd_vortex_playback_hw_adb = {
.info =
(SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID),
.formats =
SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U8 |
SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW,
.rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 5000,
.rate_max = 48000,
.channels_min = 1,
#ifdef CHIP_AU8830
.channels_max = 4,
#else
.channels_max = 2,
#endif
.buffer_bytes_max = 0x10000,
.period_bytes_min = 0x1,
.period_bytes_max = 0x1000,
.periods_min = 2,
.periods_max = 32,
};
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-01-31 12:49 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-01-31 12:49 UTC (permalink / raw)
To: alsa-devel
The following issue has been set as RELATED TO issue 0001766.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 01-31-2006 13:48 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 01-28-06 07:58
----------------------------------------------------------------------
define RULES_DEBUG in /core/pcm_native.c
alsa-lib/test/pcm_min
vortex_pcm_open substream->stream=0
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
TS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfee30]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 2 -> 2
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 8] -> [8 8]
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfee30]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 2 -> 2
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 8] -> [8 8]
BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [6 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [750 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [750 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [24000 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 85334) -> [15625 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 1365334) -> [500000 1365334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [750 4096] -> [1024 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [24000 65536] -> [24000 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 32] -> [6 32]
Rule 11 [e1cfef90]: PERIOD_SIZE = [750 4096] -> [1024 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 14 [e1cfef90]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1024 4096] -> [1024 4096]
Rule 18 [e1cfef90]: PERIOD_TIME = [15625 85334) -> (21333 85334)
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 32] -> [6 32]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfee30]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfeea0]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 2 -> 2
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 8] -> [8 8]
PERIOD_TIME = (21333 85334) -> (21333 85334)
PERIOD_SIZE = [1024 4096] -> [1024 4096]
BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [6 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1024 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [24000 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (21333 85334) -> (21333 85334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 1365334) -> [500000 1365334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [1024 4096] -> [1024 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [24000 65536] -> [24000 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1024 4096] -> [1024 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [24000 65536] -> [24000 65536]
BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 32] -> [6 23]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 4096] -> [1044 4000]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1024 4096] -> [1044 4000]
Rule 17 [e1cfef10]: BUFFER_BYTES = [24000 65536] -> [24000 24000]
Rule 18 [e1cfef90]: PERIOD_TIME = (21333 85334) -> [21750 83334)
Rule 19 [e1cfef90]: BUFFER_TIME = [500000 1365334) -> [500000 500000]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1044 4000] -> [2048 2048]
Rule 21 [e1cff230]: BUFFER_BYTES = [24000 24000] -> [24000 24000]
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 23] -> [6 22]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1044 4000] -> [1091 4000]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1091 4000] -> [2048 2048]
Rule 12 [e1cfef10]: PERIOD_SIZE = [2048 2048] -> [2048 2048]
Rule 13 [e1cfee30]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 14 [e1cfef90]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 15 [e1cfef10]: BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 16 [e1cfef10]: PERIOD_BYTES = [2048 2048] -> [2048 2048]
Rule 18 [e1cfef90]: PERIOD_TIME = [21750 83334) -> (42666 42667)
Rule 4 [e1cfef90]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [6 22] -> empty
vortex_pcm_hw_free substream->stream=0
vortex_pcm_close substream->stream=0
----------------------------------------------------------------------
Raymond - 01-31-06 08:31
----------------------------------------------------------------------
Why do Rule 9 [e1cfeea0]: PERIODS = [6 22] -> empty ?
----------------------------------------------------------------------
Raymond - 01-31-06 09:48
----------------------------------------------------------------------
It seem that au88x0 is the only driver which use
snd_pcm_hw_constraint_pow2()
/* Force equal size periods */
if ((err =
snd_pcm_hw_constraint_integer(runtime,
SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
return err;
/* Avoid PAGE_SIZE boundary to fall inside of a period. */
if ((err =
snd_pcm_hw_constraint_pow2(runtime, 0,
SNDRV_PCM_HW_PARAM_PERIOD_BYTES)) < 0)
return err;
----------------------------------------------------------------------
perex - 01-31-06 10:19
----------------------------------------------------------------------
Yes and no. It's combination pow2 and periods == integer issue. If the
buffer size is 24000 and period size is 2048, then 24000 / 2048 = 11.7188
which is not integer value and then configuration fails.
In this case depends on the parameter order. Or a better fix maybe to
describe that buffer_size must be N * period_size with pow2 restriction
(create a list with all combinations).
I've tried to add a workaround to snd_pcm_set_params() to CVS, but it does
not prevent other apps using the hw_params ALSA API directly to fail.
----------------------------------------------------------------------
perex - 01-31-06 10:26
----------------------------------------------------------------------
To be sure: I'm talking about SNDRV_PCM_HW_PARAM_BUFFER_BYTES restriction.
See pci/emu10k1/emupcm.c code how you can use the
snd_pcm_hw_constraint_list() for this parameter.
----------------------------------------------------------------------
Raymond - 01-31-06 11:06
----------------------------------------------------------------------
There are a number of bugs in snd_vortex_playback_hw_adb
1) capture channels is 2
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766
2) Turtle Beach Montego II (au8830) has stereo codec STAC9721, rear
channels seem to use I2S on the daugther card, other au8830 have quad
codec.
3) SQ1500 (au8810) SuperQuad , other au8810 have stereo codec
/* hardware definition */
static struct snd_pcm_hardware snd_vortex_playback_hw_adb = {
.info =
(SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID),
.formats =
SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U8 |
SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW,
.rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 5000,
.rate_max = 48000,
.channels_min = 1,
#ifdef CHIP_AU8830
.channels_max = 4,
#else
.channels_max = 2,
#endif
.buffer_bytes_max = 0x10000,
.period_bytes_min = 0x1,
.period_bytes_max = 0x1000,
.periods_min = 2,
.periods_max = 32,
};
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-01-31 14:59 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-01-31 14:59 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 01-31-2006 15:59 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 01-31-06 11:06
----------------------------------------------------------------------
There are a number of bugs in snd_vortex_playback_hw_adb
1) capture channels is 2
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766
2) Turtle Beach Montego II (au8830) has stereo codec STAC9721, rear
channels seem to use I2S on the daugther card, other au8830 have quad
codec.
3) SQ1500 (au8810) SuperQuad , other au8810 have stereo codec
/* hardware definition */
static struct snd_pcm_hardware snd_vortex_playback_hw_adb = {
.info =
(SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID),
.formats =
SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U8 |
SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW,
.rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 5000,
.rate_max = 48000,
.channels_min = 1,
#ifdef CHIP_AU8830
.channels_max = 4,
#else
.channels_max = 2,
#endif
.buffer_bytes_max = 0x10000,
.period_bytes_min = 0x1,
.period_bytes_max = 0x1000,
.periods_min = 2,
.periods_max = 32,
};
----------------------------------------------------------------------
Raymond - 01-31-06 15:59
----------------------------------------------------------------------
Your workaround to snd_pcm_set_params() in CVS do not work.
http://cvs.sourceforge.net/viewcvs.py/alsa/alsa-lib/src/pcm/pcm.c?r1=1.319&r2=1.320
alsa/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7148:(snd_pcm_set_params) Segmentation fault
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-01 6:35 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-01 6:35 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-01-2006 07:35 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 01-31-06 15:59
----------------------------------------------------------------------
Your workaround to snd_pcm_set_params() in CVS do not work.
http://cvs.sourceforge.net/viewcvs.py/alsa/alsa-lib/src/pcm/pcm.c?r1=1.319&r2=1.320
alsa/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7148:(snd_pcm_set_params) Segmentation fault
----------------------------------------------------------------------
perex - 02-01-06 07:35
----------------------------------------------------------------------
The error message should be fixed now. Could you enable RULES_DEBUG to see
what's going wrong?
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-01 9:32 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-01 9:32 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-01-2006 10:32 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
perex - 02-01-06 07:35
----------------------------------------------------------------------
The error message should be fixed now. Could you enable RULES_DEBUG to see
what's going wrong?
----------------------------------------------------------------------
Raymond - 02-01-06 10:32
----------------------------------------------------------------------
Rule 4 [e1cfb980]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfb890]: PERIODS = [6 22] -> empty
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cfba00]: FORMAT = 300006 -> 300006
Rule 1 [e1cfbb30]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfb820]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfb980]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfb980]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfb890]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfb980]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfb980]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfb890]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfb890]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfb980]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfb900]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfb820]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfb980]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfb900]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfb900]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfb900]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfb980]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfb980]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d007b0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cfbc20]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cfba00]: FORMAT = 300006 -> 300006
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfb980]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfb980]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfb980]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfb980]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfb890]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfb890]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfb900]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfb980]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfb900]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfb900]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfb900]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfb980]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfb980]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfb900]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfb900]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfb820]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfb890]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfb980]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfb980]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfb900]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfb900]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cfbb30]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfb820]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfb890]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfb980]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfb980]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfb900]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfb900]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cfba00]: FORMAT = 2 -> 2
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 8] -> [8 8]
PERIOD_TIME = (42666 42667) -> (42666 42667)
PERIOD_SIZE = [2048 2048] -> [2048 2048]
BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 4 [e1cfb980]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfb980]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfb890]: PERIODS = [2 32] -> empty
alsa-lib/test/pcm_min
ALSA lib pcm.c:7148:(snd_pcm_set_params) Unable to set period time 125000
for PLAYBACK: Invalid argument
Playback open error: Invalid argument
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-01 16:20 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-01 16:20 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-01-2006 17:20 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-01-06 10:32
----------------------------------------------------------------------
Rule 4 [e1cfb980]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfb890]: PERIODS = [6 22] -> empty
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cfba00]: FORMAT = 300006 -> 300006
Rule 1 [e1cfbb30]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfb820]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfb980]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfb980]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfb890]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfb980]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfb980]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfb890]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfb890]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfb980]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfb900]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfb820]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfb980]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfb900]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfb900]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfb900]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfb980]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfb980]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d007b0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cfbc20]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cfba00]: FORMAT = 300006 -> 300006
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfb980]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfb980]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfb980]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfb980]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfb890]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfb890]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfb900]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfb980]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfb900]: BUFFER_SIZE = [2 65536] -> [2 65536]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfb900]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfb900]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 18 [e1cfb980]: PERIOD_TIME = (20 819200] -> (20 85334)
Rule 19 [e1cfb980]: BUFFER_TIME = (41 13107200] -> (41 1365334)
Rule 7 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfb900]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 15 [e1cfb900]: BUFFER_SIZE = [2 65536] -> [2 65536]
CHANNELS = [1 1] -> [1 1]
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfb820]: FRAME_BITS = [8 64] -> [8 16]
Rule 6 [e1cfb890]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfb980]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfb980]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfb900]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfb900]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 16] -> [8 16]
FORMAT = 0000000000000002 -> 0000000000000002
Rule 1 [e1cfbb30]: SAMPLE_BITS = [8 16] -> [8 8]
Rule 3 [e1cfb820]: FRAME_BITS = [8 16] -> [8 8]
Rule 6 [e1cfb890]: CHANNELS = [1 1] -> [1 1]
Rule 11 [e1cfb980]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfb980]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfb900]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfb900]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cfba00]: FORMAT = 2 -> 2
Rule 2 [e1cfb890]: SAMPLE_BITS = [8 8] -> [8 8]
PERIOD_TIME = (42666 42667) -> (42666 42667)
PERIOD_SIZE = [2048 2048] -> [2048 2048]
BUFFER_SIZE = [24000 24000] -> [24000 24000]
Rule 4 [e1cfb980]: FRAME_BITS = [8 8] -> [8 8]
Rule 5 [e1cfb980]: FRAME_BITS = [8 8] -> [8 8]
Rule 7 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfb980]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfb890]: PERIODS = [2 32] -> empty
alsa-lib/test/pcm_min
ALSA lib pcm.c:7148:(snd_pcm_set_params) Unable to set period time 125000
for PLAYBACK: Invalid argument
Playback open error: Invalid argument
----------------------------------------------------------------------
Raymond - 02-01-06 17:20
----------------------------------------------------------------------
Do we need to define fifo_size in snd_pcm_hardware ?
.fifo_size = FIFO_SIZE
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-02 9:23 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-02 9:23 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-02-2006 10:23 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-01-06 17:20
----------------------------------------------------------------------
Do we need to define fifo_size in snd_pcm_hardware ?
.fifo_size = FIFO_SIZE
----------------------------------------------------------------------
Raymond - 02-02-06 10:23
----------------------------------------------------------------------
latency required overall latency in us (0 = optimum latency for players)
Do the latency time a multiple of the time to play one sample (i.e. depend
on the sample rate ) ?
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-03 13:26 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-03 13:26 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-03-2006 14:26 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-02-06 15:48
----------------------------------------------------------------------
latency required overall latency in us (0 = optimum latency for players)
Do the latency time need to be a multiple of the time to play one sample
(i.e. depend on the sample rate ) ?
1 sample of 48000Hz is 20833.33333us.
----------------------------------------------------------------------
Raymond - 02-03-06 14:26
----------------------------------------------------------------------
Is the pcm_min.c used to demonstrate snd_pcm_recover() the underrun
condition ?
unsigned char buffer[16*1024]; /* some random data */
frames = snd_pcm_writei(handle, buffer, sizeof(buffer));
It do not call snd_pcm_get_params() to obtain period_size and buffer_size
?
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-05 15:39 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-05 15:39 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-05-2006 16:39 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-03-06 14:26
----------------------------------------------------------------------
Is the pcm_min.c used to demonstrate snd_pcm_recover() the underrun
condition ?
unsigned char buffer[16*1024]; /* some random data */
frames = snd_pcm_writei(handle, buffer, sizeof(buffer));
It do not call snd_pcm_get_params() to obtain period_size and buffer_size
?
----------------------------------------------------------------------
Raymond - 02-05-06 16:39
----------------------------------------------------------------------
Index: alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_pcm.c,v
retrieving revision 1.11
diff -u -r1.11 au88x0_pcm.c
--- alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 17 Nov 2005 14:55:19
-0000 1.11
+++ alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 5 Feb 2006 15:37:33
-0000
@@ -134,6 +136,11 @@
SNDRV_PCM_HW_PARAM_PERIOD_BYTES)) < 0)
return err;
+ if ((err =
+ snd_pcm_hw_constraint_pow2(runtime, 0,
+ SNDRV_PCM_HW_PARAM_BUFFER_SIZE)) < 0)
+ return err;
+
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
#ifndef CHIP_AU8820
if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) {
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-05 15:48 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-05 15:48 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-05-2006 16:48 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-05-06 16:39
----------------------------------------------------------------------
Index: alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_pcm.c,v
retrieving revision 1.11
diff -u -r1.11 au88x0_pcm.c
--- alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 17 Nov 2005 14:55:19
-0000 1.11
+++ alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 5 Feb 2006 15:37:33
-0000
@@ -134,6 +136,11 @@
SNDRV_PCM_HW_PARAM_PERIOD_BYTES)) < 0)
return err;
+ if ((err =
+ snd_pcm_hw_constraint_pow2(runtime, 0,
+ SNDRV_PCM_HW_PARAM_BUFFER_SIZE)) < 0)
+ return err;
+
if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
#ifndef CHIP_AU8820
if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) {
----------------------------------------------------------------------
Raymond - 02-05-06 16:48
----------------------------------------------------------------------
Would anyone explain why
period_time = latency / 4;
in snd_pcm_set_params()
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-07 6:35 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-07 6:35 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-07-2006 07:35 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-06-06 06:15
----------------------------------------------------------------------
Would anyone explain why
period_time = latency / 4;
in snd_pcm_set_params()
Do the driver look for maximum buffer size ?
buffer_size * rate <= latency
----------------------------------------------------------------------
Raymond - 02-07-06 07:35
----------------------------------------------------------------------
It is not pratical to describe that buffer_size must be N * period_size
with pow2 restriction.
64K / 32 = 2K entries
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-13 2:11 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-13 2:11 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-13-2006 03:11 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-07-06 07:35
----------------------------------------------------------------------
It is not pratical to describe that buffer_size must be N * period_size
with pow2 restriction.
64K / 32 = 2K entries
----------------------------------------------------------------------
Raymond - 02-13-06 03:11
----------------------------------------------------------------------
aplay -D hw:0,0 can find a safe value of period_size for all .wav files in
the vortex driver CD without underrun. The period_size varies between
different rate and format
However if I specified aplay to use any period-size less than 32, the
message will appear in the system log
aplay -D hw:0,0 --period-size=16 *.wav
dmesg
vortex: 0 virt=2, real=2, delta=2
vortex: 0 virt=11, real=3, delta=2
vortex: 0 virt=20, real=0, delta=2
vortex: 0 virt=29, real=1, delta=2
vortex: 0 virt=6, real=2, delta=2
vortex: 0 virt=15, real=3, delta=2
vortex: 0 virt=24, real=0, delta=2
vortex: 0 virt=1, real=1, delta=2
vortex: 0 virt=10, real=2, delta=2
vortex: 0 virt=19, real=3, delta=2
vortex: 0 virt=28, real=0, delta=2
vortex: 0 virt=5, real=1, delta=2
vortex: 0 virt=14, real=2, delta=2
vortex: 0 virt=23, real=3, delta=2
vortex: 0 virt=0, real=0, delta=2
vortex: 0 virt=9, real=1, delta=2
vortex: 0 virt=18, real=2, delta=2
vortex: 0 virt=27, real=3, delta=2
vortex: 0 virt=4, real=0, delta=2
vortex: 0 virt=13, real=1, delta=2
vortex: 0 virt=22, real=2, delta=2
vortex: 0 virt=31, real=3, delta=2
vortex: 0 virt=8, real=0, delta=2
vortex: 0 virt=17, real=1, delta=2
vortex: 0 virt=26, real=2, delta=2
vortex: 0 virt=3, real=3, delta=2
vortex: 0 virt=12, real=0, delta=2
vortex: 0 virt=21, real=1, delta=2
vortex: 0 virt=30, real=2, delta=2
vortex: 0 virt=7, real=3, delta=2
vortex: 0 virt=16, real=0, delta=2
vortex: 0 virt=25, real=1, delta=2
vortex: 0 virt=2, real=2, delta=2
vortex: 0 virt=11, real=3, delta=2
vortex: 0 virt=20, real=0, delta=2
vortex: 0 virt=29, real=1, delta=2
vortex: 0 virt=6, real=2, delta=2
vortex: 0 virt=15, real=3, delta=2
vortex: 0 virt=24, real=0, delta=2
What is the relationship between period_size and period_byte ?
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-13 7:52 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-13 7:52 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-13-2006 08:52 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-13-06 03:11
----------------------------------------------------------------------
aplay -D hw:0,0 can find a safe value of period_size for all .wav files in
the vortex driver CD without underrun. The period_size varies between
different rate and format
However if I specified aplay to use any period-size less than 32, the
message will appear in the system log
aplay -D hw:0,0 --period-size=16 *.wav
dmesg
vortex: 0 virt=2, real=2, delta=2
vortex: 0 virt=11, real=3, delta=2
vortex: 0 virt=20, real=0, delta=2
vortex: 0 virt=29, real=1, delta=2
vortex: 0 virt=6, real=2, delta=2
vortex: 0 virt=15, real=3, delta=2
vortex: 0 virt=24, real=0, delta=2
vortex: 0 virt=1, real=1, delta=2
vortex: 0 virt=10, real=2, delta=2
vortex: 0 virt=19, real=3, delta=2
vortex: 0 virt=28, real=0, delta=2
vortex: 0 virt=5, real=1, delta=2
vortex: 0 virt=14, real=2, delta=2
vortex: 0 virt=23, real=3, delta=2
vortex: 0 virt=0, real=0, delta=2
vortex: 0 virt=9, real=1, delta=2
vortex: 0 virt=18, real=2, delta=2
vortex: 0 virt=27, real=3, delta=2
vortex: 0 virt=4, real=0, delta=2
vortex: 0 virt=13, real=1, delta=2
vortex: 0 virt=22, real=2, delta=2
vortex: 0 virt=31, real=3, delta=2
vortex: 0 virt=8, real=0, delta=2
vortex: 0 virt=17, real=1, delta=2
vortex: 0 virt=26, real=2, delta=2
vortex: 0 virt=3, real=3, delta=2
vortex: 0 virt=12, real=0, delta=2
vortex: 0 virt=21, real=1, delta=2
vortex: 0 virt=30, real=2, delta=2
vortex: 0 virt=7, real=3, delta=2
vortex: 0 virt=16, real=0, delta=2
vortex: 0 virt=25, real=1, delta=2
vortex: 0 virt=2, real=2, delta=2
vortex: 0 virt=11, real=3, delta=2
vortex: 0 virt=20, real=0, delta=2
vortex: 0 virt=29, real=1, delta=2
vortex: 0 virt=6, real=2, delta=2
vortex: 0 virt=15, real=3, delta=2
vortex: 0 virt=24, real=0, delta=2
What is the relationship between period_size and period_byte ?
----------------------------------------------------------------------
mjander - 02-13-06 08:52
----------------------------------------------------------------------
Hi,
The messages of the kind:
vortex: 0 virt=2, real=2, delta=2
vortex: 0 virt=11, real=3, delta=2
appear when your system is lossing interrupts because of overload. You are
asking your computer to do something it is not capable of. Thats it.
period size is measured in frames and period_bytes in bytes. AFAIK any
size is meant to be in frames.
Best Regards
Manuel Jander
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-13 15:57 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-13 15:57 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-13-2006 16:57 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
mjander - 02-13-06 08:52
----------------------------------------------------------------------
Hi,
The messages of the kind:
vortex: 0 virt=2, real=2, delta=2
vortex: 0 virt=11, real=3, delta=2
appear when your system is lossing interrupts because of overload. You are
asking your computer to do something it is not capable of. Thats it.
period size is measured in frames and period_bytes in bytes. AFAIK any
size is meant to be in frames.
Best Regards
Manuel Jander
----------------------------------------------------------------------
Raymond - 02-13-06 16:57
----------------------------------------------------------------------
Is it possible for au8830 to support surround51 by panning the center to
front speakers and bass to 4 speakers ?
<confdir:pcm/surround51.conf>
AU8830.pcm.surround51.0 {
@args [ CARD ]
@args.CARD {
type string
}
type multi
slaves [
{
pcm {
@func concat
strings [
"cards.AU8830.pcm.front.0:CARD=" $CARD
]
}
channels 4
}
{
pcm {
@func concat
strings [
"cards.AU8830.pcm.front.0:CARD=" $CARD
]
}
channels 1
}
{
pcm {
@func concat
strings [
"cards.AU8830.pcm.front.0:CARD=" $CARD
]
}
channels 1
}
]
bindings [
{ slave 0 channel 0 }
{ slave 0 channel 1 }
{ slave 0 channel 2 }
{ slave 0 channel 3 }
{ slave 1 channel 0 }
{ slave 2 channel 0 }
]
}
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-16 3:01 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-16 3:01 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-16-2006 04:01 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-13-06 17:02
----------------------------------------------------------------------
Is it possible for au8830 to support surround51 by panning the center to
front speakers and bass to 4 speakers ?
<confdir:pcm/surround51.conf>
AU8830.pcm.surround51.0 {
@args [ CARD ]
@args.CARD {
type string
}
type multi
slaves [
{
pcm {
@func concat
strings [
"cards.AU8830.pcm.surround40.0:CARD=" $CARD
]
}
channels 4
}
{
pcm {
@func concat
strings [
"cards.AU8830.pcm.front.0:CARD=" $CARD
]
}
channels 1
}
{
pcm {
@func concat
strings [
"cards.AU8830.pcm.surround40.0:CARD=" $CARD
]
}
channels 1
}
]
bindings [
{ slave 0 channel 0 }
{ slave 0 channel 1 }
{ slave 0 channel 2 }
{ slave 0 channel 3 }
{ slave 1 channel 0 }
{ slave 2 channel 0 }
]
}
----------------------------------------------------------------------
Raymond - 02-16-06 04:01
----------------------------------------------------------------------
http://www.alsa-project.org/~iwai/writing-an-alsa-driver/x639.htm#PCM-INTERFACE-OPERATORS-PREPARE-CALLBACK
Can those parameters runtime->rate, runtime->format, runtime->channels
pass to prepare callback different from those accepted by hw_params
callback ?
As mixer, src are dynamically allocated, the current au88x0 driver do not
support any change in runtime->channels after hw_params callback.
snd_pcm_recover() will call snd_pcm_prepare() when underrun occur.
Which runtime parameters will be changed when underrun occur ?
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-02-19 5:31 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-02-19 5:31 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 02-19-2006 06:31 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-16-06 04:01
----------------------------------------------------------------------
http://www.alsa-project.org/~iwai/writing-an-alsa-driver/x639.htm#PCM-INTERFACE-OPERATORS-PREPARE-CALLBACK
Can those parameters runtime->rate, runtime->format, runtime->channels
pass to prepare callback different from those accepted by hw_params
callback ?
As mixer, src are dynamically allocated, the current au88x0 driver do not
support any change in runtime->channels after hw_params callback.
snd_pcm_recover() will call snd_pcm_prepare() when underrun occur.
Which runtime parameters will be changed when underrun occur ?
----------------------------------------------------------------------
Raymond - 02-19-06 06:31
----------------------------------------------------------------------
What is the difference between "default" and "hw:0" pcm of au88x0 in
alsa-1.0.11rc3 ?
1) Do "default" pcm support more format than "hw:0" ?
(e.g. SNDRV_PCM_FMTBIT_S16_BE, SNDRV_PCM_FMTBIT_S8, 24 bits format)
2) Do "default" pcm allow resample ? (e.g. 96000Hz )
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-03-07 10:08 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-03-07 10:08 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 03-07-2006 11:08 CET
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 02-19-06 06:39
----------------------------------------------------------------------
What is the difference between "default" and "hw:0" pcm of au88x0 in
alsa-1.0.11rc3 ?
1) Do "default" pcm support more format than "hw:0" ?
(e.g. SNDRV_PCM_FMTBIT_S16_BE, SNDRV_PCM_FMTBIT_S8, 24 bits format)
2) Do "default" pcm allow resample ? (e.g. 96000Hz )
3) Is the usage of snd_pcm_set_params() limited to "default" ?
4) What is the effect of set soft_resample = 1 in snd_pcm_set_params() for
SND_PCM_TYPE_HW pcm ?
----------------------------------------------------------------------
Raymond - 03-07-06 11:08
----------------------------------------------------------------------
Patch to make snd_pcm_set_params() work for au88x0
Index: alsa-lib/src/pcm/pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm.c,v
retrieving revision 1.323
diff -u -r1.323 pcm.c
--- alsa-lib/src/pcm/pcm.c 27 Feb 2006 09:58:32 -0000 1.323
+++ alsa-lib/src/pcm/pcm.c 7 Mar 2006 10:05:12 -0000
@@ -7088,7 +7088,7 @@
const char *s = snd_pcm_stream_name(snd_pcm_stream(pcm));
snd_pcm_uframes_t buffer_size, period_size;
unsigned int rrate, period_time;
- int err;
+ int err, dir;
snd_pcm_hw_params_alloca(¶ms);
snd_pcm_sw_params_alloca(&swparams);
@@ -7135,17 +7135,24 @@
SNDERR("Rate doesn't match (requested %iHz, get %iHz)", rate, err);
return -EINVAL;
}
- /* set the buffer time */
- err = INTERNAL(snd_pcm_hw_params_set_buffer_time_near)(pcm, params,
&latency, NULL);
+ /* test the buffer time */
+ err = snd_pcm_hw_params_test_buffer_time(pcm, params, latency, NULL);
if (err < 0) {
/* error path -> set period size as first */
- /* set the period time */
- period_time = latency / 4;
- err = INTERNAL(snd_pcm_hw_params_set_period_time_near)(pcm,
params, &period_time, NULL);
- if (err < 0) {
- SNDERR("Unable to set period time %i for %s: %s", period_time,
s, snd_strerror(err));
- return err;
- }
+ err = INTERNAL(snd_pcm_hw_params_get_period_size_max)(params,
&period_size, NULL);
+ if (err < 0) {
+ SNDERR("Unable to get period size max for %s: %s", s,
snd_strerror(err));
+ return err;
+ }
+/*
+ FIXME - calculate period_size according to latency if necessary
+*/
+ dir=-1;
+ err = INTERNAL(snd_pcm_hw_params_set_period_size_near)(pcm, params,
&period_size, &dir);
+ if (err < 0) {
+ SNDERR("Unable to set period size for %s: %s", s,
snd_strerror(err));
+ return err;
+ }
err = INTERNAL(snd_pcm_hw_params_get_period_size)(params,
&period_size, NULL);
if (err < 0) {
SNDERR("Unable to get period size for %s: %s", s,
snd_strerror(err));
@@ -7163,6 +7170,12 @@
return err;
}
} else {
+ /* set the buffer time */
+ err = INTERNAL(snd_pcm_hw_params_set_buffer_time_near)(pcm, params,
&latency, NULL);
+ if (err < 0) {
+ SNDERR("Unable to set buffer time for %s: %s", s,
snd_strerror(err));
+ return err;
+ }
/* standard configuration buffer_time -> periods */
err = INTERNAL(snd_pcm_hw_params_get_buffer_size)(params,
&buffer_size);
if (err < 0) {
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-03-30 16:35 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-03-30 16:35 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 03-30-2006 18:35 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 03-07-06 11:08
----------------------------------------------------------------------
Patch to make snd_pcm_set_params() work for au88x0
Index: alsa-lib/src/pcm/pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm.c,v
retrieving revision 1.323
diff -u -r1.323 pcm.c
--- alsa-lib/src/pcm/pcm.c 27 Feb 2006 09:58:32 -0000 1.323
+++ alsa-lib/src/pcm/pcm.c 7 Mar 2006 10:05:12 -0000
@@ -7088,7 +7088,7 @@
const char *s = snd_pcm_stream_name(snd_pcm_stream(pcm));
snd_pcm_uframes_t buffer_size, period_size;
unsigned int rrate, period_time;
- int err;
+ int err, dir;
snd_pcm_hw_params_alloca(¶ms);
snd_pcm_sw_params_alloca(&swparams);
@@ -7135,17 +7135,24 @@
SNDERR("Rate doesn't match (requested %iHz, get %iHz)", rate, err);
return -EINVAL;
}
- /* set the buffer time */
- err = INTERNAL(snd_pcm_hw_params_set_buffer_time_near)(pcm, params,
&latency, NULL);
+ /* test the buffer time */
+ err = snd_pcm_hw_params_test_buffer_time(pcm, params, latency, NULL);
if (err < 0) {
/* error path -> set period size as first */
- /* set the period time */
- period_time = latency / 4;
- err = INTERNAL(snd_pcm_hw_params_set_period_time_near)(pcm,
params, &period_time, NULL);
- if (err < 0) {
- SNDERR("Unable to set period time %i for %s: %s", period_time,
s, snd_strerror(err));
- return err;
- }
+ err = INTERNAL(snd_pcm_hw_params_get_period_size_max)(params,
&period_size, NULL);
+ if (err < 0) {
+ SNDERR("Unable to get period size max for %s: %s", s,
snd_strerror(err));
+ return err;
+ }
+/*
+ FIXME - calculate period_size according to latency if necessary
+*/
+ dir=-1;
+ err = INTERNAL(snd_pcm_hw_params_set_period_size_near)(pcm, params,
&period_size, &dir);
+ if (err < 0) {
+ SNDERR("Unable to set period size for %s: %s", s,
snd_strerror(err));
+ return err;
+ }
err = INTERNAL(snd_pcm_hw_params_get_period_size)(params,
&period_size, NULL);
if (err < 0) {
SNDERR("Unable to get period size for %s: %s", s,
snd_strerror(err));
@@ -7163,6 +7170,12 @@
return err;
}
} else {
+ /* set the buffer time */
+ err = INTERNAL(snd_pcm_hw_params_set_buffer_time_near)(pcm, params,
&latency, NULL);
+ if (err < 0) {
+ SNDERR("Unable to set buffer time for %s: %s", s,
snd_strerror(err));
+ return err;
+ }
/* standard configuration buffer_time -> periods */
err = INTERNAL(snd_pcm_hw_params_get_buffer_size)(params,
&buffer_size);
if (err < 0) {
----------------------------------------------------------------------
Raymond - 03-30-06 18:35
----------------------------------------------------------------------
The source code of /test/pcm_min.c is missing
http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm__min_8c-example.html
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-05-22 13:48 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-05-22 13:48 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 05-22-2006 15:48 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
mjander - 02-13-06 08:52
----------------------------------------------------------------------
Hi,
The messages of the kind:
vortex: 0 virt=2, real=2, delta=2
vortex: 0 virt=11, real=3, delta=2
appear when your system is lossing interrupts because of overload. You are
asking your computer to do something it is not capable of. Thats it.
period size is measured in frames and period_bytes in bytes. AFAIK any
size is meant to be in frames.
Best Regards
Manuel Jander
----------------------------------------------------------------------
Raymond - 05-22-06 15:48
----------------------------------------------------------------------
http://hg-mirror.alsa-project.org/alsa-lib?cmd=changeset;node=481c12cfbffd;style=gitweb
Whenever snd_pcm_hw_params_set_buffer_time_near() or
snd_pcm_hw_params_set_period_time_near() fail, the error is irrecoverable
However this behaviour seem undocumented in alsa-lib
snd_pcm_hw_params_test_buffer_time() should be used instead of
snd_pcm_hw_params_set_buffer_time_near()
http://bugzilla.gnome.org/show_bug.cgi?id=342085
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-05-30 7:36 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-05-30 7:36 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 05-30-2006 09:36 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 05-22-06 15:48
----------------------------------------------------------------------
http://hg-mirror.alsa-project.org/alsa-lib?cmd=changeset;node=481c12cfbffd;style=gitweb
Whenever snd_pcm_hw_params_set_buffer_time_near() or
snd_pcm_hw_params_set_period_time_near() fail, the error is irrecoverable
However this behaviour seem undocumented in alsa-lib
snd_pcm_hw_params_test_buffer_time() should be used instead of
snd_pcm_hw_params_set_buffer_time_near()
http://bugzilla.gnome.org/show_bug.cgi?id=342085
----------------------------------------------------------------------
Raymond - 05-30-06 09:36
----------------------------------------------------------------------
/* IRQ flags */
#define IRQ_ERR_MASK 0x00ff
#define IRQ_FATAL 0x0001
#define IRQ_PARITY 0x0002
#define IRQ_REG 0x0004
#define IRQ_FIFO 0x0008
#define IRQ_DMA 0x0010
#define IRQ_PCMOUT 0x0020 /* PCM OUT page crossing */
#define IRQ_TIMER 0x1000
#define IRQ_MIDI 0x2000
#define IRQ_MODEM 0x4000
snd_pcm_period_elapsed() is called only when IRQ_PCMOUT is generated,
however IRQ_ERR_MASK should not contain IRQ_PCMOUT bit. It just wasting
CPU to perform those unnecssary check
IRQ_ERR_MASK should be 0x1f instead of 0xff
if (unlikely(source & IRQ_ERR_MASK)) {
if (source & IRQ_FATAL) {
printk(KERN_ERR "vortex: IRQ fatal error\n");
}
if (source & IRQ_PARITY) {
printk(KERN_ERR "vortex: IRQ parity error\n");
}
if (source & IRQ_REG) {
printk(KERN_ERR "vortex: IRQ reg error\n");
}
if (source & IRQ_FIFO) {
printk(KERN_ERR "vortex: IRQ fifo error\n");
}
if (source & IRQ_DMA) {
printk(KERN_ERR "vortex: IRQ dma error\n");
}
handled = 1;
}
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
======================================================================
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-05-30 16:31 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-05-30 16:31 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 05-30-2006 18:31 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 05-30-06 09:38
----------------------------------------------------------------------
/* IRQ flags */
#define IRQ_ERR_MASK 0x00ff
#define IRQ_FATAL 0x0001
#define IRQ_PARITY 0x0002
#define IRQ_REG 0x0004
#define IRQ_FIFO 0x0008
#define IRQ_DMA 0x0010
#define IRQ_PCMOUT 0x0020 /* PCM OUT page crossing */
#define IRQ_TIMER 0x1000
#define IRQ_MIDI 0x2000
#define IRQ_MODEM 0x4000
snd_pcm_period_elapsed() is called only when IRQ_PCMOUT is generated,
however IRQ_ERR_MASK should not contain IRQ_PCMOUT bit. It just wasting
CPU to perform those unnecssary check
IRQ_ERR_MASK should be 0x1f instead of 0xff
if (unlikely(source & IRQ_ERR_MASK)) {
if (source & IRQ_FATAL) {
printk(KERN_ERR "vortex: IRQ fatal error\n");
}
if (source & IRQ_PARITY) {
printk(KERN_ERR "vortex: IRQ parity error\n");
}
if (source & IRQ_REG) {
printk(KERN_ERR "vortex: IRQ reg error\n");
}
if (source & IRQ_FIFO) {
printk(KERN_ERR "vortex: IRQ fifo error\n");
}
if (source & IRQ_DMA) {
printk(KERN_ERR "vortex: IRQ dma error\n");
}
handled = 1;
}
This may explain why au8820 score low mark in recent linux audio
comparsion FC5
----------------------------------------------------------------------
rlrevell - 05-30-06 18:31
----------------------------------------------------------------------
What does this IRQ issue have to do with the buffer size constraint?
Raymond, PLEASE stop using this bug tracker as your private IRC channel.
One bug report per bug.
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
======================================================================
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-06-30 11:53 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-06-30 11:53 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 06-30-2006 13:53 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
rlrevell - 05-30-06 18:31
----------------------------------------------------------------------
What does this IRQ issue have to do with the buffer size constraint?
Raymond, PLEASE stop using this bug tracker as your private IRC channel.
One bug report per bug.
----------------------------------------------------------------------
Raymond - 06-30-06 13:53
----------------------------------------------------------------------
The following is output of "test.c" which I upload, any idea how to refine
the constraints (period_size and buffer_size) according to the latency
./test
pcm state after pcm open : 0
period size (min=1 max=4096)
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
buffer size (min=2 max=65536)
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
68
72
76
80
84
88
92
96
100
104
108
112
116
120
124
128
136
144
152
160
168
176
184
192
200
208
216
224
232
240
248
256
272
288
304
320
336
352
368
384
400
416
432
448
464
480
496
512
544
576
608
640
672
704
736
768
800
832
864
896
928
960
992
1024
1088
1152
1216
1280
1344
1408
1472
1536
1600
1664
1728
1792
1856
1920
1984
2048
2176
2304
2432
2560
2688
2816
2944
3072
3200
3328
3456
3584
3712
3840
3968
4096
4352
4608
4864
5120
5376
5632
5888
6144
6400
6656
6912
7168
7424
7680
7936
8192
8704
9216
9728
10240
10752
11264
11776
12288
12800
13312
13824
14336
14848
15360
15872
16384
17408
18432
19456
20480
21504
22528
23552
24576
25600
26624
27648
28672
29696
30720
31744
32768
34816
36864
38912
40960
43008
45056
47104
49152
51200
53248
55296
57344
59392
61440
63488
65536
pcm state before hw_params : 0
pcm state after hw_params : 2
period size = 1
buffer size = 32
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
======================================================================
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-01 2:20 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-01 2:20 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-01-2006 04:20 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 06-30-06 13:55
----------------------------------------------------------------------
The following is output of "test.c" which I upload, any idea how to refine
the constraints (period_size and buffer_size) according to the latency 0.5
second
./test
pcm state after pcm open : 0
period size (min=1 max=4096)
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
buffer size (min=2 max=65536)
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
68
72
76
80
84
88
92
96
100
104
108
112
116
120
124
128
136
144
152
160
168
176
184
192
200
208
216
224
232
240
248
256
272
288
304
320
336
352
368
384
400
416
432
448
464
480
496
512
544
576
608
640
672
704
736
768
800
832
864
896
928
960
992
1024
1088
1152
1216
1280
1344
1408
1472
1536
1600
1664
1728
1792
1856
1920
1984
2048
2176
2304
2432
2560
2688
2816
2944
3072
3200
3328
3456
3584
3712
3840
3968
4096
4352
4608
4864
5120
5376
5632
5888
6144
6400
6656
6912
7168
7424
7680
7936
8192
8704
9216
9728
10240
10752
11264
11776
12288
12800
13312
13824
14336
14848
15360
15872
16384
17408
18432
19456
20480
21504
22528
23552
24576
25600
26624
27648
28672
29696
30720
31744
32768
34816
36864
38912
40960
43008
45056
47104
49152
51200
53248
55296
57344
59392
61440
63488
65536
pcm state before hw_params : 0
pcm state after hw_params : 2
period size = 1
buffer size = 32
----------------------------------------------------------------------
Raymond - 07-01-06 04:20
----------------------------------------------------------------------
The original subject of the bug report is "simple PCM helper function".
a bug report about snd_pcm_set_params() and snd_pcm_get_params()
I just want to report some alsa driver (e.g. au88x0) has problem in using
the new alsa-lib functions
I don't know why perex change the subject to "au88x0 PCM configuration
problem - buffer_size constraint"
The DMA of au88x0 seem to have different mode, the au88x0 driver currently
seem to use IRQ_PCMOUT 0x0020 /* PCM OUT page crossing */ , this can be
verified by adding printk statement in vortex_interrupt() using 12.288Mhz
clock tick (VORTEX_SMP_TIME) to calculate the time interval between
snd_pcm_period_elapsed()
It seem that the au88x0 cannot use a very small buffer size (e.g. 2) when
using IRQ_PCMOUT
Does it mean that we need to change some constraints in
snd_vortex_pcm_open() ?
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
======================================================================
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-02 7:24 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-02 7:24 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-02-2006 09:24 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 07-01-06 04:22
----------------------------------------------------------------------
The original subject of the bug report is "simple PCM helper function".
a bug report about snd_pcm_set_params() and snd_pcm_get_params()
I just want to report some alsa driver (e.g. au88x0) has problem in using
the new alsa-lib functions
I don't know why perex change the subject to "au88x0 PCM configuration
problem - buffer_size constraint" and this bug has no relationship with
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766 - which is caused by
incorrect capture channels 4
The DMA of au88x0 seem to have different mode, the au88x0 driver currently
seem to use IRQ_PCMOUT 0x0020 /* PCM OUT page crossing */ , this can be
verified by adding printk statement in vortex_interrupt() using 12.288Mhz
clock tick (VORTEX_SMP_TIME) to calculate the time interval between
snd_pcm_period_elapsed()
It seem that the au88x0 cannot use a very small buffer size (e.g. 2) when
using IRQ_PCMOUT
Does it mean that we need to change some constraints in
snd_vortex_pcm_open() ?
----------------------------------------------------------------------
Raymond - 07-02-06 09:24
----------------------------------------------------------------------
Refer to alsa-lib-1.0.12rc1/test/pcm_min.c
Is the parameter "latency" used to refine the two constraints (period_size
and buffer_size) to an unique value ?
As pcm_min.c use "default" in snd_pcm_set_params(), and "default" of
intel8x0 use dmix.
Do dmix introduce any latency when mixing several PCM playback streams ?
Do snd_pcm_set_params() return error if the specified latency is less than
the latency of dmix ?
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
07-01-06 04:21 Raymond Note Edited: 0010756
07-01-06 04:22 Raymond Note Edited: 0010756
07-02-06 09:24 Raymond Note Added: 0010773
======================================================================
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-04 11:37 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-04 11:37 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-04-2006 13:37 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 07-02-06 09:24
----------------------------------------------------------------------
Refer to alsa-lib-1.0.12rc1/test/pcm_min.c
Is the parameter "latency" used to refine the two constraints (period_size
and buffer_size) to an unique value ?
As pcm_min.c use "default" in snd_pcm_set_params(), and "default" of
intel8x0 use dmix.
Do dmix introduce any latency when mixing several PCM playback streams ?
Do snd_pcm_set_params() return error if the specified latency is less than
the latency of dmix ?
----------------------------------------------------------------------
Raymond - 07-04-06 13:37
----------------------------------------------------------------------
period time (min=21333 max=85334)
21334
42667
85334
buffer time (min=42666 max=1365334)
42667
85334
106667
149334
170667
213334
234667
277334
298667
341334
362667
405334
426667
469334
490667
533334
554667
597334
618667
661334
682667
725334
810667
853334
938667
981334
1066667
1109334
1194667
1237334
1322667
1365334
err = snd_pcm_hw_params_get_period_time_min(hwparams, &time_min, &dir);
if (err < 0)
printf("Unable to get period time min for playback: %s\n",
snd_strerror(err));
err = snd_pcm_hw_params_get_period_time_max(hwparams, &time_max, &dir);
if (err < 0)
printf("Unable to get period time max for playback: %s\n",
snd_strerror(err));
printf("period time (min=%d max=%d)\n",time_min,time_max);
for (size=time_min; size<=time_max; size++)
if ( snd_pcm_hw_params_test_period_time(pcm,hwparams,size,dir) == 0
)
printf(" %d\n",size);
err = snd_pcm_hw_params_get_buffer_time_min(hwparams, &time_min, &dir);
if (err < 0)
printf("Unable to get buffer time min for playback: %s\n",
snd_strerror(err));
err = snd_pcm_hw_params_get_buffer_time_max(hwparams, &time_max, &dir);
if (err < 0)
printf("Unable to get buffer time max for playback: %s\n",
snd_strerror(err));
printf("buffer time (min=%d max=%d)\n",time_min,time_max);
for (size=time_min; size<=time_max; size++)
if ( snd_pcm_hw_params_test_buffer_time(pcm,hwparams,size,dir) == 0
)
printf(" %d\n",size);
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
07-01-06 04:21 Raymond Note Edited: 0010756
07-01-06 04:22 Raymond Note Edited: 0010756
07-02-06 09:24 Raymond Note Added: 0010773
07-04-06 13:37 Raymond Note Added: 0010820
======================================================================
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-05 6:52 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-05 6:52 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-05-2006 08:52 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 07-04-06 15:19
----------------------------------------------------------------------
Since most common rates (22050, 44100, 48000, ...) are mulitple of 3, there
is some accuracy loss due to rounding as
period time = period bytes / rate
buffer time = buffer bytes / rate
period time (min=21333 max=85334)
21334
42667
85334
buffer time (min=42666 max=1365334)
42667
85334
106667
149334
170667
213334
234667
277334
298667
341334
362667
405334
426667
469334
490667
533334
554667
597334
618667
661334
682667
725334
810667
853334
938667
981334
1066667
1109334
1194667
1237334
1322667
1365334
err = snd_pcm_hw_params_get_period_time_min(hwparams, &time_min, &dir);
if (err < 0)
printf("Unable to get period time min for playback: %s\n",
snd_strerror(err));
err = snd_pcm_hw_params_get_period_time_max(hwparams, &time_max, &dir);
if (err < 0)
printf("Unable to get period time max for playback: %s\n",
snd_strerror(err));
printf("period time (min=%d max=%d)\n",time_min,time_max);
for (size=time_min; size<=time_max; size++)
if ( snd_pcm_hw_params_test_period_time(pcm,hwparams,size,dir) == 0
)
printf(" %d\n",size);
err = snd_pcm_hw_params_get_buffer_time_min(hwparams, &time_min, &dir);
if (err < 0)
printf("Unable to get buffer time min for playback: %s\n",
snd_strerror(err));
err = snd_pcm_hw_params_get_buffer_time_max(hwparams, &time_max, &dir);
if (err < 0)
printf("Unable to get buffer time max for playback: %s\n",
snd_strerror(err));
printf("buffer time (min=%d max=%d)\n",time_min,time_max);
for (size=time_min; size<=time_max; size++)
if ( snd_pcm_hw_params_test_buffer_time(pcm,hwparams,size,dir) == 0
)
printf(" %d\n",size);
----------------------------------------------------------------------
Raymond - 07-05-06 08:52
----------------------------------------------------------------------
alsa-lib example (i.e. pcm.c and pcm_min.c in alsa-lib-1.0.12rc1/test) can
be run after comment out the power 2 constraints and set period_bytes_min
to 4096 (i.e. period bytes = 4K page and the constraint period bytes is
unique.)
It is strange that snd_pcm_set_params() does not return error when the
parameter latency is set to any value less than the time to play a sample.
/*
if ((err =
snd_pcm_hw_constraint_pow2(runtime, 0,
SNDRV_PCM_HW_PARAM_PERIOD_BYTES)) < 0)
return err;
*/
...
if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
runtime->hw = snd_vortex_playback_hw_adb;
if (substream->stream ==
SNDRV_PCM_STREAM_PLAYBACK) {
if (VORTEX_IS_QUAD(vortex)) {
runtime->hw.channels_max = 4;
snd_pcm_hw_constraint_list(runtime, 0,
SNDRV_PCM_HW_PARAM_CHANNELS,
&hw_constraints_channels4);
}
else
runtime->hw.channels_max = 2;
}
else
runtime->hw.channels_max = 2;
runtime->hw.period_bytes_min = 4096;
};
However running another example (latency) freeze the computer immediately
without display any message.
Apply alsa-timer-irqsave.patch in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952 , running latency
display the
parameter but still freeze the computer immediately
alsa-timer-irqsave.patch only change the spin_lock and spin_unlock at the
beginning and the end of snd_timer_tasklet()
How about the spin_lock() and spin_unlock() inside the while loop in
snd_timer_tasklet() ?
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
07-01-06 04:21 Raymond Note Edited: 0010756
07-01-06 04:22 Raymond Note Edited: 0010756
07-02-06 09:24 Raymond Note Added: 0010773
07-04-06 13:37 Raymond Note Added: 0010820
07-04-06 15:17 Raymond Note Edited: 0010820
07-04-06 15:19 Raymond Note Edited: 0010820
07-05-06 08:52 Raymond Note Added: 0010832
======================================================================
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-06 7:41 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-06 7:41 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-06-2006 09:41 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 07-05-06 08:54
----------------------------------------------------------------------
alsa-lib example (i.e. pcm.c and pcm_min.c in alsa-lib-1.0.12rc1/test) can
be run after comment out the power 2 constraints and set period_bytes_min
to 4096 (i.e. period bytes = 4K page and the constraint period bytes is
unique.)
It is strange that snd_pcm_set_params() does not return error when the
parameter latency is set to any value less than the time to play a sample.
/*
if ((err =
snd_pcm_hw_constraint_pow2(runtime, 0,
SNDRV_PCM_HW_PARAM_PERIOD_BYTES)) < 0)
return err;
*/
...
if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
runtime->hw = snd_vortex_playback_hw_adb;
if (substream->stream ==
SNDRV_PCM_STREAM_PLAYBACK) {
if (VORTEX_IS_QUAD(vortex)) {
runtime->hw.channels_max = 4;
snd_pcm_hw_constraint_list(runtime, 0,
SNDRV_PCM_HW_PARAM_CHANNELS,
&hw_constraints_channels4);
}
else
runtime->hw.channels_max = 2;
}
else
runtime->hw.channels_max = 2;
runtime->hw.period_bytes_min = 4096;
};
Are there any requirement of period_bytes to run another example latency.c
?
However running another example (latency) freeze the computer immediately
without display any message.
Apply alsa-timer-irqsave.patch in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952 , running latency
display the
parameter but still freeze the computer immediately
alsa-timer-irqsave.patch only change the spin_lock and spin_unlock at the
beginning and the end of snd_timer_tasklet()
How about the spin_lock() and spin_unlock() inside the while loop in
snd_timer_tasklet() ?
----------------------------------------------------------------------
Raymond - 07-06-06 09:41
----------------------------------------------------------------------
Refer to
http://sourceforge.net/mailarchive/forum.php?thread_id=7311228&forum_id=1751
>> xxx_set_near means that the function can choose a value that is not
>> exactly what you requested. You must check samplerate after the call
>> to determine the actual sample rate.
This means the alsa-lib example codec (alsa-lib/test/pcm.c) should also
check
check whether the buffer_time or period_time after calling
snd_pcm_hw_params_set_buffer_time_near() or
snd_pcm_hw_params_set_period_time_near() to determine the actual
buffer_time or period_time.
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
07-01-06 04:21 Raymond Note Edited: 0010756
07-01-06 04:22 Raymond Note Edited: 0010756
07-02-06 09:24 Raymond Note Added: 0010773
07-04-06 13:37 Raymond Note Added: 0010820
07-04-06 15:17 Raymond Note Edited: 0010820
07-04-06 15:19 Raymond Note Edited: 0010820
07-05-06 08:52 Raymond Note Added: 0010832
07-05-06 08:54 Raymond Note Edited: 0010832
07-06-06 09:41 Raymond Note Added: 0010857
======================================================================
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-06 15:00 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-06 15:00 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-06-2006 17:00 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 07-06-06 09:43
----------------------------------------------------------------------
Refer to
http://sourceforge.net/mailarchive/forum.php?thread_id=7311228&forum_id=1751
>> xxx_set_near means that the function can choose a value that is not
>> exactly what you requested. You must check samplerate after the call
>> to determine the actual sample rate.
This means the alsa-lib example code (pcm.c and pcm_min.c) should also
need to check buffer_time or period_time after calling
snd_pcm_hw_params_set_buffer_time_near() or
snd_pcm_hw_params_set_period_time_near() to determine the actual
buffer_time or period_time.
----------------------------------------------------------------------
Raymond - 07-06-06 17:00
----------------------------------------------------------------------
>> In this case depends on the parameter order. Or a better fix maybe to
>> describe that buffer_size must be N * period_size with pow2 restriction
>> (create a list with all combinations).
The following also work, however it seem that the 64K SG buffer is just
enough for 16 streams (4K buffer each)
static unsigned int adb_buffer_sizes[16] = {
4096, 4096*2, 4096*3, 4096*4,
4096*5, 4096*6, 4096*7, 4096*8,
4096*9, 4096*10,4096*11,4096*12,
4096*13,4096*14,4096*15,4096*16,
};
snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
&hw_constraints_adb_buffer_sizes);
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
07-01-06 04:21 Raymond Note Edited: 0010756
07-01-06 04:22 Raymond Note Edited: 0010756
07-02-06 09:24 Raymond Note Added: 0010773
07-04-06 13:37 Raymond Note Added: 0010820
07-04-06 15:17 Raymond Note Edited: 0010820
07-04-06 15:19 Raymond Note Edited: 0010820
07-05-06 08:52 Raymond Note Added: 0010832
07-05-06 08:54 Raymond Note Edited: 0010832
07-06-06 09:41 Raymond Note Added: 0010857
07-06-06 09:42 Raymond Note Edited: 0010857
07-06-06 09:43 Raymond Note Edited: 0010857
07-06-06 17:00 Raymond Note Added: 0010868
======================================================================
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-13 2:27 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-13 2:27 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-13-2006 04:27 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 07-06-06 09:43
----------------------------------------------------------------------
Refer to
http://sourceforge.net/mailarchive/forum.php?thread_id=7311228&forum_id=1751
>> xxx_set_near means that the function can choose a value that is not
>> exactly what you requested. You must check samplerate after the call
>> to determine the actual sample rate.
This means the alsa-lib example code (pcm.c and pcm_min.c) should also
need to check buffer_time or period_time after calling
snd_pcm_hw_params_set_buffer_time_near() or
snd_pcm_hw_params_set_period_time_near() to determine the actual
buffer_time or period_time.
----------------------------------------------------------------------
Raymond - 07-13-06 04:27
----------------------------------------------------------------------
If the driver has one and only one period bytes,
snd_pcm_hw_params_set_buffer_time_near() or
snd_pcm_hw_params_set_period_time_near() will not fail.
It seem that the parameter latency in snd_pcm_set_params() is quite
misleading.
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
07-01-06 04:21 Raymond Note Edited: 0010756
07-01-06 04:22 Raymond Note Edited: 0010756
07-02-06 09:24 Raymond Note Added: 0010773
07-04-06 13:37 Raymond Note Added: 0010820
07-04-06 15:17 Raymond Note Edited: 0010820
07-04-06 15:19 Raymond Note Edited: 0010820
07-05-06 08:52 Raymond Note Added: 0010832
07-05-06 08:54 Raymond Note Edited: 0010832
07-06-06 09:41 Raymond Note Added: 0010857
07-06-06 09:42 Raymond Note Edited: 0010857
07-06-06 09:43 Raymond Note Edited: 0010857
07-06-06 17:00 Raymond Note Added: 0010868
07-08-06 05:08 Raymond Issue Monitored: gineera
07-09-06 05:51 Raymond Note Deleted: 0010868
07-13-06 04:27 Raymond Note Added: 0010989
======================================================================
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-14 1:07 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-14 1:07 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-14-2006 03:07 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 07-13-06 04:27
----------------------------------------------------------------------
If the driver has one and only one period bytes,
snd_pcm_hw_params_set_buffer_time_near() or
snd_pcm_hw_params_set_period_time_near() will not fail.
It seem that the parameter latency in snd_pcm_set_params() is quite
misleading.
----------------------------------------------------------------------
Raymond - 07-14-06 03:07
----------------------------------------------------------------------
There is a typo in pcm_min.c
1,
48000,
1,
500000)) < 0) { /* 0.5sec */
- printf("Playback open error: %s\n", snd_strerror(err));
+ printf("Playback set_params error: %s\n", snd_strerror(err));
exit(EXIT_FAILURE);
}
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
07-01-06 04:21 Raymond Note Edited: 0010756
07-01-06 04:22 Raymond Note Edited: 0010756
07-02-06 09:24 Raymond Note Added: 0010773
07-04-06 13:37 Raymond Note Added: 0010820
07-04-06 15:17 Raymond Note Edited: 0010820
07-04-06 15:19 Raymond Note Edited: 0010820
07-05-06 08:52 Raymond Note Added: 0010832
07-05-06 08:54 Raymond Note Edited: 0010832
07-06-06 09:41 Raymond Note Added: 0010857
07-06-06 09:42 Raymond Note Edited: 0010857
07-06-06 09:43 Raymond Note Edited: 0010857
07-06-06 17:00 Raymond Note Added: 0010868
07-08-06 05:08 Raymond Issue Monitored: gineera
07-09-06 05:51 Raymond Note Deleted: 0010868
07-13-06 04:27 Raymond Note Added: 0010989
07-14-06 03:07 Raymond Note Added: 0010997
======================================================================
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-20 7:29 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-20 7:29 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-20-2006 09:29 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 07-14-06 03:07
----------------------------------------------------------------------
There is a typo in pcm_min.c
1,
48000,
1,
500000)) < 0) { /* 0.5sec */
- printf("Playback open error: %s\n", snd_strerror(err));
+ printf("Playback set_params error: %s\n", snd_strerror(err));
exit(EXIT_FAILURE);
}
----------------------------------------------------------------------
Raymond - 07-20-06 09:29
----------------------------------------------------------------------
Refer to
http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html#ga64
latency required overall latency in us (0 = optimum latency for players)
What is the meaning of optimum latency ?
Do it means no xrun ?
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
07-01-06 04:21 Raymond Note Edited: 0010756
07-01-06 04:22 Raymond Note Edited: 0010756
07-02-06 09:24 Raymond Note Added: 0010773
07-04-06 13:37 Raymond Note Added: 0010820
07-04-06 15:17 Raymond Note Edited: 0010820
07-04-06 15:19 Raymond Note Edited: 0010820
07-05-06 08:52 Raymond Note Added: 0010832
07-05-06 08:54 Raymond Note Edited: 0010832
07-06-06 09:41 Raymond Note Added: 0010857
07-06-06 09:42 Raymond Note Edited: 0010857
07-06-06 09:43 Raymond Note Edited: 0010857
07-06-06 17:00 Raymond Note Added: 0010868
07-08-06 05:08 Raymond Issue Monitored: gineera
07-09-06 05:51 Raymond Note Deleted: 0010868
07-13-06 04:27 Raymond Note Added: 0010989
07-14-06 03:07 Raymond Note Added: 0010997
07-20-06 09:29 Raymond Note Added: 0011115
======================================================================
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 34+ messages in thread
* [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint
@ 2006-07-22 0:34 bugtrack
0 siblings, 0 replies; 34+ messages in thread
From: bugtrack @ 2006-07-22 0:34 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724>
======================================================================
Reported By: Raymond
Assigned To: mjander
======================================================================
Project: ALSA - driver
Issue ID: 1724
Category: PCI - au88x0
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
Distribution:
Kernel Version:
======================================================================
Date Submitted: 01-07-2006 05:10 CET
Last Modified: 07-22-2006 02:34 CEST
======================================================================
Summary: au88x0 PCM configuration problem - buffer_size
constraint
Description:
/cvs/alsa-lib/test/pcm_min
ALSA lib pcm.c:7127:(snd_pcm_set_params) Unable to set buffer time
(latency) 500000 for PLAYBACK: Invalid argument
Playback open error: Invalid argument
sound card is au8830, the au88x0 driver only accept period size in power
of 2.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001766 jackd : ALSA: cannot set period size to...
======================================================================
----------------------------------------------------------------------
Raymond - 07-20-06 09:29
----------------------------------------------------------------------
Refer to
http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html#ga64
latency required overall latency in us (0 = optimum latency for players)
What is the meaning of optimum latency ?
Do it means no xrun ?
----------------------------------------------------------------------
Raymond - 07-22-06 02:34
----------------------------------------------------------------------
I modified the dummy driver to emulate au8830 for those who does not have
the hardware to test snd_pcm_set_params() , alsa-lib/test/pcm.c and
alsa-lib/test/pcm_min.c or
Issue History
Date Modified Username Field Change
======================================================================
01-07-06 05:10 Raymond New Issue
01-09-06 15:19 Raymond Note Added: 0007537
01-19-06 15:04 Raymond Note Deleted: 0007537
01-19-06 15:36 Raymond Note Added: 0007721
01-28-06 07:58 Raymond Note Added: 0007828
01-28-06 07:58 Raymond Note Deleted: 0007721
01-30-06 18:46 Raymond Note Added: 0007840
01-31-06 03:15 Raymond Note Added: 0007844
01-31-06 06:41 Raymond Note Edited: 0007840
01-31-06 07:03 Raymond Note Edited: 0007840
01-31-06 07:08 Raymond Note Edited: 0007840
01-31-06 07:11 Raymond Note Edited: 0007840
01-31-06 08:31 Raymond Note Edited: 0007840
01-31-06 09:48 Raymond Note Edited: 0007844
01-31-06 10:19 perex Note Added: 0007845
01-31-06 10:26 perex Note Added: 0007847
01-31-06 10:26 perex Note Edited: 0007847
01-31-06 10:48 perex Project ALSA - lib => ALSA -
driver
01-31-06 10:49 perex Category 0_general => PCI - au88x0
01-31-06 10:49 perex Summary simple PCM helper
function => au88x0 PCM configuration problem - buffer_size constraint
01-31-06 11:06 Raymond Note Added: 0007848
01-31-06 13:48 perex Status new => assigned
01-31-06 13:48 perex Assigned To => mjander
01-31-06 13:49 perex Relationship added related to 0001766
01-31-06 15:59 Raymond Note Added: 0007852
02-01-06 07:35 perex Note Added: 0007857
02-01-06 10:32 Raymond Note Added: 0007858
02-01-06 10:37 Raymond Note Edited: 0007848
02-01-06 17:15 Raymond Note Edited: 0007844
02-01-06 17:20 Raymond Note Added: 0007860
02-02-06 10:23 Raymond Note Added: 0007874
02-02-06 11:10 Raymond Note Edited: 0007874
02-02-06 15:48 Raymond Note Edited: 0007874
02-03-06 14:26 Raymond Note Added: 0007897
02-04-06 02:46 Raymond Note Edited: 0007874
02-04-06 02:52 Raymond Note Edited: 0007858
02-04-06 02:56 Raymond Note Edited: 0007858
02-05-06 16:39 Raymond Note Added: 0007939
02-05-06 16:48 Raymond Note Added: 0007940
02-06-06 04:40 Raymond Note Deleted: 0007939
02-06-06 06:15 Raymond Note Edited: 0007940
02-07-06 07:35 Raymond Note Added: 0007954
02-13-06 03:11 Raymond Note Added: 0008036
02-13-06 08:52 mjander Note Added: 0008039
02-13-06 16:57 Raymond Note Added: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-13-06 17:02 Raymond Note Edited: 0008055
02-16-06 04:01 Raymond Note Added: 0008083
02-19-06 06:31 Raymond Note Added: 0008130
02-19-06 06:39 Raymond Note Edited: 0008130
03-07-06 11:08 Raymond Note Added: 0008362
03-07-06 14:18 Raymond Note Edited: 0007844
03-24-06 10:51 Raymond File Added: snd_pcm_set_params.patch
03-30-06 18:35 Raymond Note Added: 0009036
05-22-06 15:11 Raymond Note Deleted: 0008055
05-22-06 15:12 Raymond Note Deleted: 0008362
05-22-06 15:13 Raymond Note Deleted: 0008130
05-22-06 15:14 Raymond Note Deleted: 0008083
05-22-06 15:15 Raymond Note Deleted: 0009036
05-22-06 15:16 Raymond Note Deleted: 0007860
05-22-06 15:17 Raymond Note Deleted: 0007848
05-22-06 15:20 Raymond Note Deleted: 0007940
05-22-06 15:24 Raymond Note Deleted: 0007954
05-22-06 15:48 Raymond Note Added: 0009912
05-30-06 09:36 Raymond Note Added: 0010017
05-30-06 09:38 Raymond Note Edited: 0010017
05-30-06 18:31 rlrevell Note Added: 0010020
06-30-06 13:49 Raymond File Added: test.c
06-30-06 13:53 Raymond Note Added: 0010734
06-30-06 13:55 Raymond Note Edited: 0010734
07-01-06 04:20 Raymond Note Added: 0010756
07-01-06 04:21 Raymond Note Edited: 0010756
07-01-06 04:22 Raymond Note Edited: 0010756
07-02-06 09:24 Raymond Note Added: 0010773
07-04-06 13:37 Raymond Note Added: 0010820
07-04-06 15:17 Raymond Note Edited: 0010820
07-04-06 15:19 Raymond Note Edited: 0010820
07-05-06 08:52 Raymond Note Added: 0010832
07-05-06 08:54 Raymond Note Edited: 0010832
07-06-06 09:41 Raymond Note Added: 0010857
07-06-06 09:42 Raymond Note Edited: 0010857
07-06-06 09:43 Raymond Note Edited: 0010857
07-06-06 17:00 Raymond Note Added: 0010868
07-08-06 05:08 Raymond Issue Monitored: gineera
07-09-06 05:51 Raymond Note Deleted: 0010868
07-13-06 04:27 Raymond Note Added: 0010989
07-14-06 03:07 Raymond Note Added: 0010997
07-20-06 09:29 Raymond Note Added: 0011115
07-22-06 02:30 Raymond File Added: dummy.c
07-22-06 02:34 Raymond Note Added: 0011158
======================================================================
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 34+ messages in thread
end of thread, other threads:[~2006-07-22 0:34 UTC | newest]
Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-13 15:57 [ALSA - driver 0001724]: au88x0 PCM configuration problem - buffer_size constraint bugtrack
-- strict thread matches above, loose matches on Subject: below --
2006-07-22 0:34 bugtrack
2006-07-20 7:29 bugtrack
2006-07-14 1:07 bugtrack
2006-07-13 2:27 bugtrack
2006-07-06 15:00 bugtrack
2006-07-06 7:41 bugtrack
2006-07-05 6:52 bugtrack
2006-07-04 11:37 bugtrack
2006-07-02 7:24 bugtrack
2006-07-01 2:20 bugtrack
2006-06-30 11:53 bugtrack
2006-05-30 16:31 bugtrack
2006-05-30 7:36 bugtrack
2006-05-22 13:48 bugtrack
2006-03-30 16:35 bugtrack
2006-03-07 10:08 bugtrack
2006-02-19 5:31 bugtrack
2006-02-16 3:01 bugtrack
2006-02-13 7:52 bugtrack
2006-02-13 2:11 bugtrack
2006-02-07 6:35 bugtrack
2006-02-05 15:48 bugtrack
2006-02-05 15:39 bugtrack
2006-02-03 13:26 bugtrack
2006-02-02 9:23 bugtrack
2006-02-01 16:20 bugtrack
2006-02-01 9:32 bugtrack
2006-02-01 6:35 bugtrack
2006-01-31 14:59 bugtrack
2006-01-31 12:49 bugtrack
2006-01-31 12:48 bugtrack
2006-01-31 10:06 bugtrack
2006-01-31 9:49 bugtrack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox