All of lore.kernel.org
 help / color / mirror / Atom feed
* How to enforce 32bit access?
@ 2007-10-02 15:34 Joachim Foerster
  2007-10-05 17:09 ` Joachim Foerster
  0 siblings, 1 reply; 9+ messages in thread
From: Joachim Foerster @ 2007-10-02 15:34 UTC (permalink / raw)
  To: alsa-devel; +Cc: Lorenz Kolb

Hi ALSA devs,

(based on a Xilinx ML403, PPC405, OPB bus)
I have a custom sound controller, which allows 32bit write accesses to
its IO memory, only. The controller supports S16_LE, S16_BE, U16_LE,
U16_BE with min. and max. 2 channels (stereo), only! => So a frame has
to be 32bits wide and one frame has to be written at one point of time
(= one 32bit bus access).

Now, playing a 16kHz, S16_LE, Mono .wav-file with aplay invokes the
conversion framework of the alsa-lib. The following line of code (of
pcm_plugin.h) is executed:

conv_xx12_xx12: as_u16(dst) = as_u16c(src);

This is a 16bit access and thus fails with a Bus error/Kernel Oops.

Therefore my question is:

In my driver for the controller, how do I tell ALSA, that it is only
allowed to write in 32bit quantities?
Is this possible at all?
Or do I have to use a special .asoundrc file?

Thanks,
 Joachim

PS: 16bit, signed/unsigned, LE/BE, stereo (!) .wav files can be played
without any problem.

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

end of thread, other threads:[~2007-10-11 19:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 15:34 How to enforce 32bit access? Joachim Foerster
2007-10-05 17:09 ` Joachim Foerster
2007-10-09  9:08   ` Takashi Iwai
2007-10-10 13:19     ` Joachim Foerster
2007-10-10 13:22       ` Takashi Iwai
2007-10-10 15:40         ` Joachim Foerster
2007-10-11  8:50           ` Takashi Iwai
2007-10-11 13:30             ` Joachim Foerster
2007-10-11 19:29               ` Trent Piepho

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.