plug:dmix slows playback
A message that is not in the archive (sent off-list or not yet received): 000001c9eb46$24a60d30$6df22790$@[email protected]
Quoted 6 lines · Steve Langstaff
Hi All.
I've got an installation of ALSA (1.0.19 on an embedded device) where using plug and dmix as my output device slows down playback - voices and tones are lower in pitch and the playback takes longer than when not using plug:dmix, e.g.
Does 48000Hz 2 channel source work OK with direct device (without dmix) for your hardware?
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
Quoted 9 lines
From: [email protected] [mailto:alsa-devel- [email protected]] On Behalf Of Jaroslav Kysela
Quoted 3 lines · Steve Langstaff
Hi All.
I've got an installation of ALSA (1.0.19 on an embedded device) where
using
Quoted 8 lines
Quoted 1 line
plug and dmix as my output device slows down playback - voices and
tones are
Quoted 1 line
lower in pitch and the playback takes longer than when not using
plug:dmix,
Quoted 1 line
e.g.
Does 48000Hz 2 channel source work OK with direct device (without dmix) for your hardware?
Yes, I converted the original sample to 48000 Hz, Stereo, and it sounds OK when I don't use dmix.
/mnt # time aplay -v ignition48000s.wav
Playing WAVE 'ignition48000s.wav' : Unsigned 8 bit, Rate 48000 Hz, Stereo Plug PCM: Linear conversion PCM (S16_LE)
Its setup is:
stream : PLAYBACK access : RW_INTERLEAVED format : U8 subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 8 buffer_size : 24480 period_size : 2040 period_time : 42500 tstamp_mode : NONE period_step : 1 avail_min : 2040
period_event : 0
start_threshold : 24480
stop_threshold : 24480
silence_threshold: 0
silence_size : 0
boundary : 1604321280
Slave: Hardware PCM card 0 'LM4549' device 0 subdevice 0 Its setup is:
stream : PLAYBACK access : MMAP_INTERLEAVED format : S16_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 16 buffer_size : 24480 period_size : 2040 period_time : 42500 tstamp_mode : NONE period_step : 1 avail_min : 2040 period_event : 0 start_threshold : 24480 stop_threshold : 24480 silence_threshold: 0 silence_size : 0 boundary : 1604321280 appl_ptr : 0 hw_ptr : 0 real 0m 3.02s user 0m 0.07s sys 0m 0.02s
A message that is not in the archive (sent off-list or not yet received): 000101c9eb48$8e0a9280$aa1fb780$@[email protected]
Quoted 22 lines · Steve Langstaff
Quoted 9 lines
From: [email protected] [mailto:alsa-devel- [email protected]] On Behalf Of Jaroslav Kysela
Quoted 3 lines · Steve Langstaff
Hi All.
I've got an installation of ALSA (1.0.19 on an embedded device) where
using
Quoted 8 lines
Quoted 1 line
plug and dmix as my output device slows down playback - voices and
tones are
Quoted 1 line
lower in pitch and the playback takes longer than when not using
plug:dmix,
Quoted 1 line
e.g.
Does 48000Hz 2 channel source work OK with direct device (without dmix) for your hardware?
Yes, I converted the original sample to 48000 Hz, Stereo, and it sounds OK when I don't use dmix.
/mnt # time aplay -v ignition48000s.wav
....
Quoted 3 lines
Slave: Hardware PCM card 0 'LM4549' device 0 subdevice 0
msbits : 16
If I remember correctly, this value was 32 in your dmix setup. Could you try command:
aplay -D"plug:'dmix:FORMAT=S16_LE'" <filename>
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
Quoted 5 lines
From: [email protected] [mailto:alsa-devel- [email protected]] On Behalf Of Jaroslav Kysela
On Fri, 12 Jun 2009, Steve Langstaff wrote:
Quoted 8 lines
Quoted 3 lines
Slave: Hardware PCM card 0 'LM4549' device 0 subdevice 0
msbits : 16
If I remember correctly, this value was 32 in your dmix setup. Could you try command:
aplay -D"plug:'dmix:FORMAT=S16_LE'" <filename>
Yes, that works fine - is there something wrong with my configuration do you think?
A message that is not in the archive (sent off-list or not yet received): 000501c9eb49$d2458080$76d08180$@[email protected]
Quoted 9 lines · Steve Langstaff
Quoted 9 lines
From: [email protected] [mailto:alsa-devel- [email protected]] On Behalf Of Jaroslav Kysela
Quoted 3 lines · Steve Langstaff
Slave: Hardware PCM card 0 'LM4549' device 0 subdevice 0
msbits : 16
Quoted 7 lines
Quoted 4 lines
If I remember correctly, this value was 32 in your dmix setup. Could you try command:
aplay -D"plug:'dmix:FORMAT=S16_LE'" <filename>
Yes, that works fine - is there something wrong with my configuration do you think?
It seems that 32-bit samples are not handled correctly in driver. What's your hardware? Output from alsa-info.sh script might be helpful for identification.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
Quoted 18 lines
From: [email protected] [mailto:alsa-devel- [email protected]] On Behalf Of Jaroslav Kysela
Quoted 14 lines · Steve Langstaff
Quoted 13 lines
From: [email protected] [mailto:alsa-devel- [email protected]] On Behalf Of Jaroslav Kysela
Quoted 3 lines · Steve Langstaff
Slave: Hardware PCM card 0 'LM4549' device 0 subdevice 0
msbits : 16
If I remember correctly, this value was 32 in your dmix setup. Could you try command:
aplay -D"plug:'dmix:FORMAT=S16_LE'" <filename>
Quoted 8 lines
Quoted 1 line
Yes, that works fine - is there something wrong with my configuration
do you
Quoted 1 line
think?
It seems that 32-bit samples are not handled correctly in driver. What's your hardware? Output from
alsa-info.shscript might be helpful for
identification.
I don't have alsa-info.sh installed, but here is the hardware info that I can glean...
~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: LM4549 [LM4549], device 0: PXA2xx-PCM []
Subdevices: 1/1
Subdevice #0: subdevice #0
~ # lsmod |fgrep snd
snd_page_alloc 6684 1 snd_pcm soundcore 6844 1 snd snd 51952 4 snd_pxa2xx_ac97,snd_ac97_codec,snd_pcm,snd_timer snd_timer 21340 1 snd_pcm snd_pcm 73449 4 snd_pxa2xx_ac97,snd_ac97_codec,snd_pxa2xx_pcm,snd_pxa2xx_lib snd_pxa2xx_lib 10748 2 snd_pxa2xx_ac97,snd_pxa2xx_pcm snd_pxa2xx_pcm 2536 1 snd_pxa2xx_ac97 ac97_bus 1716 1 snd_ac97_codec snd_ac97_codec 105828 1 snd_pxa2xx_ac97 snd_pxa2xx_ac97 4236 0