Hi list,
I've got an athlon64 processor running on 32 bit debian unstable
distribution. The motherboard is a via8237 based Abit AV8, with a
Realtek ALC65(8?) sound chip as I understand.
I only use the audiochip to push pcm via spdif to my amplifier. And
everything used to work fine (i.e. different sampling frequencies)
previously before I did a 'apt-get dist-upgrade' a few days ago (the
first one in about half a year). And the following is what's happening
currently when playing a 44.1 kHz track taken from a CD:
bash:# time mplayer -ao alsa:device=spdif audiodump.wav
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 31, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Playing audiodump.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
Audio output truncated at end.4:18.0) 0.1%
A: 257.6 (04:17.5) of 258.0 (04:18.0) 0.1%
Exiting... (End of file)
real 3m58.463s
user 0m0.112s
sys 0m0.086s
bash:# time aplay -D spdif audiodump.wav
Playing WAVE 'audiodump.wav' : Signed 16 bit Little Endian, Rate 44100
Hz, Stereo
real 3m57.400s
user 0m0.023s
sys 0m0.103s
Let's do a simple calculation: the length of the song (according to the
cd cover) is 4:18.
(4*60 + 18) * 41.1 / 48 ~= 237 -> 3:57
It's pretty obvious from the mplayer case, that somewhere the stream is
interpreted as 48kHZ.
The odd thing is, that this does not seem to be a driver issue, since
I'm running the same kernel (custom built 2.6.17) as before, when
everything was still working. My userspace alsa version as of now is 1.0.13:
bash:# apt-cache show libasound2
Package: libasound2
Priority: optional
Section: libs
Installed-Size: 1156
Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@xxxxxxxxxxxxxxxxxxxxxxx>
Architecture: i386
Source: alsa-lib
Version: 1.0.13-1
Depends: libc6 (>= 2.3.6-6)
Suggests: libasound2-plugins (>= 1.0.9)
Conflicts: libasound2-plugins (<< 1.0.9)
Filename: pool/main/a/alsa-lib/libasound2_1.0.13-1_i386.deb
Size: 346370
MD5sum: b1441694ad8ec49c7e411c8a1d2b528a
SHA1: c5191738235d13544a095bb76fa8a7a3de646a26
SHA256: fc14c9487a48a30ebc438a7c97fdf270c777be326128705c347335936bc138d6
Description: ALSA library
This package contains the ALSA library and its standard
plugins.
.
ALSA is the Advanced Linux Sound Architecture.
Tag: devel::library, role::sw:shlib, works-with::audio
I've attached the contents of 'aplay -l' and 'aplay -L' to this mail,
and I kindly ask if one of you guys could help me out.
Thanks, Juhis
**** List of PLAYBACK Hardware Devices ****
card 0: V8237 [VIA 8237], device 0: VIA 8237 [VIA 8237]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: V8237 [VIA 8237], device 1: VIA 8237 [VIA 8237]
Subdevices: 1/1
Subdevice #0: subdevice #0
PCM list:
hw {
@args.0 CARD
@args.1 DEV
@args.2 SUBDEV
@args.CARD {
type string
default {
@func getenv
vars {
0 ALSA_PCM_CARD
1 ALSA_CARD
}
default {
@func refer
name 'defaults.pcm.card'
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars {
0 ALSA_PCM_DEVICE
}
default {
@func refer
name 'defaults.pcm.device'
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name 'defaults.pcm.subdevice'
}
}
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
plughw {
@args.0 CARD
@args.1 DEV
@args.2 SUBDEV
@args.CARD {
type string
default {
@func getenv
vars {
0 ALSA_PCM_CARD
1 ALSA_CARD
}
default {
@func refer
name 'defaults.pcm.card'
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars {
0 ALSA_PCM_DEVICE
}
default {
@func refer
name 'defaults.pcm.device'
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name 'defaults.pcm.subdevice'
}
}
type plug
slave.pcm {
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
}
plug {
@args.0 SLAVE
@args.SLAVE {
type string
}
type plug
slave.pcm $SLAVE
}
shm {
@args.0 SOCKET
@args.1 PCM
@args.SOCKET {
type string
}
@args.PCM {
type string
}
type shm
server $SOCKET
pcm $PCM
}
tee {
@args.0 SLAVE
@args.1 FILE
@args.2 FORMAT
@args.SLAVE {
type string
}
@args.FILE {
type string
}
@args.FORMAT {
type string
default raw
}
type file
slave.pcm $SLAVE
file $FILE
format $FORMAT
}
file {
@args.0 FILE
@args.1 FORMAT
@args.FILE {
type string
}
@args.FORMAT {
type string
default raw
}
type file
slave.pcm null
file $FILE
format $FORMAT
}
null {
type null
}
cards 'cards.pcm'
front 'cards.pcm.front'
rear 'cards.pcm.rear'
center_lfe 'cards.pcm.center_lfe'
side 'cards.pcm.side'
surround40 'cards.pcm.surround40'
surround41 'cards.pcm.surround41'
surround50 'cards.pcm.surround50'
surround51 'cards.pcm.surround51'
surround71 'cards.pcm.surround71'
iec958 'cards.pcm.iec958'
spdif 'cards.pcm.iec958'
modem 'cards.pcm.modem'
phoneline 'cards.pcm.phoneline'
default 'cards.pcm.default'
dmix 'cards.pcm.dmix'
dsnoop 'cards.pcm.dsnoop'
-------------------------------------------------------------------------
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
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user