Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254271
b: refs/heads/master
c: 4f3c7a1
h: refs/heads/master
i:
  254269: 65bda15
  254267: 2f342e8
  254263: 5352dd5
  254255: 4ee1a6f
  254239: 2175f30
  254207: ef7cc8f
v: v3
  • Loading branch information
Takashi Iwai committed Jun 30, 2011
1 parent 9718f1c commit 0ff3723
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 286bed0f0c447b6660e72093d7e778784fdd9ee6
refs/heads/master: 4f3c7a18d9e8a287d31f828a259d713fe4859471
9 changes: 8 additions & 1 deletion trunk/include/sound/sb16_csp.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ struct snd_sb_csp_info {
/* get CSP information */
#define SNDRV_SB_CSP_IOCTL_INFO _IOR('H', 0x10, struct snd_sb_csp_info)
/* load microcode to CSP */
#define SNDRV_SB_CSP_IOCTL_LOAD_CODE _IOW('H', 0x11, struct snd_sb_csp_microcode)
/* NOTE: struct snd_sb_csp_microcode overflows the max size (13 bits)
* defined for some architectures like MIPS, and it leads to build errors.
* (x86 and co have 14-bit size, thus it's valid, though.)
* As a workaround for skipping the size-limit check, here we don't use the
* normal _IOW() macro but _IOC() with the manual argument.
*/
#define SNDRV_SB_CSP_IOCTL_LOAD_CODE \
_IOC(_IOC_WRITE, 'H', 0x11, sizeof(struct snd_sb_csp_microcode))
/* unload microcode from CSP */
#define SNDRV_SB_CSP_IOCTL_UNLOAD_CODE _IO('H', 0x12)
/* start CSP */
Expand Down

0 comments on commit 0ff3723

Please sign in to comment.