From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugtrack@alsa-project.org Subject: [ALSA - utils 0001304]: Speaker test hangs Date: Tue, 9 Aug 2005 06:58:49 +0200 Message-ID: <58a49ccbf6276b480e154bcf2927459c@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id ECE7E1CB for ; Tue, 9 Aug 2005 06:58:49 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== 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-09-2005 06:58 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-04-05 20:21 ---------------------------------------------------------------------- It seems that the problem is only on the Revolution 7.1 card, since it hangs, and the motherboard audio (Via 8235) can generate the audio. Results of the tests: <<>> [tsw ~]$ speaker-test -c2 -Dplug:front:0 speaker-test 0.0.8 Playback device is plug:front:0 Stream parameters are 48000Hz, S16_LE, 2 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 16 to 32768 Period size range from 8 to 16384 Periods = 4 Buffer time size 2525 To choose buffer_size = 15052 To choose period_size = 3763 was set period_size = 3764 was set buffer_size = 15052 0 - Front Left <<>> <<>> [tsw ~]$ speaker-test -c2 -Dplug:front:1 speaker-test 0.0.8 Playback device is plug:front:1 Stream parameters are 48000Hz, S16_LE, 2 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 16 to 16384 Period size range from 8 to 8192 Periods = 4 Buffer time size 2525 To choose buffer_size = 15052 To choose period_size = 3763 was set period_size = 3763 was set buffer_size = 15052 0 - Front Left 1 - Front Right Time per period = 5.649717 0 - Front Left 1 - Front Right <<