Skip to contentSkip to conversation

: Doesn't accept all sample rates, when capturing sound in S16_LE or S16_BE format.

ALSA - driver 0001004 [email protected] 1 participant 1 message Mar 22, 2005

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=1004>
======================================================================
Reported By: hyp
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   1004
Category:                   PCI - intel8x0
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               Slackware
Kernel Version:             2.4.29
======================================================================
Date Submitted:             03-21-2005 19:26 CET
Last Modified:              03-22-2005 09:43 CET

======================================================================
Summary: Doesn't accept all sample rates, when capturing
sound in S16_LE or S16_BE format.
Description:
When I request to capture sound with: 8000Hz, S16 LE, stereo the ioctl returns me that the accepted values are the same as requested. But the whole read()-ed data is captured with 44100 or 48000Hz (I don't know the right value, I guess it by ear), independendly from the requested sample rate.

I tried to capture sound via sox's recorder. For example with command:

# rec -c 1 -d /dev/dsp0 -f s -r 8000 p.snd
When I started to play this file, I noticed that the file is captured 
with 44100 or 48000Hz sample rate, but in the .snd header are written
that the file is recorder with 8000Hz sample rate (as I have requested 
it). If I set the sample rate to 48000 and play the tune, it sounds 
good. Also this problem can be seen with my own oss recorder.

When I'm using anouther sound card, for example Creative Ensoniq 1371 or Creative EMU10K1 everything is good!

best regards.
======================================================================

----------------------------------------------------------------------
hyp - 03-21-05 19:30
----------------------------------------------------------------------
ups...
Intel ICH5 with Analog Devices AD1985

----------------------------------------------------------------------
hyp - 03-22-05 09:43
----------------------------------------------------------------------
I'm sorry for my confusion!!!
This is a side effect from an improper loading of snd-ca0106, which card doesn't exist.
So this post can be closed...

Issue History
Date Modified Username Field Change
======================================================================

03-21-05 19:26 hyp            New Issue                                    
03-21-05 19:26 hyp            Distribution              => Slackware       
03-21-05 19:26 hyp            Kernel Version            => 2.4.29          
03-21-05 19:30 hyp            Note Added: 0004121                          
03-22-05 09:43 hyp            Note Added: 0004123                          

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

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click