From: Glenn Maynard <g_sf@zewt.org>
To: alsa-devel@lists.sourceforge.net
Subject: CS46xx oddness
Date: Wed, 24 Dec 2003 04:42:13 -0500 [thread overview]
Message-ID: <20031224094213.GE25270@zewt.org> (raw)
(2.6.0 test11)
I'm seeing something odd with a CS46xx chip: if I don't set a buffer
size, or if I set it to 4k or 8k, then sound isn't played. The buffer
fills up, and the device stays in SND_PCM_STATE_RUNNING. If I set it
to 16k or 32k, it works.
I'm testing remotely on a user's machine, so I can't do much to
troubleshoot this (I'm not going to mess with his kernel). In case
anyone's feeling brave, the relevant code is at
http://cvs.sf.net/viewcvs.py/*checkout*/stepmania/stepmania/src/arch/Sound/ALSA9Helpers.cpp?rev=1.12
For reference, samplerate is 44100, channels is 2, and all dsnd* are
just pointers to snd*. Sorry for not making a test case; it's 4am, so
I can't do it tonight, and this is a drop-in on IRC so I may not get
access to this machine again. If nobody feels like looking at that
at all, I'll understand. :)
If it helps, here's /proc/asound/card0/pcm0p/sub0/* with an 8k, full buffer:
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 8
buffer_size: 8192
tick_time: 1000
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: CS46xx
name: CS46xx
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 31
subdevices_avail: 30
64
state: RUNNING
trigger_time: 1072258017.688694000
tstamp : 1072258028.517208000
delay : 512
avail : 7680
avail_max : 7680
-----
hw_ptr : 0
appl_ptr : 512
tstamp_mode: NONE
period_step: 1
sleep_min: 0
avail_min: 8
xfer_align: 8
start_threshold: 0
stop_threshold: 1073741824
silence_threshold: 0
silence_size: 0
boundary: 1073741824
--
Glenn Maynard
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
next reply other threads:[~2003-12-24 9:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-24 9:42 Glenn Maynard [this message]
2003-12-24 15:38 ` CS46xx oddness Eloy A. Paris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031224094213.GE25270@zewt.org \
--to=g_sf@zewt.org \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.