[alsa-devel] [PATCH 28/44] fireworks: Add command/response functionality into hwdep interface

Takashi Sakamoto o-takashi at sakamocchi.jp
Tue Apr 8 04:45:28 CEST 2014


Hi Clemens,

(Apr 4 2014 21:15), Clemens Ladisch wrote:
> Headers should always be self-contained, i.e., they must include any
> other headers they need.

Yes. If the header is publicly used, it must be self-contained. I decide 
to replace uint32_t to __u32.

> As for the ISO C types, Linus Torvalds wrote:
> | On Mon, 29 Nov 2004, Paul Mackerras wrote:
>...
> | In short: having the kernel use the same names as user space is ACTIVELY
> | BAD, exactly because those names have standards-defined visibility, which
> | means that the kernel _cannot_ use them in all places anyway. So don't
> | even _try_.
> <http://yarchive.net/comp/linux/kernel_headers.html>

Thanks for this pointer.

> IEEE-1394 defines the maximum payload for asynchronous data packets (see
> table 6-4); for S100/S200/S400/S800, it's 512/1024/2048/4096 bytes.
>
> Fireworks devices always are S400; just use the maximum of 0x200 bytes.
> (Anything less risks incompatibilities with an old kernel when some
> mixer application wants to use a new command introduced in some new
> firmware version.)

Here lesser length of address is preferable because it's exclusive 
resource in host controller. And the risk (un-disclosed commands) seems 
to be enough low because Fireworks is end of life.

...But this is not so strong claim. I'm OK to use 0x200 because S400 
unit must also support S100.


Takashi Sakamoto
o-takashi at sakamocchi.jp



More information about the Alsa-devel mailing list