: Speaker test hangs
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1304>
======================================================================
Reported By: herby
Assigned To:
======================================================================
Project: ALSA - utils Issue ID: 1304 Category: speakertest Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 08-03-2005 02:46 CEST Last Modified: 08-12-2005 15:47 CEST
======================================================================
Summary: Speaker test hangs
Description:
After applying the patch to the library that took out the check for a proper "start_threshold" (file .../alsa-lib/src/pcm/pcm.c around lines 834 or so), I attempted to try a speaker test again. It hung right after outputting "0 - Front Left". I did an strace and the results are included in the file attached. I attempted to vary the sample rate (to 44.1 kHz) with little luck. The wierd thing is that I can execute 'aplay' (with the default device) and get a '.wav' file to play nicely. I can even get a multi-channel (4 to be exact) ".wav" file to go thru 'aplay'. Why speaker-test doesn't work is beyond me. The problem is that I appear to use similar techniques in my own programming as speaker-test, and my program doesen't do that well. Being as how speaker-test IS part of ALSA, I thought I would submit the bug report against it.
If other tests need be preformed, I'd be VERY happy to do them.
======================================================================
----------------------------------------------------------------------
herby - 08-12-05 08:12
----------------------------------------------------------------------
More info:
When speaker-test stalls (on the Revo 7.1) no interrupts get generated (from /proc/interrupts). When I use 'aplay' (which generates sound!), interrupts get generated (go figure). When I use the VIA 8233 (motherboard audio) speaker-test all goes well. It seems that there is something wierd in the buffer counts, or something on the Revo 7.1 card. Here is some data from /proc/asound/card0/pcm0p/sub0 that might help:
[tsw sub0]$ more *
::::::::::::::hw_params
::::::::::::::
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)period_size: 3764buffer_size: 15052tick_time: 1000
::::::::::::::
info
::::::::::::::
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: ICE1724
name: ICE1724
subname: subdevice #0
class: 0
subclass: 0subdevices_count: 1subdevices_avail: 0
::::::::::::::
prealloc
::::::::::::::
256
::::::::::::::
status
::::::::::::::
state: PREPAREDtrigger_time: 0.000000000
tstamp : 1123826957.287182000
delay : 0
avail : 3760avail_max : 0
-----hw_ptr : 0appl_ptr : 11292
::::::::::::::sw_params
::::::::::::::tstamp_mode: NONEperiod_step: 1sleep_min: 0avail_min: 3764xfer_align: 1start_threshold: 15052stop_threshold: 15052silence_threshold: 0silence_size: 0
boundary: 1972895744
(this was taken while the speaker-test was stalled out)
Hope this helps!
----------------------------------------------------------------------
tiwai - 08-12-05 15:47
----------------------------------------------------------------------
ICE1724 has the restriction regarding period and buffer size alignment. It's aligned to 32byte.
Issue History
Date Modified Username Field Change
======================================================================
08-03-05 02:46 herby New Issue 08-03-05 02:46 herby File Added: speaker-trace 08-03-05 12:18 tiwai Note Added: 0005621 08-04-05 03:21 herby Note Added: 0005638 08-04-05 14:10 jcdutton Note Added: 0005648 08-04-05 20:21 herby Note Added: 0005652 08-09-05 06:58 herby Note Added: 0005718 08-12-05 08:12 herby Note Added: 0005765 08-12-05 15:47 tiwai Note Added: 0005773
======================================================================
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf