From: Lars-Peter Clausen <lars@metafoo.de>
To: Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>
Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>,
patches@opensource.wolfsonmicro.com,
Robert Jarzmik <robert.jarzmik@free.fr>,
alsa-devel@alsa-project.org, Lars-Peter Clausen <lars@metafoo.de>
Subject: [PATCH 5/7] ASoC: pxa2xx-ac97: Remove unused DAI ID defines
Date: Sat, 15 Oct 2016 19:32:55 +0200 [thread overview]
Message-ID: <1476552777-1849-5-git-send-email-lars@metafoo.de> (raw)
In-Reply-To: <1476552777-1849-1-git-send-email-lars@metafoo.de>
The DAI ID defines are back from the time when DAIs were referenced by a
numerical ID. These days a string is used for matching instead and the
defines are unused. The last user of these defines was removed in commit
f0fba2ad1b6b ("ASoC: multi-component - ASoC Multi-Component Support"). So
remove the defines as well.
This also means the pxa2xx-ac97.h file no longer has any content and can be
removed.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
sound/soc/pxa/e740_wm9705.c | 3 ---
sound/soc/pxa/e750_wm9705.c | 2 --
sound/soc/pxa/e800_wm9712.c | 2 --
sound/soc/pxa/em-x270.c | 2 --
sound/soc/pxa/mioa701_wm9713.c | 1 -
sound/soc/pxa/palm27x.c | 2 --
sound/soc/pxa/pxa2xx-ac97.c | 2 --
sound/soc/pxa/pxa2xx-ac97.h | 17 -----------------
sound/soc/pxa/tosa.c | 2 --
sound/soc/pxa/zylonite.c | 1 -
10 files changed, 34 deletions(-)
delete mode 100644 sound/soc/pxa/pxa2xx-ac97.h
diff --git a/sound/soc/pxa/e740_wm9705.c b/sound/soc/pxa/e740_wm9705.c
index 086c37a..8ab7032 100644
--- a/sound/soc/pxa/e740_wm9705.c
+++ b/sound/soc/pxa/e740_wm9705.c
@@ -22,9 +22,6 @@
#include <asm/mach-types.h>
-#include "pxa2xx-ac97.h"
-
-
#define E740_AUDIO_OUT 1
#define E740_AUDIO_IN 2
diff --git a/sound/soc/pxa/e750_wm9705.c b/sound/soc/pxa/e750_wm9705.c
index 7823278..fdcd94a 100644
--- a/sound/soc/pxa/e750_wm9705.c
+++ b/sound/soc/pxa/e750_wm9705.c
@@ -22,8 +22,6 @@
#include <asm/mach-types.h>
-#include "pxa2xx-ac97.h"
-
static int e750_spk_amp_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{
diff --git a/sound/soc/pxa/e800_wm9712.c b/sound/soc/pxa/e800_wm9712.c
index 07b9c6e..2df714f 100644
--- a/sound/soc/pxa/e800_wm9712.c
+++ b/sound/soc/pxa/e800_wm9712.c
@@ -21,8 +21,6 @@
#include <mach/audio.h>
#include <mach/eseries-gpio.h>
-#include "pxa2xx-ac97.h"
-
static int e800_spk_amp_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{
diff --git a/sound/soc/pxa/em-x270.c b/sound/soc/pxa/em-x270.c
index 966163d..6f2020f 100644
--- a/sound/soc/pxa/em-x270.c
+++ b/sound/soc/pxa/em-x270.c
@@ -30,8 +30,6 @@
#include <asm/mach-types.h>
#include <mach/audio.h>
-#include "pxa2xx-ac97.h"
-
static struct snd_soc_dai_link em_x270_dai[] = {
{
.name = "AC97",
diff --git a/sound/soc/pxa/mioa701_wm9713.c b/sound/soc/pxa/mioa701_wm9713.c
index d1661fa..96c0b19 100644
--- a/sound/soc/pxa/mioa701_wm9713.c
+++ b/sound/soc/pxa/mioa701_wm9713.c
@@ -53,7 +53,6 @@
#include <sound/initval.h>
#include <sound/ac97_codec.h>
-#include "pxa2xx-ac97.h"
#include "../codecs/wm9713.h"
#define AC97_GPIO_PULL 0x58
diff --git a/sound/soc/pxa/palm27x.c b/sound/soc/pxa/palm27x.c
index 387492d..9716704 100644
--- a/sound/soc/pxa/palm27x.c
+++ b/sound/soc/pxa/palm27x.c
@@ -27,8 +27,6 @@
#include <mach/audio.h>
#include <linux/platform_data/asoc-palm27x.h>
-#include "pxa2xx-ac97.h"
-
static struct snd_soc_jack hs_jack;
/* Headphones jack detection DAPM pins */
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c
index 9615e6d..2e2fb18 100644
--- a/sound/soc/pxa/pxa2xx-ac97.c
+++ b/sound/soc/pxa/pxa2xx-ac97.c
@@ -27,8 +27,6 @@
#include <mach/regs-ac97.h>
#include <mach/audio.h>
-#include "pxa2xx-ac97.h"
-
static void pxa2xx_ac97_warm_reset(struct snd_ac97 *ac97)
{
pxa2xx_ac97_try_warm_reset(ac97);
diff --git a/sound/soc/pxa/pxa2xx-ac97.h b/sound/soc/pxa/pxa2xx-ac97.h
deleted file mode 100644
index a49c21b..0000000
--- a/sound/soc/pxa/pxa2xx-ac97.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * linux/sound/soc/pxa/pxa2xx-ac97.h
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-#ifndef _PXA2XX_AC97_H
-#define _PXA2XX_AC97_H
-
-/* pxa2xx DAI ID's */
-#define PXA2XX_DAI_AC97_HIFI 0
-#define PXA2XX_DAI_AC97_AUX 1
-#define PXA2XX_DAI_AC97_MIC 2
-
-#endif
diff --git a/sound/soc/pxa/tosa.c b/sound/soc/pxa/tosa.c
index daed981..6e895c3 100644
--- a/sound/soc/pxa/tosa.c
+++ b/sound/soc/pxa/tosa.c
@@ -31,8 +31,6 @@
#include <mach/tosa.h>
#include <mach/audio.h>
-#include "pxa2xx-ac97.h"
-
#define TOSA_HP 0
#define TOSA_MIC_INT 1
#define TOSA_HEADSET 2
diff --git a/sound/soc/pxa/zylonite.c b/sound/soc/pxa/zylonite.c
index 8f301c7..6fbcdf0 100644
--- a/sound/soc/pxa/zylonite.c
+++ b/sound/soc/pxa/zylonite.c
@@ -22,7 +22,6 @@
#include <sound/soc.h>
#include "../codecs/wm9713.h"
-#include "pxa2xx-ac97.h"
#include "pxa-ssp.h"
/*
--
2.1.4
next prev parent reply other threads:[~2016-10-15 17:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-15 17:32 [PATCH 1/7] ASoC: wm9705: Remove unused DAI ID defines Lars-Peter Clausen
2016-10-15 17:32 ` [PATCH 2/7] ASoC: wm9712: " Lars-Peter Clausen
2016-10-17 10:49 ` Charles Keepax
2016-10-15 17:32 ` [PATCH 3/7] ASoC: wm9713: " Lars-Peter Clausen
2016-10-17 10:49 ` Charles Keepax
2016-10-15 17:32 ` [PATCH 4/7] ASoC: wm8753: " Lars-Peter Clausen
2016-10-17 10:50 ` Charles Keepax
2016-10-15 17:32 ` Lars-Peter Clausen [this message]
2016-10-16 18:57 ` [PATCH 5/7] ASoC: pxa2xx-ac97: " Robert Jarzmik
[not found] ` <20161024173947.GM17252@sirena.org.uk>
2016-10-24 18:17 ` Lars-Peter Clausen
[not found] ` <20161024182120.GQ17252@sirena.org.uk>
2016-10-24 18:27 ` Lars-Peter Clausen
2017-01-06 18:16 ` Applied "ASoC: pxa2xx-ac97: Remove unused DAI ID defines" to the asoc tree Mark Brown
2016-10-15 17:32 ` [PATCH 6/7] ASoC: pxa2xx-i2s: Remove unused DAI ID defines Lars-Peter Clausen
2016-10-15 17:32 ` [PATCH 7/7] ASoC: pxa-ssp: " Lars-Peter Clausen
2016-10-17 10:49 ` [PATCH 1/7] ASoC: wm9705: " Charles Keepax
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476552777-1849-5-git-send-email-lars@metafoo.de \
--to=lars@metafoo.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.wolfsonmicro.com \
--cc=lgirdwood@gmail.com \
--cc=patches@opensource.wolfsonmicro.com \
--cc=robert.jarzmik@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).