aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-18 13:08:22 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-18 13:08:22 -0400
commitc6d46678a1adacde05a01e51361610ce2666fe6a (patch)
tree1ced2c0d6b582f1b072786430155da2b041e5d76 /sound/soc/tegra
parentd5381e42f64ca19f05c5799ffae5708acb6ed411 (diff)
parent61a6d0764be43e014d265128c2af1b41e0fc96b0 (diff)
Merge branch 'tegra' into for-2.6.40
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r--sound/soc/tegra/harmony.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/tegra/harmony.c b/sound/soc/tegra/harmony.c
index 556a57133925..6bd1e42d5381 100644
--- a/sound/soc/tegra/harmony.c
+++ b/sound/soc/tegra/harmony.c
@@ -35,7 +35,7 @@
35#include <linux/slab.h> 35#include <linux/slab.h>
36#include <linux/gpio.h> 36#include <linux/gpio.h>
37 37
38#include <mach/harmony_audio.h> 38#include <mach/tegra_wm8903_pdata.h>
39 39
40#include <sound/core.h> 40#include <sound/core.h>
41#include <sound/jack.h> 41#include <sound/jack.h>
@@ -50,7 +50,7 @@
50#include "tegra_pcm.h" 50#include "tegra_pcm.h"
51#include "tegra_asoc_utils.h" 51#include "tegra_asoc_utils.h"
52 52
53#define DRV_NAME "tegra-snd-harmony" 53#define DRV_NAME "tegra-snd-wm8903"
54 54
55#define GPIO_SPKR_EN BIT(0) 55#define GPIO_SPKR_EN BIT(0)
56#define GPIO_INT_MIC_EN BIT(1) 56#define GPIO_INT_MIC_EN BIT(1)
@@ -58,7 +58,7 @@
58 58
59struct tegra_harmony { 59struct tegra_harmony {
60 struct tegra_asoc_utils_data util_data; 60 struct tegra_asoc_utils_data util_data;
61 struct harmony_audio_platform_data *pdata; 61 struct tegra_wm8903_platform_data *pdata;
62 int gpio_requested; 62 int gpio_requested;
63}; 63};
64 64
@@ -163,7 +163,7 @@ static int harmony_event_int_spk(struct snd_soc_dapm_widget *w,
163 struct snd_soc_codec *codec = w->codec; 163 struct snd_soc_codec *codec = w->codec;
164 struct snd_soc_card *card = codec->card; 164 struct snd_soc_card *card = codec->card;
165 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card); 165 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card);
166 struct harmony_audio_platform_data *pdata = harmony->pdata; 166 struct tegra_wm8903_platform_data *pdata = harmony->pdata;
167 167
168 gpio_set_value_cansleep(pdata->gpio_spkr_en, 168 gpio_set_value_cansleep(pdata->gpio_spkr_en,
169 SND_SOC_DAPM_EVENT_ON(event)); 169 SND_SOC_DAPM_EVENT_ON(event));
@@ -198,7 +198,7 @@ static int harmony_asoc_init(struct snd_soc_pcm_runtime *rtd)
198 struct snd_soc_dapm_context *dapm = &codec->dapm; 198 struct snd_soc_dapm_context *dapm = &codec->dapm;
199 struct snd_soc_card *card = codec->card; 199 struct snd_soc_card *card = codec->card;
200 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card); 200 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card);
201 struct harmony_audio_platform_data *pdata = harmony->pdata; 201 struct tegra_wm8903_platform_data *pdata = harmony->pdata;
202 int ret; 202 int ret;
203 203
204 ret = gpio_request(pdata->gpio_spkr_en, "spkr_en"); 204 ret = gpio_request(pdata->gpio_spkr_en, "spkr_en");
@@ -291,7 +291,7 @@ static __devinit int tegra_snd_harmony_probe(struct platform_device *pdev)
291{ 291{
292 struct snd_soc_card *card = &snd_soc_harmony; 292 struct snd_soc_card *card = &snd_soc_harmony;
293 struct tegra_harmony *harmony; 293 struct tegra_harmony *harmony;
294 struct harmony_audio_platform_data *pdata; 294 struct tegra_wm8903_platform_data *pdata;
295 int ret; 295 int ret;
296 296
297 if (!machine_is_harmony()) { 297 if (!machine_is_harmony()) {
@@ -344,7 +344,7 @@ static int __devexit tegra_snd_harmony_remove(struct platform_device *pdev)
344{ 344{
345 struct snd_soc_card *card = platform_get_drvdata(pdev); 345 struct snd_soc_card *card = platform_get_drvdata(pdev);
346 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card); 346 struct tegra_harmony *harmony = snd_soc_card_get_drvdata(card);
347 struct harmony_audio_platform_data *pdata = harmony->pdata; 347 struct tegra_wm8903_platform_data *pdata = harmony->pdata;
348 348
349 snd_soc_unregister_card(card); 349 snd_soc_unregister_card(card);
350 350