* published by the Free Software Foundation.
*/
+#include <linux/module.h>
#include <linux/spi/spi.h>
#include <sound/soc.h>
#include "rt56xx_ioctl.h"
#include "rt5639_ioctl.h"
#include "rt5639.h"
-#if (CONFIG_SND_SOC_RT5642_MODULE | CONFIG_SND_SOC_RT5642)
+#if defined(CONFIG_SND_SOC_RT5642_MODULE) || defined(CONFIG_SND_SOC_RT5642)
#include "rt5639-dsp.h"
#endif
{
unsigned int reg = snd_soc_read(codec, RT5639_DRC_AGC_3);
- dev_info("get_noise_gate reg=0x%04x\n", reg);
+ dev_info(codec->dev, "get_noise_gate reg=0x%04x\n", reg);
*noise_gate_en = (reg & RT5639_DRC_AGC_NG_MASK) >>
RT5639_DRC_AGC_NG_SFT;
*noise_gate_hold_en = (reg & RT5639_DRC_AGC_NGH_MASK) >>
if (copy_to_user(rt56xx.buf, buf, sizeof(*buf) * rt56xx.number))
goto err;
break;
-#if (CONFIG_SND_SOC_RT5642_MODULE | CONFIG_SND_SOC_RT5642)
+#if defined(CONFIG_SND_SOC_RT5642_MODULE) || defined(CONFIG_SND_SOC_RT5642)
case RT_READ_CODEC_DSP_IOCTL:
case RT_WRITE_CODEC_DSP_IOCTL:
case RT_GET_CODEC_DSP_MODE_IOCTL: