#include <asm/mach/time.h>
#include <asm/setup.h>
-#include <mach/harmony_audio.h>
+#include <mach/tegra_wm8903_pdata.h>
#include <mach/iomap.h>
#include <mach/irqs.h>
#include <mach/sdhci.h>
},
};
-static struct harmony_audio_platform_data harmony_audio_pdata = {
+static struct tegra_wm8903_platform_data harmony_audio_pdata = {
.gpio_spkr_en = TEGRA_GPIO_SPKR_EN,
.gpio_hp_det = TEGRA_GPIO_HP_DET,
.gpio_int_mic_en = TEGRA_GPIO_INT_MIC_EN,
#include <linux/slab.h>
#include <linux/gpio.h>
-#include <mach/harmony_audio.h>
+#include <mach/tegra_wm8903_pdata.h>
#include <sound/core.h>
#include <sound/jack.h>
struct tegra_harmony {
struct tegra_asoc_utils_data util_data;
- struct harmony_audio_platform_data *pdata;
+ struct tegra_wm8903_platform_data *pdata;
int gpio_requested;
};
struct snd_soc_codec *codec = w->codec;
struct snd_soc_card *card = codec->card;
struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card);
- struct harmony_audio_platform_data *pdata = harmony->pdata;
+ struct tegra_wm8903_platform_data *pdata = harmony->pdata;
gpio_set_value_cansleep(pdata->gpio_spkr_en,
SND_SOC_DAPM_EVENT_ON(event));
struct snd_soc_dapm_context *dapm = &codec->dapm;
struct snd_soc_card *card = codec->card;
struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card);
- struct harmony_audio_platform_data *pdata = harmony->pdata;
+ struct tegra_wm8903_platform_data *pdata = harmony->pdata;
int ret;
ret = gpio_request(pdata->gpio_spkr_en, "spkr_en");
{
struct snd_soc_card *card = &snd_soc_harmony;
struct tegra_harmony *harmony;
- struct harmony_audio_platform_data *pdata;
+ struct tegra_wm8903_platform_data *pdata;
int ret;
if (!machine_is_harmony()) {
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card);
- struct harmony_audio_platform_data *pdata = harmony->pdata;
+ struct tegra_wm8903_platform_data *pdata = harmony->pdata;
snd_soc_unregister_card(card);