#ifndef __DRIVERS_AUDIO_ALC5658_H
#define __DRIVERS_AUDIO_ALC5658_H
+#ifdef CONFIG_AUDIO_ALC5658
+
/****************************************************************************
* Included Files
****************************************************************************/
#include <tinyara/fs/ioctl.h>
#include <stdint.h>
-#ifdef CONFIG_AUDIO
-
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
static void alc5658_hw_reset(FAR struct alc5658_dev_s *priv);
uint16_t alc5658_readreg(FAR struct alc5658_dev_s *priv, uint16_t regaddr);
-#endif /* CONFIG_AUDIO */
+#endif /* CONFIG_AUDIO_ALC5658 */
#endif /* __DRIVERS_AUDIO_ALC5658_H */
#ifndef __DRIVERS_AUDIO_ALC5658REG_H
#define __DRIVERS_AUDIO_ALC5658REG_H
+#ifdef CONFIG_AUDIO_ALC5658
+
/****************************************************************************
* Included Files
****************************************************************************/
#include <tinyara/config.h>
#include <tinyara/compiler.h>
-#ifdef CONFIG_AUDIO
/****************************************************************************
* Pre-processor Definitions
ALC5658_0010 = 0x0010,
} ALC5658_REG;
-#endif /* CONFIG_AUDIO */
+#endif /* CONFIG_AUDIO_ALC5658 */
#endif /* __DRIVERS_AUDIO_ALC5658REG_H */
#ifndef __DRIVERS_AUDIO_ALC5658SCRIPTS_H
#define __DRIVERS_AUDIO_ALC5658SCRIPTS_H
+
+#ifdef CONFIG_AUDIO_ALC5658
+
/****************************************************************************
* Included Files
****************************************************************************/
#include "alc5658reg.h"
-#ifdef CONFIG_AUDIO
-
/* TYPEDEFS */
typedef struct {
ALC5658_REG addr;
{ALC5658_0010, "ALC5658_0010"},
};
-#endif /* CONFIG_AUDIO */
+#endif /* CONFIG_AUDIO_ALC5658 */
#endif /* __DRIVERS_AUDIO_ALC5658SCRIPTS_H */