X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=sound%2Fi2c%2Fother%2Fak4117.c;h=2cad2d6125186431643dd9a04bcc840f729e67e4;hb=1a2217a9516b134e0a0e54cb4629e1e075d97b17;hp=1614973e48996e6e88e16536c3bf6ffc00ce070e;hpb=a5ce88909d3007caa7b65996a8f6784350beb2a6;p=linux-2.6-omap-h63xx.git diff --git a/sound/i2c/other/ak4117.c b/sound/i2c/other/ak4117.c index 1614973e489..2cad2d61251 100644 --- a/sound/i2c/other/ak4117.c +++ b/sound/i2c/other/ak4117.c @@ -1,7 +1,7 @@ /* * Routines for control of the AK4117 via 4-wire serial interface * IEC958 (S/PDIF) receiver by Asahi Kasei - * Copyright (c) by Jaroslav Kysela + * Copyright (c) by Jaroslav Kysela * * * This program is free software; you can redistribute it and/or modify @@ -20,7 +20,6 @@ * */ -#include #include #include #include @@ -29,7 +28,7 @@ #include #include -MODULE_AUTHOR("Jaroslav Kysela "); +MODULE_AUTHOR("Jaroslav Kysela "); MODULE_DESCRIPTION("AK4117 IEC958 (S/PDIF) receiver by Asahi Kasei"); MODULE_LICENSE("GPL"); @@ -432,7 +431,8 @@ int snd_ak4117_build(struct ak4117 *ak4117, struct snd_pcm_substream *cap_substr unsigned int idx; int err; - snd_assert(cap_substream, return -EINVAL); + if (snd_BUG_ON(!cap_substream)) + return -EINVAL; ak4117->substream = cap_substream; for (idx = 0; idx < AK4117_CONTROLS; idx++) { kctl = snd_ctl_new1(&snd_ak4117_iec958_controls[idx], ak4117);