4 Sep
2008
4 Sep
'08
2:49 p.m.
On Thu, Sep 04, 2008 at 04:22:04PM +0800, Bryan Wu wrote:
+static void bf5xx_ac97_cold_reset(struct snd_ac97 *ac97) +{ +#ifdef CONFIG_SND_BF5XX_HAVE_COLD_RESET
- pr_debug("%s enter\n", __func__);
- /* It is specified for bf548-ezkit */
- gpio_set_value(CONFIG_SND_BF5XX_RESET_GPIO_NUM, 0);
- /* Keep reset pin low for 1 ms */
- mdelay(1);
- gpio_set_value(CONFIG_SND_BF5XX_RESET_GPIO_NUM, 1);
- /* Wait for bit clock recover */
- mdelay(1);
+#endif +}
Sorry, I did mean to say: shouldn't this print a warning like the warm reset does if it's not implemented?