[alsa-devel] Function ap192_4wire_start in revo.c
![](https://secure.gravatar.com/avatar/69d4fb95fed5f2a2c1d2b812dfa00396.jpg?s=120&d=mm&r=g)
Hello, while working on support for AK4114 in Audiotrak MI/ODI/O, I have come accross a bug in revo.c (used for major inspiration :) )The function
static unsigned char ap192_4wire_start(struct snd_ice1712 *ice)
returns value of current GPIO bits, which is unsigned int. However, return value of the function is unsigned char. This results in clearing all GPIO8-22 in next snd_ice1712_gpio_write call of the 4-wire protocol communication which is a little bit inconvenient :).
Thanks for fixing in HG.
Best regards,
Pavel.
![](https://secure.gravatar.com/avatar/5b19e9d0e834ea10ef75803718ad564b.jpg?s=120&d=mm&r=g)
At Thu, 29 Mar 2007 11:14:50 +0200 (CEST), dustin@seznam.cz wrote:
Hello, while working on support for AK4114 in Audiotrak MI/ODI/O, I have come accross a bug in revo.c (used for major inspiration :) )The function
static unsigned char ap192_4wire_start(struct snd_ice1712 *ice)
returns value of current GPIO bits, which is unsigned int. However, return value of the function is unsigned char. This results in clearing all GPIO8-22 in next snd_ice1712_gpio_write call of the 4-wire protocol communication which is a little bit inconvenient :).
Indeed. Fixed on HG now. Thanks for spotting out.
Takashi
participants (2)
-
dustin@seznam.cz
-
Takashi Iwai