Skip to content

Commit

Permalink
ARM: Tegra: Rename harmony_audio.h -> tegra_wm8903_pdata.h
Browse files Browse the repository at this point in the history
The audio driver will soon support more than just the Tegra Harmony board.
Rename the platform data header file and data type to reflect this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Stephen Warren authored and Mark Brown committed Apr 18, 2011
1 parent a6360dd commit 4651d55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-tegra/board-harmony.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#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>
Expand Down Expand Up @@ -67,7 +67,7 @@ static struct platform_device debug_uart = {
},
};

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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* arch/arm/mach-tegra/include/mach/harmony_audio.h
* arch/arm/mach-tegra/include/mach/tegra_wm8903_pdata.h
*
* Copyright 2011 NVIDIA, Inc.
*
Expand All @@ -14,7 +14,7 @@
*
*/

struct harmony_audio_platform_data {
struct tegra_wm8903_platform_data {
int gpio_spkr_en;
int gpio_hp_det;
int gpio_int_mic_en;
Expand Down
12 changes: 6 additions & 6 deletions sound/soc/tegra/harmony.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#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>
Expand All @@ -58,7 +58,7 @@

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;
};

Expand Down Expand Up @@ -163,7 +163,7 @@ static int harmony_event_int_spk(struct snd_soc_dapm_widget *w,
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));
Expand Down Expand Up @@ -198,7 +198,7 @@ static int harmony_asoc_init(struct snd_soc_pcm_runtime *rtd)
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");
Expand Down Expand Up @@ -291,7 +291,7 @@ static __devinit int tegra_snd_harmony_probe(struct platform_device *pdev)
{
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()) {
Expand Down Expand Up @@ -344,7 +344,7 @@ static int __devexit tegra_snd_harmony_remove(struct platform_device *pdev)
{
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);

Expand Down

0 comments on commit 4651d55

Please sign in to comment.