Skip to contentSkip to conversation

: error recovery when the no of available src is not enough (FATAL: ResManager: resource type 1 exhaust)

ALSA - driver 0002228 [email protected] 1 participant 1 message Jun 26, 2006

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2228>
======================================================================

Reported By:                Raymond
Assigned To:                mjander
======================================================================
Project:                    ALSA - driver
Issue ID:                   2228
Category:                   PCI - au88x0
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             06-24-2006 05:37 CEST
Last Modified:              06-26-2006 14:20 CEST

======================================================================
Summary: error recovery when the no of available src is not
enough (FATAL: ResManager: resource type 1 exhaust) Description:
This is simulated by reducing the no of available SRC to 3.

static int __devinit vortex_core_init(vortex_t * vortex) {
+ vortex->fixed_res[VORTEX_RESOURCE_SRC] = 0x0000fff8;

aplay out1lq.wav
Playing WAVE 'out1lq.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Channels 4

aplay: set_params:962: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 64
CHANNELS: 4
RATE: 22050
PERIOD_TIME: (23219 23220)
PERIOD_SIZE: 512
PERIOD_BYTES: 4096
PERIODS: 16
BUFFER_TIME: (371519 371520)
BUFFER_SIZE: 8192
BUFFER_BYTES: 65536
TICK_TIME: 10000

dmesg
vortex: FATAL: ResManager: resource type 1 exhausted.

aplay outls.wav
Playing WAVE 'outls.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo

dmesg
vortex_adb_delroutes: route not found! 0x2060
vortex_adb_delroutes: route not found! 0x2161

It seem that the driver need to check the no of available SRC is enough before the SRC are checked out one by one from ResManager, the driver seem unable to perform error recovery

======================================================================

----------------------------------------------------------------------
Raymond - 06-26-06 14:20
----------------------------------------------------------------------
When the number of available SRC is less than those expected by an OSS application, the result is FATAL as the OSS application loop forever

mplayer -ao oss *.wav
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le... [AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le... [AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le... [AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le... [AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le... [AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le... [AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le... [AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...

Issue History
Date Modified Username Field Change
======================================================================
06-24-06 05:37 Raymond New Issue
06-26-06 14:20 Raymond Note Added: 0010534
======================================================================

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