select SND_SOC_WM8994
config SND_SOC_EXYNOS_MAX98095
- tristate "SoC I2S Audio support for MAX98095 on EXYNOS5"
+ tristate "SoC I2S Audio support for MAX98095 or MAX98088 on EXYNOS5"
depends on SND_SOC_SAMSUNG && SOC_EXYNOS5250
select SND_SOC_MAX98095
+ select SND_SOC_MAX98088
select SND_SAMSUNG_I2S
help
- Say Y if you want to add support for SoC audio for max98095 on exynos5.
+ Say Y if you want to add support for SoC audio for max98095 or max98088 on exynos5.
/*
- * Exynos machine ASoC driver for boards using MAX98095 codec.
+ * Exynos machine ASoC driver for boards using MAX98095 or MAX98088
+ * codec.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
#include <sound/pcm_params.h>
#include <sound/jack.h>
#include <sound/max98095.h>
+#include <sound/max98088.h>
#include <mach/regs-clock.h>
#include <mach/gpio.h>
#include "i2s.h"
#include "s3c-i2s-v2.h"
#include "../codecs/max98095.h"
+#include "../codecs/max98088.h"
#include "codec_plugin.h"
#define DRV_NAME "daisy-snd-max98095"
return -ENODEV;
dn = of_find_compatible_node(NULL, NULL, "maxim,max98095");
- if (!dn)
- return -ENODEV;
+ if (!dn) {
+ dn = of_find_compatible_node(NULL, NULL, "maxim,max98088");
+ if (!dn)
+ return -ENODEV;
+ }
for (i = 0; i < ARRAY_SIZE(daisy_dai); i++)
daisy_dai[i].codec_of_node = of_node_get(dn);
static const struct of_device_id daisy_max98095_of_match[] __devinitconst = {
{ .compatible = "google,daisy-audio-max98095", },
+ { .compatible = "google,daisy-audio-max98088", },
{},
};