Skip to content

Commit

Permalink
ALSA: dice: document quadlet alignment
Browse files Browse the repository at this point in the history
Doing accesses without quadlet alignment is a bad idea because the
firmware's byte-swapping would garble the data; clarify this in the
documentation.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
  • Loading branch information
Clemens Ladisch committed Oct 20, 2013
1 parent c614475 commit 61b8cf0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/firewire/dice-interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

/*
* Generally, all registers can be read like memory, i.e., with quadlet read or
* block read transactions with any alignment or length. Writes are not
* allowed except where noted; quadlet-sized registers must be written with
* a quadlet write transaction.
* block read transactions with at least quadlet-aligned offset and length.
* Writes are not allowed except where noted; quadlet-sized registers must be
* written with a quadlet write transaction.
*
* All values are in big endian. The DICE firmware runs on a little-endian CPU
* and just byte-swaps _all_ quadlets on the bus, so values without endianness
Expand Down

0 comments on commit 61b8cf0

Please sign in to comment.