From 75daeb75a373fc10539a5711d96b21de3b0f8b44 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 28 Jul 2014 16:33:25 -0600 Subject: [PATCH] Fix some compile problems with the WM8904 driver due to recent audio subsystem changes --- drivers/audio/wm8904.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/audio/wm8904.c b/drivers/audio/wm8904.c index c3e4514fe72..91c645f375e 100644 --- a/drivers/audio/wm8904.c +++ b/drivers/audio/wm8904.c @@ -737,7 +737,7 @@ static int wm8904_configure(FAR struct audio_lowerhalf_s *dev, /* Process based on Feature Unit */ - switch (*((uint16_t *)caps->ac_format)) + switch (caps->ac_format.hw) { #ifndef CONFIG_AUDIO_EXCLUDE_VOLUME case AUDIO_FU_VOLUME: