linux/sound/atmel
Paul Walmsley 337bb336b9 ALSA: atmel_abdac: clk_round_rate() can return a zero upon error
Treat both negative and zero return values from clk_round_rate()
as errors.  This is needed since subsequent patches will convert
clk_round_rate()'s return value to be an unsigned type, rather
than a signed type, since some clock sources can generate rates higher
than (2^31)-1 Hz.

Eventually, when calling clk_round_rate(), only a return value of
zero will be considered a error; all other values will be
considered valid rates.  The comparison against values less than
0 is kept to preserve the correct behavior in the meantime.

Signed-off-by: Paul Walmsley <pwalmsley@nvidia.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-12-10 21:19:49 +01:00
..
abdac.c ALSA: atmel_abdac: clk_round_rate() can return a zero upon error 2013-12-10 21:19:49 +01:00
ac97c.c ALSA: atmel: remove dependency on <mach/gpio.h> 2013-11-05 13:43:25 +01:00
ac97c.h ALSA: snd-atmel-ac97c: cleanup register definitions 2009-04-06 03:54:48 +02:00
Kconfig ALSA: AC97: add AC97 support for AT91. 2010-03-25 20:22:15 +01:00
Makefile ALSA: Add ALSA driver for Atmel AC97 controller 2009-02-05 15:08:51 +01:00