From: yingjoe.chen@mediatek.com (Yingjoe Chen)
To: linux-arm-kernel@lists.infradead.org
Subject: [alsa-devel] [RFC PATCH v2 1/5] ASoC: Mediatek: Refine mt8173 driver
Date: Thu, 14 Apr 2016 20:44:53 +0800 [thread overview]
Message-ID: <1460637893.13240.24.camel@mtksdaap41> (raw)
In-Reply-To: <1460636070-37426-2-git-send-email-garlic.tseng@mediatek.com>
On Thu, 2016-04-14 at 20:14 +0800, Garlic Tseng wrote:
> Move mt8173 driver to another folder.
>
> The software control sequence of mt2701 is very different from that of mt8173,
> so this patch moves mt8173 code to another folder.
>
>
> Signed-off-by: Garlic Tseng <garlic.tseng@mediatek.com>
> ---
> sound/soc/mediatek/Makefile | 12 +++++-------
> sound/soc/mediatek/mt8173/Makefile | 7 +++++++
> sound/soc/mediatek/{ => mt8173}/mt8173-max98090.c | 2 +-
> sound/soc/mediatek/{ => mt8173}/mt8173-rt5650-rt5514.c | 2 +-
> sound/soc/mediatek/{ => mt8173}/mt8173-rt5650-rt5676.c | 4 ++--
> sound/soc/mediatek/{ => mt8173}/mt8173-rt5650.c | 2 +-
> sound/soc/mediatek/{ => mt8173}/mtk-afe-common.h | 0
> sound/soc/mediatek/{ => mt8173}/mtk-afe-pcm.c | 0
> 8 files changed, 17 insertions(+), 12 deletions(-)
> create mode 100644 sound/soc/mediatek/mt8173/Makefile
> rename sound/soc/mediatek/{ => mt8173}/mt8173-max98090.c (99%)
> rename sound/soc/mediatek/{ => mt8173}/mt8173-rt5650-rt5514.c (99%)
> rename sound/soc/mediatek/{ => mt8173}/mt8173-rt5650-rt5676.c (99%)
> rename sound/soc/mediatek/{ => mt8173}/mt8173-rt5650.c (99%)
> rename sound/soc/mediatek/{ => mt8173}/mtk-afe-common.h (100%)
> rename sound/soc/mediatek/{ => mt8173}/mtk-afe-pcm.c (100%)
>
> diff --git a/sound/soc/mediatek/Makefile b/sound/soc/mediatek/Makefile
> index d486860..5048165 100644
> --- a/sound/soc/mediatek/Makefile
> +++ b/sound/soc/mediatek/Makefile
> @@ -1,7 +1,5 @@
> -# MTK Platform Support
> -obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o
> -# Machine support
> -obj-$(CONFIG_SND_SOC_MT8173_MAX98090) += mt8173-max98090.o
> -obj-$(CONFIG_SND_SOC_MT8173_RT5650) += mt8173-rt5650.o
> -obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5514) += mt8173-rt5650-rt5514.o
> -obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5676) += mt8173-rt5650-rt5676.o
> +# 8173 Machine support
> +obj-$(CONFIG_SND_SOC_MT8173_MAX98090) += mt8173/
> +obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5676) += mt8173/
> +obj-$(CONFIG_SND_SOC_MT8173_RT5650_RT5514) += mt8173/
> +obj-$(CONFIG_SND_SOC_MT8173_RT5650) += mt8173/
Since all CONFIG_SND_SOC_MT8173_* depends on CONFIG_SND_SOC_MEDIATEK,
you could just do:
obj-$(CONFIG_SND_SOC_MEDIATEK) += mt8173/
This way we don't need to modify 2 makefiles when adding new ASoC
driver.
> diff --git a/sound/soc/mediatek/mt8173/Makefile b/sound/soc/mediatek/mt8173/Makefile
> new file mode 100644
> index 0000000..d486860
> --- /dev/null
> +++ b/sound/soc/mediatek/mt8173/Makefile
> @@ -0,0 +1,7 @@
> +# MTK Platform Support
> +obj-$(CONFIG_SND_SOC_MEDIATEK) += mtk-afe-pcm.o
Maybe we should also rename this to mt8173-afe-pcm.o?
Joe.C
next prev parent reply other threads:[~2016-04-14 12:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-14 12:14 [alsa-devel] [RFC PATCH v2 0/5] ASoC: Mediatek: Add support for MT2701 SOC Garlic Tseng
2016-04-14 12:14 ` [alsa-devel] [RFC PATCH v2 1/5] ASoC: Mediatek: Refine mt8173 driver Garlic Tseng
2016-04-14 12:44 ` Yingjoe Chen [this message]
2016-04-15 1:56 ` Garlic Tseng
2016-04-14 12:14 ` [alsa-devel] [RFC PATCH v2 2/5] ASoC: mediatek: add documents for mt2701 Garlic Tseng
2016-04-20 10:36 ` Matthias Brugger
2016-04-21 1:40 ` Garlic Tseng
2016-04-14 12:14 ` [alsa-devel] [RFC PATCH v2 3/5] ASoC: mediatek: add clock and irq control for 2701 platform driver Garlic Tseng
2016-04-14 12:14 ` [alsa-devel] [RFC PATCH v2 4/5] ASoC: mediatek: add mt2701 platform driver implementation Garlic Tseng
2016-04-14 12:14 ` [alsa-devel] [RFC PATCH v2 5/5] ASoC: mediatek: Add mt2701-cs42448 driver and config option Garlic Tseng
2016-04-14 12:39 ` Yingjoe Chen
2016-04-15 1:45 ` YiMing (Garlic) Tseng
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=1460637893.13240.24.camel@mtksdaap41 \
--to=yingjoe.chen@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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).