All of lore.kernel.org
 help / color / mirror / Atom feed
* PCM format restrict dilema
@ 2003-09-16 14:19 Manuel Jander
  2003-09-16 16:40 ` Takashi Iwai
  0 siblings, 1 reply; 15+ messages in thread
From: Manuel Jander @ 2003-09-16 14:19 UTC (permalink / raw)
  To: Alsa Devel list

Hello,

I have the following dilema. The Aureal Vortex DMA engine supports
upto 4 hardware pages, but they have to be frame aligned. The current
driver also needs them to be of the same size. To archive this, i added
the following code in the pcm "open" function.

/* Force equal size periods */
if ((err = snd_pcm_hw_constraint_integer(runtime,
SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
return err;
/* Force DMA 32 bit alignment */
if ((err = snd_pcm_hw_constraint_step(runtime, 0,
SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4)) < 0)
return err;

Now PCM works correctly, but some apps, like aplay fail to play some
formats, because they get their period size requirementes rejected, and
they just give up instead of trying other period sizes. Since aplay uses
a time based criteria for the period sizes instead of "sane" values, the
period sizes are very odd.

The question is, should i blame aplay or try to implement some
workaround in the Aureal driver ??

Best Regards.

Manuel Jander



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-09-17 14:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-16 14:19 PCM format restrict dilema Manuel Jander
2003-09-16 16:40 ` Takashi Iwai
2003-09-16 18:10   ` James Courtier-Dutton
2003-09-16 18:47     ` Paul Davis
2003-09-16 19:23       ` James Courtier-Dutton
2003-09-16 20:11         ` Paul Davis
2003-09-17  7:05         ` Jaroslav Kysela
2003-09-17 13:48           ` James Courtier-Dutton
2003-09-17 14:20             ` Jaroslav Kysela
2003-09-17 14:22             ` Paul Davis
2003-09-17 14:16               ` Jaroslav Kysela
2003-09-17 14:50                 ` James Courtier-Dutton
2003-09-17 14:58                   ` Jaroslav Kysela
2003-09-17 14:48               ` Playback/Record speed mismatch Prince John
2003-09-17  7:03     ` PCM format restrict dilema Jaroslav Kysela

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.