Skip to contentSkip to conversation

Intel SST driver restructure

PATCH Superseded Jie Yang 5 participants 17 messages Mar 12, 2015 – Apr 1, 2015

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Jie Yang

author
#0 lore raw

cover Intel SST driver restructure

In order to prepare for the upstreaming of Skylake drivers and to allow reuse of code between different Intel audio DSP products, this patch series restructures the Intel directory as follows:

1. Create "common" directory. Move common files into this directory.

2. Create "boards" directory. Move all machine drivers into this directory.

3. Create "haswell" directory. Move all remaining hsw/bdw code into this directory.

4. Create "baytrail" directory. Move remaining baytrail driver to this directory.

5. Create "atom" directory. Move all MCG platform drivers(including sst/ folder) to this directory.

Todo next step:
1. Change and move atom related codes(in atom/sst/) to corresponding and try share as many as possible codes(e.g. sst_acpi.c).
2. Share more common codes about IPC for different platforms, e.g. The methods for queueing and sending/reciving Tx/Rx messages, The methods for mailbox IO, The IPC error return codes, etc.

Jie Yang (5):
ASoC: Intel: create common folder and move common files in
ASoC: Intel: create haswell folder and move haswell platform files in
ASoC: Intel: create boards folder and move sst boards files in
ASoC: Intel: create baytrail folder and move baytrail platform files
in
ASoC: Intel: create atom folder and move atom platform files in

 sound/soc/intel/Makefile                           | 42 +++-------------------
 sound/soc/intel/atom/Makefile                      |  7 ++++
 sound/soc/intel/{ => atom}/sst-atom-controls.c     |  0
 sound/soc/intel/{ => atom}/sst-atom-controls.h     |  0
 sound/soc/intel/{ => atom}/sst-mfld-dsp.h          |  0
 .../intel/{ => atom}/sst-mfld-platform-compress.c  |  0
 sound/soc/intel/{ => atom}/sst-mfld-platform-pcm.c |  0
 sound/soc/intel/{ => atom}/sst-mfld-platform.h     |  0
 sound/soc/intel/{ => atom}/sst/Makefile            |  0
 sound/soc/intel/{ => atom}/sst/sst.c               |  0
 sound/soc/intel/{ => atom}/sst/sst.h               |  0
 sound/soc/intel/{ => atom}/sst/sst_acpi.c          |  0
 sound/soc/intel/{ => atom}/sst/sst_drv_interface.c |  0
 sound/soc/intel/{ => atom}/sst/sst_ipc.c           |  0
 sound/soc/intel/{ => atom}/sst/sst_loader.c        |  0
 sound/soc/intel/{ => atom}/sst/sst_pci.c           |  0
 sound/soc/intel/{ => atom}/sst/sst_pvt.c           |  0
 sound/soc/intel/{ => atom}/sst/sst_stream.c        |  0
 sound/soc/intel/baytrail/Makefile                  |  4 +++
 sound/soc/intel/{ => baytrail}/sst-baytrail-dsp.c  |  4 +--
 sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.c  |  4 +--
 sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.h  |  0
 sound/soc/intel/{ => baytrail}/sst-baytrail-pcm.c  |  4 +--
 sound/soc/intel/boards/Makefile                    | 15 ++++++++
 sound/soc/intel/{ => boards}/broadwell.c           |  6 ++--
 sound/soc/intel/{ => boards}/byt-max98090.c        |  2 +-
 sound/soc/intel/{ => boards}/byt-rt5640.c          |  4 +--
 .../{bytcr_dpcm_rt5640.c => boards/bytcr_rt5640.c} |  0
 sound/soc/intel/{ => boards}/cht_bsw_rt5645.c      |  0
 sound/soc/intel/{ => boards}/cht_bsw_rt5672.c      |  0
 sound/soc/intel/{ => boards}/haswell.c             |  6 ++--
 sound/soc/intel/{ => boards}/mfld_machine.c        |  0
 sound/soc/intel/common/Makefile                    |  6 ++++
 sound/soc/intel/{ => common}/sst-acpi.c            |  0
 sound/soc/intel/{ => common}/sst-dsp-priv.h        |  0
 sound/soc/intel/{ => common}/sst-dsp.c             |  0
 sound/soc/intel/{ => common}/sst-dsp.h             |  0
 sound/soc/intel/{ => common}/sst-firmware.c        |  0
 sound/soc/intel/haswell/Makefile                   |  4 +++
 sound/soc/intel/{ => haswell}/sst-haswell-dsp.c    |  6 ++--
 sound/soc/intel/{ => haswell}/sst-haswell-ipc.c    |  4 +--
 sound/soc/intel/{ => haswell}/sst-haswell-ipc.h    |  0
 sound/soc/intel/{ => haswell}/sst-haswell-pcm.c    |  6 ++--
 43 files changed, 64 insertions(+), 60 deletions(-)
 create mode 100644 sound/soc/intel/atom/Makefile
 rename sound/soc/intel/{ => atom}/sst-atom-controls.c (100%)
 rename sound/soc/intel/{ => atom}/sst-atom-controls.h (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-dsp.h (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-platform-compress.c (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-platform-pcm.c (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-platform.h (100%)
 rename sound/soc/intel/{ => atom}/sst/Makefile (100%)
 rename sound/soc/intel/{ => atom}/sst/sst.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst.h (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_acpi.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_drv_interface.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_ipc.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_loader.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_pci.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_pvt.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_stream.c (100%)
 create mode 100644 sound/soc/intel/baytrail/Makefile
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-dsp.c (99%)
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.c (99%)
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.h (100%)
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-pcm.c (99%)
 create mode 100644 sound/soc/intel/boards/Makefile
 rename sound/soc/intel/{ => boards}/broadwell.c (98%)
 rename sound/soc/intel/{ => boards}/byt-max98090.c (99%)
 rename sound/soc/intel/{ => boards}/byt-rt5640.c (98%)
 rename sound/soc/intel/{bytcr_dpcm_rt5640.c => boards/bytcr_rt5640.c} (100%)
 rename sound/soc/intel/{ => boards}/cht_bsw_rt5645.c (100%)
 rename sound/soc/intel/{ => boards}/cht_bsw_rt5672.c (100%)
 rename sound/soc/intel/{ => boards}/haswell.c (98%)
 rename sound/soc/intel/{ => boards}/mfld_machine.c (100%)
 create mode 100644 sound/soc/intel/common/Makefile
 rename sound/soc/intel/{ => common}/sst-acpi.c (100%)
 rename sound/soc/intel/{ => common}/sst-dsp-priv.h (100%)
 rename sound/soc/intel/{ => common}/sst-dsp.c (100%)
 rename sound/soc/intel/{ => common}/sst-dsp.h (100%)
 rename sound/soc/intel/{ => common}/sst-firmware.c (100%)
 create mode 100644 sound/soc/intel/haswell/Makefile
 rename sound/soc/intel/{ => haswell}/sst-haswell-dsp.c (99%)
 rename sound/soc/intel/{ => haswell}/sst-haswell-ipc.c (99%)
 rename sound/soc/intel/{ => haswell}/sst-haswell-ipc.h (100%)
 rename sound/soc/intel/{ => haswell}/sst-haswell-pcm.c (99%)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/5 ASoC: Intel: create common folder and move common files in

Restructure the sound/soc/intel/ directory: create common folder, and move sst common files here.

---
 sound/soc/intel/Makefile                    | 6 +-----
 sound/soc/intel/common/Makefile             | 6 ++++++
 sound/soc/intel/{ => common}/sst-acpi.c     | 0
 sound/soc/intel/{ => common}/sst-dsp-priv.h | 0
 sound/soc/intel/{ => common}/sst-dsp.c      | 0
 sound/soc/intel/{ => common}/sst-dsp.h      | 0
 sound/soc/intel/{ => common}/sst-firmware.c | 0
 7 files changed, 7 insertions(+), 5 deletions(-)
 create mode 100644 sound/soc/intel/common/Makefile
 rename sound/soc/intel/{ => common}/sst-acpi.c (100%)
 rename sound/soc/intel/{ => common}/sst-dsp-priv.h (100%)
 rename sound/soc/intel/{ => common}/sst-dsp.c (100%)
 rename sound/soc/intel/{ => common}/sst-dsp.h (100%)
 rename sound/soc/intel/{ => common}/sst-firmware.c (100%)
sound/soc/intel/Makefile +1 -5
index a8e53c4..28de8cd 100644
@@ -1,6 +1,5 @@
 # Core support
-snd-soc-sst-dsp-objs := sst-dsp.o sst-firmware.o
-snd-soc-sst-acpi-objs := sst-acpi.o
+obj-$(CONFIG_SND_SOC_INTEL_SST) += common/
 
 snd-soc-sst-mfld-platform-objs := sst-mfld-platform-pcm.o \
 	sst-mfld-platform-compress.o sst-atom-controls.o
@@ -9,9 +8,6 @@ snd-soc-mfld-machine-objs := mfld_machine.o
 obj-$(CONFIG_SND_SST_MFLD_PLATFORM) += snd-soc-sst-mfld-platform.o
 obj-$(CONFIG_SND_MFLD_MACHINE) += snd-soc-mfld-machine.o
 
-obj-$(CONFIG_SND_SOC_INTEL_SST) += snd-soc-sst-dsp.o
-obj-$(CONFIG_SND_SOC_INTEL_SST_ACPI) += snd-soc-sst-acpi.o
-
 # Platform Support
 snd-soc-sst-haswell-pcm-objs := \
 	sst-haswell-ipc.o sst-haswell-pcm.o sst-haswell-dsp.o
sound/soc/intel/common/Makefile new file +6 -0
new file mode 100644
index 0000000..3df0e1c
@@ -0,0 +1,6 @@
+snd-soc-sst-dsp-objs := sst-dsp.o sst-firmware.o
+snd-soc-sst-acpi-objs := sst-acpi.o
+
+obj-$(CONFIG_SND_SOC_INTEL_SST) += snd-soc-sst-dsp.o
+obj-$(CONFIG_SND_SOC_INTEL_SST_ACPI) += snd-soc-sst-acpi.o
+
sound/soc/intel/common/sst-acpi.c renamed from sound/soc/intel/sst-acpi.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst-acpi.c
rename to sound/soc/intel/common/sst-acpi.c
sound/soc/intel/common/sst-dsp-priv.h renamed from sound/soc/intel/sst-dsp-priv.h +0 -0
similarity index 100%
rename from sound/soc/intel/sst-dsp-priv.h
rename to sound/soc/intel/common/sst-dsp-priv.h
sound/soc/intel/common/sst-dsp.c renamed from sound/soc/intel/sst-dsp.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst-dsp.c
rename to sound/soc/intel/common/sst-dsp.c
sound/soc/intel/common/sst-dsp.h renamed from sound/soc/intel/sst-dsp.h +0 -0
similarity index 100%
rename from sound/soc/intel/sst-dsp.h
rename to sound/soc/intel/common/sst-dsp.h
sound/soc/intel/common/sst-firmware.c renamed from sound/soc/intel/sst-firmware.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst-firmware.c
rename to sound/soc/intel/common/sst-firmware.c
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 2/5 ASoC: Intel: create haswell folder and move haswell platform files in

In reply to Jie Yang

Restructure the sound/soc/intel/ directory: create haswell folder, and move haswell platform files here.

---
 sound/soc/intel/Makefile                        | 4 +---
 sound/soc/intel/haswell/Makefile                | 4 ++++
 sound/soc/intel/{ => haswell}/sst-haswell-dsp.c | 6 +++---
 sound/soc/intel/{ => haswell}/sst-haswell-ipc.c | 4 ++--
 sound/soc/intel/{ => haswell}/sst-haswell-ipc.h | 0
 sound/soc/intel/{ => haswell}/sst-haswell-pcm.c | 6 +++---
 6 files changed, 13 insertions(+), 11 deletions(-)
 create mode 100644 sound/soc/intel/haswell/Makefile
 rename sound/soc/intel/{ => haswell}/sst-haswell-dsp.c (99%)
 rename sound/soc/intel/{ => haswell}/sst-haswell-ipc.c (99%)
 rename sound/soc/intel/{ => haswell}/sst-haswell-ipc.h (100%)
 rename sound/soc/intel/{ => haswell}/sst-haswell-pcm.c (99%)
sound/soc/intel/Makefile +1 -3
index 28de8cd..eb3efce 100644
@@ -9,12 +9,10 @@ obj-$(CONFIG_SND_SST_MFLD_PLATFORM) += snd-soc-sst-mfld-platform.o
 obj-$(CONFIG_SND_MFLD_MACHINE) += snd-soc-mfld-machine.o
 
 # Platform Support
-snd-soc-sst-haswell-pcm-objs := \
-	sst-haswell-ipc.o sst-haswell-pcm.o sst-haswell-dsp.o
+obj-$(CONFIG_SND_SOC_INTEL_HASWELL) += haswell/
 snd-soc-sst-baytrail-pcm-objs := \
 	sst-baytrail-ipc.o sst-baytrail-pcm.o sst-baytrail-dsp.o
 
-obj-$(CONFIG_SND_SOC_INTEL_HASWELL) += snd-soc-sst-haswell-pcm.o
 obj-$(CONFIG_SND_SOC_INTEL_BAYTRAIL) += snd-soc-sst-baytrail-pcm.o
 
 # Machine support
sound/soc/intel/haswell/Makefile new file +4 -0
new file mode 100644
index 0000000..9c17231
@@ -0,0 +1,4 @@
+snd-soc-sst-haswell-pcm-objs := \
+	        sst-haswell-ipc.o sst-haswell-pcm.o sst-haswell-dsp.o
+
+obj-$(CONFIG_SND_SOC_INTEL_HASWELL) += snd-soc-sst-haswell-pcm.o
sound/soc/intel/haswell/sst-haswell-dsp.c renamed from sound/soc/intel/sst-haswell-dsp.c +3 -3
similarity index 99%
rename from sound/soc/intel/sst-haswell-dsp.c
rename to sound/soc/intel/haswell/sst-haswell-dsp.c
index b3e957d..7f94920 100644
@@ -28,9 +28,9 @@
 #include <linux/firmware.h>
 #include <linux/pm_runtime.h>
 
-#include "sst-dsp.h"
-#include "sst-dsp-priv.h"
-#include "sst-haswell-ipc.h"
+#include "../common/sst-dsp.h"
+#include "../common/sst-dsp-priv.h"
+#include "../haswell/sst-haswell-ipc.h"
 
 #include <trace/events/hswadsp.h>
 
sound/soc/intel/haswell/sst-haswell-ipc.c renamed from sound/soc/intel/sst-haswell-ipc.c +2 -2
similarity index 99%
rename from sound/soc/intel/sst-haswell-ipc.c
rename to sound/soc/intel/haswell/sst-haswell-ipc.c
index df22cc3..4ae76b8 100644
@@ -34,8 +34,8 @@
 #include <sound/asound.h>
 
 #include "sst-haswell-ipc.h"
-#include "sst-dsp.h"
-#include "sst-dsp-priv.h"
+#include "../common/sst-dsp.h"
+#include "../common/sst-dsp-priv.h"
 
 /* Global Message - Generic */
 #define IPC_GLB_TYPE_SHIFT	24
sound/soc/intel/haswell/sst-haswell-ipc.h renamed from sound/soc/intel/sst-haswell-ipc.h +0 -0
similarity index 100%
rename from sound/soc/intel/sst-haswell-ipc.h
rename to sound/soc/intel/haswell/sst-haswell-ipc.h
sound/soc/intel/haswell/sst-haswell-pcm.c renamed from sound/soc/intel/sst-haswell-pcm.c +3 -3
similarity index 99%
rename from sound/soc/intel/sst-haswell-pcm.c
rename to sound/soc/intel/haswell/sst-haswell-pcm.c
index a604cc4..d26dcbb 100644
@@ -29,9 +29,9 @@
 #include <sound/tlv.h>
 #include <sound/compress_driver.h>
 
-#include "sst-haswell-ipc.h"
-#include "sst-dsp-priv.h"
-#include "sst-dsp.h"
+#include "../haswell/sst-haswell-ipc.h"
+#include "../common/sst-dsp-priv.h"
+#include "../common/sst-dsp.h"
 
 #define HSW_PCM_COUNT		6
 #define HSW_VOLUME_MAX		0x7FFFFFFF	/* 0dB */
Signature · 1 line
1.9.1
author
#3 lore raw

PATCH 3/5 ASoC: Intel: create boards folder and move sst boards files in

In reply to Jie Yang

Restructure the sound/soc/intel/ directory: create boards folder, and move sst boards files here.

---
 sound/soc/intel/Makefile                                 | 16 +---------------
 sound/soc/intel/boards/Makefile                          | 15 +++++++++++++++
 sound/soc/intel/{ => boards}/broadwell.c                 |  6 +++---
 sound/soc/intel/{ => boards}/byt-max98090.c              |  2 +-
 sound/soc/intel/{ => boards}/byt-rt5640.c                |  4 ++--
 .../intel/{bytcr_dpcm_rt5640.c => boards/bytcr_rt5640.c} |  0
 sound/soc/intel/{ => boards}/cht_bsw_rt5645.c            |  0
 sound/soc/intel/{ => boards}/cht_bsw_rt5672.c            |  0
 sound/soc/intel/{ => boards}/haswell.c                   |  6 +++---
 sound/soc/intel/{ => boards}/mfld_machine.c              |  0
 10 files changed, 25 insertions(+), 24 deletions(-)
 create mode 100644 sound/soc/intel/boards/Makefile
 rename sound/soc/intel/{ => boards}/broadwell.c (98%)
 rename sound/soc/intel/{ => boards}/byt-max98090.c (99%)
 rename sound/soc/intel/{ => boards}/byt-rt5640.c (98%)
 rename sound/soc/intel/{bytcr_dpcm_rt5640.c => boards/bytcr_rt5640.c} (100%)
 rename sound/soc/intel/{ => boards}/cht_bsw_rt5645.c (100%)
 rename sound/soc/intel/{ => boards}/cht_bsw_rt5672.c (100%)
 rename sound/soc/intel/{ => boards}/haswell.c (98%)
 rename sound/soc/intel/{ => boards}/mfld_machine.c (100%)
sound/soc/intel/Makefile +1 -15
index eb3efce..ac0248f 100644
@@ -16,21 +16,7 @@ snd-soc-sst-baytrail-pcm-objs := \
 obj-$(CONFIG_SND_SOC_INTEL_BAYTRAIL) += snd-soc-sst-baytrail-pcm.o
 
 # Machine support
-snd-soc-sst-haswell-objs := haswell.o
-snd-soc-sst-byt-rt5640-mach-objs := byt-rt5640.o
-snd-soc-sst-byt-max98090-mach-objs := byt-max98090.o
-snd-soc-sst-broadwell-objs := broadwell.o
-snd-soc-sst-bytcr-dpcm-rt5640-objs := bytcr_dpcm_rt5640.o
-snd-soc-sst-cht-bsw-rt5672-objs := cht_bsw_rt5672.o
-snd-soc-sst-cht-bsw-rt5645-objs := cht_bsw_rt5645.o
-
-obj-$(CONFIG_SND_SOC_INTEL_HASWELL_MACH) += snd-soc-sst-haswell.o
-obj-$(CONFIG_SND_SOC_INTEL_BYT_RT5640_MACH) += snd-soc-sst-byt-rt5640-mach.o
-obj-$(CONFIG_SND_SOC_INTEL_BYT_MAX98090_MACH) += snd-soc-sst-byt-max98090-mach.o
-obj-$(CONFIG_SND_SOC_INTEL_BROADWELL_MACH) += snd-soc-sst-broadwell.o
-obj-$(CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH) += snd-soc-sst-bytcr-dpcm-rt5640.o
-obj-$(CONFIG_SND_SOC_INTEL_CHT_BSW_RT5672_MACH) += snd-soc-sst-cht-bsw-rt5672.o
-obj-$(CONFIG_SND_SOC_INTEL_CHT_BSW_RT5645_MACH) += snd-soc-sst-cht-bsw-rt5645.o
+obj-$(CONFIG_SND_SOC_INTEL_SST) += boards/
 
 # DSP driver
 obj-$(CONFIG_SND_SST_IPC) += sst/
sound/soc/intel/boards/Makefile new file +15 -0
new file mode 100644
index 0000000..f8237f0
@@ -0,0 +1,15 @@
+snd-soc-sst-haswell-objs := haswell.o
+snd-soc-sst-byt-rt5640-mach-objs := byt-rt5640.o
+snd-soc-sst-byt-max98090-mach-objs := byt-max98090.o
+snd-soc-sst-broadwell-objs := broadwell.o
+snd-soc-sst-bytcr-rt5640-objs := bytcr_rt5640.o
+snd-soc-sst-cht-bsw-rt5672-objs := cht_bsw_rt5672.o
+snd-soc-sst-cht-bsw-rt5645-objs := cht_bsw_rt5645.o
+
+obj-$(CONFIG_SND_SOC_INTEL_HASWELL_MACH) += snd-soc-sst-haswell.o
+obj-$(CONFIG_SND_SOC_INTEL_BYT_RT5640_MACH) += snd-soc-sst-byt-rt5640-mach.o
+obj-$(CONFIG_SND_SOC_INTEL_BYT_MAX98090_MACH) += snd-soc-sst-byt-max98090-mach.o
+obj-$(CONFIG_SND_SOC_INTEL_BROADWELL_MACH) += snd-soc-sst-broadwell.o
+obj-$(CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH) += snd-soc-sst-bytcr-rt5640.o
+obj-$(CONFIG_SND_SOC_INTEL_CHT_BSW_RT5672_MACH) += snd-soc-sst-cht-bsw-rt5672.o
+obj-$(CONFIG_SND_SOC_INTEL_CHT_BSW_RT5645_MACH) += snd-soc-sst-cht-bsw-rt5645.o
sound/soc/intel/boards/broadwell.c renamed from sound/soc/intel/broadwell.c +3 -3
similarity index 98%
rename from sound/soc/intel/broadwell.c
rename to sound/soc/intel/boards/broadwell.c
index 6c75b6b..8bafaf6 100644
@@ -22,10 +22,10 @@
 #include <sound/jack.h>
 #include <sound/pcm_params.h>
 
-#include "sst-dsp.h"
-#include "sst-haswell-ipc.h"
+#include "../common/sst-dsp.h"
+#include "../haswell/sst-haswell-ipc.h"
 
-#include "../codecs/rt286.h"
+#include "../../codecs/rt286.h"
 
 static struct snd_soc_jack broadwell_headset;
 /* Headset jack detection DAPM pins */
sound/soc/intel/boards/byt-max98090.c renamed from sound/soc/intel/byt-max98090.c +1 -1
similarity index 99%
rename from sound/soc/intel/byt-max98090.c
rename to sound/soc/intel/boards/byt-max98090.c
index d8b1f03..7ab8cc9 100644
@@ -24,7 +24,7 @@
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include <sound/jack.h>
-#include "../codecs/max98090.h"
+#include "../../codecs/max98090.h"
 
 struct byt_max98090_private {
 	struct snd_soc_jack jack;
sound/soc/intel/boards/byt-rt5640.c renamed from sound/soc/intel/byt-rt5640.c +2 -2
similarity index 98%
rename from sound/soc/intel/byt-rt5640.c
rename to sound/soc/intel/boards/byt-rt5640.c
index 354eaad..ae89b9b9 100644
@@ -23,9 +23,9 @@
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include <sound/jack.h>
-#include "../codecs/rt5640.h"
+#include "../../codecs/rt5640.h"
 
-#include "sst-dsp.h"
+#include "../common/sst-dsp.h"
 
 static const struct snd_soc_dapm_widget byt_rt5640_widgets[] = {
 	SND_SOC_DAPM_HP("Headphone", NULL),
sound/soc/intel/boards/bytcr_rt5640.c renamed from sound/soc/intel/bytcr_dpcm_rt5640.c +0 -0
similarity index 100%
rename from sound/soc/intel/bytcr_dpcm_rt5640.c
rename to sound/soc/intel/boards/bytcr_rt5640.c
sound/soc/intel/boards/cht_bsw_rt5645.c renamed from sound/soc/intel/cht_bsw_rt5645.c +0 -0
similarity index 100%
rename from sound/soc/intel/cht_bsw_rt5645.c
rename to sound/soc/intel/boards/cht_bsw_rt5645.c
sound/soc/intel/boards/cht_bsw_rt5672.c renamed from sound/soc/intel/cht_bsw_rt5672.c +0 -0
similarity index 100%
rename from sound/soc/intel/cht_bsw_rt5672.c
rename to sound/soc/intel/boards/cht_bsw_rt5672.c
sound/soc/intel/boards/haswell.c renamed from sound/soc/intel/haswell.c +3 -3
similarity index 98%
rename from sound/soc/intel/haswell.c
rename to sound/soc/intel/boards/haswell.c
index 00fddd3..2255857 100644
@@ -21,10 +21,10 @@
 #include <sound/soc.h>
 #include <sound/pcm_params.h>
 
-#include "sst-dsp.h"
-#include "sst-haswell-ipc.h"
+#include "../common/sst-dsp.h"
+#include "../haswell/sst-haswell-ipc.h"
 
-#include "../codecs/rt5640.h"
+#include "../../codecs/rt5640.h"
 
 /* Haswell ULT platforms have a Headphone and Mic jack */
 static const struct snd_soc_dapm_widget haswell_widgets[] = {
sound/soc/intel/boards/mfld_machine.c renamed from sound/soc/intel/mfld_machine.c +0 -0
similarity index 100%
rename from sound/soc/intel/mfld_machine.c
rename to sound/soc/intel/boards/mfld_machine.c
Signature · 1 line
1.9.1
author
#4 lore raw

PATCH 4/5 ASoC: Intel: create baytrail folder and move baytrail platform files in

In reply to Jie Yang

Restructure the sound/soc/intel/ directory: create baytrail folder, and move sst baytrail platform files here.

---
 sound/soc/intel/Makefile                          | 5 +----
 sound/soc/intel/baytrail/Makefile                 | 4 ++++
 sound/soc/intel/{ => baytrail}/sst-baytrail-dsp.c | 4 ++--
 sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.c | 4 ++--
 sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.h | 0
 sound/soc/intel/{ => baytrail}/sst-baytrail-pcm.c | 4 ++--
 6 files changed, 11 insertions(+), 10 deletions(-)
 create mode 100644 sound/soc/intel/baytrail/Makefile
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-dsp.c (99%)
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.c (99%)
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.h (100%)
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-pcm.c (99%)
sound/soc/intel/Makefile +1 -4
index ac0248f..62de82a 100644
@@ -10,10 +10,7 @@ obj-$(CONFIG_SND_MFLD_MACHINE) += snd-soc-mfld-machine.o
 
 # Platform Support
 obj-$(CONFIG_SND_SOC_INTEL_HASWELL) += haswell/
-snd-soc-sst-baytrail-pcm-objs := \
-	sst-baytrail-ipc.o sst-baytrail-pcm.o sst-baytrail-dsp.o
-
-obj-$(CONFIG_SND_SOC_INTEL_BAYTRAIL) += snd-soc-sst-baytrail-pcm.o
+obj-$(CONFIG_SND_SOC_INTEL_BAYTRAIL) += baytrail/
 
 # Machine support
 obj-$(CONFIG_SND_SOC_INTEL_SST) += boards/
sound/soc/intel/baytrail/Makefile new file +4 -0
new file mode 100644
index 0000000..488408c
@@ -0,0 +1,4 @@
+snd-soc-sst-baytrail-pcm-objs := \
+	        sst-baytrail-ipc.o sst-baytrail-pcm.o sst-baytrail-dsp.o
+
+obj-$(CONFIG_SND_SOC_INTEL_BAYTRAIL) += snd-soc-sst-baytrail-pcm.o
sound/soc/intel/baytrail/sst-baytrail-dsp.c renamed from sound/soc/intel/sst-baytrail-dsp.c +2 -2
similarity index 99%
rename from sound/soc/intel/sst-baytrail-dsp.c
rename to sound/soc/intel/baytrail/sst-baytrail-dsp.c
index 5a9e567..01d023c 100644
@@ -22,8 +22,8 @@
 #include <linux/platform_device.h>
 #include <linux/firmware.h>
 
-#include "sst-dsp.h"
-#include "sst-dsp-priv.h"
+#include "../common/sst-dsp.h"
+#include "../common/sst-dsp-priv.h"
 #include "sst-baytrail-ipc.h"
 
 #define SST_BYT_FW_SIGNATURE_SIZE	4
sound/soc/intel/baytrail/sst-baytrail-ipc.c renamed from sound/soc/intel/sst-baytrail-ipc.c +2 -2
similarity index 99%
rename from sound/soc/intel/sst-baytrail-ipc.c
rename to sound/soc/intel/baytrail/sst-baytrail-ipc.c
index b4ad98c..aabb9b0 100644
@@ -29,8 +29,8 @@
 #include <asm/div64.h>
 
 #include "sst-baytrail-ipc.h"
-#include "sst-dsp.h"
-#include "sst-dsp-priv.h"
+#include "../common/sst-dsp.h"
+#include "../common/sst-dsp-priv.h"
 
 /* IPC message timeout */
 #define IPC_TIMEOUT_MSECS	300
sound/soc/intel/baytrail/sst-baytrail-ipc.h renamed from sound/soc/intel/sst-baytrail-ipc.h +0 -0
similarity index 100%
rename from sound/soc/intel/sst-baytrail-ipc.h
rename to sound/soc/intel/baytrail/sst-baytrail-ipc.h
sound/soc/intel/baytrail/sst-baytrail-pcm.c renamed from sound/soc/intel/sst-baytrail-pcm.c +2 -2
similarity index 99%
rename from sound/soc/intel/sst-baytrail-pcm.c
rename to sound/soc/intel/baytrail/sst-baytrail-pcm.c
index 224c49c..79547be 100644
@@ -20,8 +20,8 @@
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include "sst-baytrail-ipc.h"
-#include "sst-dsp-priv.h"
-#include "sst-dsp.h"
+#include "../common/sst-dsp-priv.h"
+#include "../common/sst-dsp.h"
 
 #define BYT_PCM_COUNT		2
 
Signature · 1 line
1.9.1
author
#5 lore raw

PATCH 5/5 ASoC: Intel: create atom folder and move atom platform files in

In reply to Jie Yang

Restructure the sound/soc/intel/ directory: create atom folder, and move sst atom platform files here.

---
 sound/soc/intel/Makefile                                | 11 +----------
 sound/soc/intel/atom/Makefile                           |  7 +++++++
 sound/soc/intel/{ => atom}/sst-atom-controls.c          |  0
 sound/soc/intel/{ => atom}/sst-atom-controls.h          |  0
 sound/soc/intel/{ => atom}/sst-mfld-dsp.h               |  0
 sound/soc/intel/{ => atom}/sst-mfld-platform-compress.c |  0
 sound/soc/intel/{ => atom}/sst-mfld-platform-pcm.c      |  0
 sound/soc/intel/{ => atom}/sst-mfld-platform.h          |  0
 sound/soc/intel/{ => atom}/sst/Makefile                 |  0
 sound/soc/intel/{ => atom}/sst/sst.c                    |  0
 sound/soc/intel/{ => atom}/sst/sst.h                    |  0
 sound/soc/intel/{ => atom}/sst/sst_acpi.c               |  0
 sound/soc/intel/{ => atom}/sst/sst_drv_interface.c      |  0
 sound/soc/intel/{ => atom}/sst/sst_ipc.c                |  0
 sound/soc/intel/{ => atom}/sst/sst_loader.c             |  0
 sound/soc/intel/{ => atom}/sst/sst_pci.c                |  0
 sound/soc/intel/{ => atom}/sst/sst_pvt.c                |  0
 sound/soc/intel/{ => atom}/sst/sst_stream.c             |  0
 18 files changed, 8 insertions(+), 10 deletions(-)
 create mode 100644 sound/soc/intel/atom/Makefile
 rename sound/soc/intel/{ => atom}/sst-atom-controls.c (100%)
 rename sound/soc/intel/{ => atom}/sst-atom-controls.h (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-dsp.h (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-platform-compress.c (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-platform-pcm.c (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-platform.h (100%)
 rename sound/soc/intel/{ => atom}/sst/Makefile (100%)
 rename sound/soc/intel/{ => atom}/sst/sst.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst.h (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_acpi.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_drv_interface.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_ipc.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_loader.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_pci.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_pvt.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_stream.c (100%)
sound/soc/intel/Makefile +1 -10
index 62de82a..cd9aee9 100644
@@ -1,19 +1,10 @@
 # Core support
 obj-$(CONFIG_SND_SOC_INTEL_SST) += common/
 
-snd-soc-sst-mfld-platform-objs := sst-mfld-platform-pcm.o \
-	sst-mfld-platform-compress.o sst-atom-controls.o
-snd-soc-mfld-machine-objs := mfld_machine.o
-
-obj-$(CONFIG_SND_SST_MFLD_PLATFORM) += snd-soc-sst-mfld-platform.o
-obj-$(CONFIG_SND_MFLD_MACHINE) += snd-soc-mfld-machine.o
-
 # Platform Support
 obj-$(CONFIG_SND_SOC_INTEL_HASWELL) += haswell/
 obj-$(CONFIG_SND_SOC_INTEL_BAYTRAIL) += baytrail/
+obj-$(CONFIG_SND_SOC_INTEL_BAYTRAIL) += atom/
 
 # Machine support
 obj-$(CONFIG_SND_SOC_INTEL_SST) += boards/
-
-# DSP driver
-obj-$(CONFIG_SND_SST_IPC) += sst/
sound/soc/intel/atom/Makefile new file +7 -0
new file mode 100644
index 0000000..ce8074f
@@ -0,0 +1,7 @@
+snd-soc-sst-mfld-platform-objs := sst-mfld-platform-pcm.o \
+	        sst-mfld-platform-compress.o sst-atom-controls.o
+
+obj-$(CONFIG_SND_SST_MFLD_PLATFORM) += snd-soc-sst-mfld-platform.o
+
+# DSP driver
+obj-$(CONFIG_SND_SST_IPC) += sst/
sound/soc/intel/atom/sst-atom-controls.c renamed from sound/soc/intel/sst-atom-controls.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst-atom-controls.c
rename to sound/soc/intel/atom/sst-atom-controls.c
sound/soc/intel/atom/sst-atom-controls.h renamed from sound/soc/intel/sst-atom-controls.h +0 -0
similarity index 100%
rename from sound/soc/intel/sst-atom-controls.h
rename to sound/soc/intel/atom/sst-atom-controls.h
sound/soc/intel/atom/sst-mfld-dsp.h renamed from sound/soc/intel/sst-mfld-dsp.h +0 -0
similarity index 100%
rename from sound/soc/intel/sst-mfld-dsp.h
rename to sound/soc/intel/atom/sst-mfld-dsp.h
sound/soc/intel/atom/sst-mfld-platform-compress.c renamed from sound/soc/intel/sst-mfld-platform-compress.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst-mfld-platform-compress.c
rename to sound/soc/intel/atom/sst-mfld-platform-compress.c
sound/soc/intel/atom/sst-mfld-platform-pcm.c renamed from sound/soc/intel/sst-mfld-platform-pcm.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst-mfld-platform-pcm.c
rename to sound/soc/intel/atom/sst-mfld-platform-pcm.c
sound/soc/intel/atom/sst-mfld-platform.h renamed from sound/soc/intel/sst-mfld-platform.h +0 -0
similarity index 100%
rename from sound/soc/intel/sst-mfld-platform.h
rename to sound/soc/intel/atom/sst-mfld-platform.h
sound/soc/intel/atom/sst/Makefile renamed from sound/soc/intel/sst/Makefile +0 -0
similarity index 100%
rename from sound/soc/intel/sst/Makefile
rename to sound/soc/intel/atom/sst/Makefile
sound/soc/intel/atom/sst/sst.c renamed from sound/soc/intel/sst/sst.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst/sst.c
rename to sound/soc/intel/atom/sst/sst.c
sound/soc/intel/atom/sst/sst.h renamed from sound/soc/intel/sst/sst.h +0 -0
similarity index 100%
rename from sound/soc/intel/sst/sst.h
rename to sound/soc/intel/atom/sst/sst.h
sound/soc/intel/atom/sst/sst_acpi.c renamed from sound/soc/intel/sst/sst_acpi.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst/sst_acpi.c
rename to sound/soc/intel/atom/sst/sst_acpi.c
sound/soc/intel/atom/sst/sst_drv_interface.c renamed from sound/soc/intel/sst/sst_drv_interface.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst/sst_drv_interface.c
rename to sound/soc/intel/atom/sst/sst_drv_interface.c
sound/soc/intel/atom/sst/sst_ipc.c renamed from sound/soc/intel/sst/sst_ipc.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst/sst_ipc.c
rename to sound/soc/intel/atom/sst/sst_ipc.c
sound/soc/intel/atom/sst/sst_loader.c renamed from sound/soc/intel/sst/sst_loader.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst/sst_loader.c
rename to sound/soc/intel/atom/sst/sst_loader.c
sound/soc/intel/atom/sst/sst_pci.c renamed from sound/soc/intel/sst/sst_pci.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst/sst_pci.c
rename to sound/soc/intel/atom/sst/sst_pci.c
sound/soc/intel/atom/sst/sst_pvt.c renamed from sound/soc/intel/sst/sst_pvt.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst/sst_pvt.c
rename to sound/soc/intel/atom/sst/sst_pvt.c
sound/soc/intel/atom/sst/sst_stream.c renamed from sound/soc/intel/sst/sst_stream.c +0 -0
similarity index 100%
rename from sound/soc/intel/sst/sst_stream.c
rename to sound/soc/intel/atom/sst/sst_stream.c
Signature · 1 line
1.9.1
maintainer
#6 lore raw
In reply to Jie Yang
Quoted 3 lines · Jie Yang

In order to prepare for the upstreaming of Skylake drivers and to allow reuse of code between different Intel audio DSP products, this patch series restructures the Intel directory as follows:

This is all fine by me - I'd just like to see an ack before we do this from the other Intel people to make sure they're not going to get surprised, and also make sure that any in flight patches (particularly bug fixes) get merged before the rename since this will make it easier to apply things. Indeed, do we have an ETA for the Skylake code? If it's not due before the merge window then it might be best to apply these (or changes like them) at the very end of this development cycle.

author
#7 lore raw
Quoted 8 lines

-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Friday, March 13, 2015 3:54 AM
To: Jie, Yang
Cc: [email protected]; Girdwood, Liam R; Koul, Vinod; Nikula, Jarkko; Bossart, Pierre-louis; Lin, Mengdong; Jin, Yao
Subject: Re: [PATCH 0/5] Intel SST driver restructure

Quoted 7 lines
Quoted 3 lines · Jie Yang

In order to prepare for the upstreaming of Skylake drivers and to allow reuse of code between different Intel audio DSP products, this patch series restructures the Intel directory as follows:

This is all fine by me - I'd just like to see an ack before we do this from the other Intel people to make sure they're not going to get surprised, and also

[Keyon] understood. I have sent this series to Intel internal before here, and Most Intel Linux Audio driver people should have known about this change. Vinod(Atoms & BSW), Jarkko(Baytrail), Mengdong(BSW), Liam(Haswell), could you please help add 'acked-by' if it's OK for you? Thanks.

Quoted 2 lines

make sure that any in flight patches (particularly bug fixes) get merged before the rename since this will make it easier to apply things. Indeed, do

[Keyon] yes, I see that some patches from Jin, Yao are in flight, agree that we should merge them before this restructuring applied.

Quoted 1 line

we have an ETA for the Skylake code? If it's not due before the merge

[Keyon] sorry, I am not clear about this ETA, per my understanding, applying this series sooner may help for our later work: refactor the low level common code into generic APIs.
Hi Liam, what's your comment on this?

Quoted 2 lines

window then it might be best to apply these (or changes like them) at the very end of this development cycle.

#8 lore raw

On Fri, 13 Mar 2015 01:28:00 +0000
"Jie, Yang" <[email protected]> wrote:

[...]

Quoted 11 lines
Quoted 7 lines · Jie Yang
Quoted 3 lines

In order to prepare for the upstreaming of Skylake drivers and to allow reuse of code between different Intel audio DSP products, this patch series restructures the Intel directory as follows:

This is all fine by me - I'd just like to see an ack before we do this from the other Intel people to make sure they're not going to get surprised, and also

[Keyon] understood. I have sent this series to Intel internal before here, and Most Intel Linux Audio driver people should have known about this change. Vinod(Atoms & BSW), Jarkko(Baytrail), Mengdong(BSW), Liam(Haswell), could you please help add 'acked-by' if it's OK for you? Thanks.

[...]

Please, insert a blank line between the quote and the reply, it makes it easier to follow the discussion.

Thanks,
Antonio

Signature · 6 lines
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
#9 lore raw
In reply to Mark Brown
Quoted 10 lines · Mark Brown
Quoted 3 lines · Jie Yang

In order to prepare for the upstreaming of Skylake drivers and to allow reuse of code between different Intel audio DSP products, this patch series restructures the Intel directory as follows:

This is all fine by me - I'd just like to see an ack before we do this from the other Intel people to make sure they're not going to get surprised, and also make sure that any in flight patches (particularly bug fixes) get merged before the rename since this will make it easier to apply things. Indeed, do we have an ETA for the Skylake code? If

Am working on it :) That will take time IMO, the HDA things are tricky here and will get done first followed by ASoC core bits and then finally driver.

Quoted 2 lines

it's not due before the merge window then it might be best to apply these (or changes like them) at the very end of this development cycle.

I think that is a good suggestion, we can send this when merge wondow closes so no issue with in flght code

Signature · 1 line
~Vinod
Acked-by on the v1 series
#10 lore raw
In reply to Jie Yang
Quoted 40 lines · Jie Yang

In order to prepare for the upstreaming of Skylake drivers and to allow reuse of code between different Intel audio DSP products, this patch series restructures the Intel directory as follows:

1. Create "common" directory. Move common files into this directory.

2. Create "boards" directory. Move all machine drivers into this directory.

3. Create "haswell" directory. Move all remaining hsw/bdw code into this directory.

4. Create "baytrail" directory. Move remaining baytrail driver to this directory.

5. Create "atom" directory. Move all MCG platform drivers(including sst/ folder) to this directory.

Todo next step:
1. Change and move atom related codes(in atom/sst/) to corresponding and try share as many as possible codes(e.g. sst_acpi.c).
2. Share more common codes about IPC for different platforms, e.g. The methods for queueing and sending/reciving Tx/Rx messages, The methods for mailbox IO, The IPC error return codes, etc.

Jie Yang (5):
ASoC: Intel: create common folder and move common files in
ASoC: Intel: create haswell folder and move haswell platform files in
ASoC: Intel: create boards folder and move sst boards files in
ASoC: Intel: create baytrail folder and move baytrail platform files
in
ASoC: Intel: create atom folder and move atom platform files in

 sound/soc/intel/Makefile                           | 42 +++-------------------
 sound/soc/intel/atom/Makefile                      |  7 ++++
 sound/soc/intel/{ => atom}/sst-atom-controls.c     |  0
 sound/soc/intel/{ => atom}/sst-atom-controls.h     |  0
 sound/soc/intel/{ => atom}/sst-mfld-dsp.h          |  0
 .../intel/{ => atom}/sst-mfld-platform-compress.c  |  0
 sound/soc/intel/{ => atom}/sst-mfld-platform-pcm.c |  0
 sound/soc/intel/{ => atom}/sst-mfld-platform.h     |  0
 sound/soc/intel/{ => atom}/sst/Makefile            |  0
 sound/soc/intel/{ => atom}/sst/sst.c               |  0
Quoted 8 lines
 sound/soc/intel/{ => atom}/sst/sst.h               |  0
 sound/soc/intel/{ => atom}/sst/sst_acpi.c          |  0
 sound/soc/intel/{ => atom}/sst/sst_drv_interface.c |  0
 sound/soc/intel/{ => atom}/sst/sst_ipc.c           |  0
 sound/soc/intel/{ => atom}/sst/sst_loader.c        |  0
 sound/soc/intel/{ => atom}/sst/sst_pci.c           |  0
 sound/soc/intel/{ => atom}/sst/sst_pvt.c           |  0
 sound/soc/intel/{ => atom}/sst/sst_stream.c        |  0

For atom parts

Signature · 1 line
~Vinod
Quoted 72 lines
 sound/soc/intel/baytrail/Makefile                  |  4 +++
 sound/soc/intel/{ => baytrail}/sst-baytrail-dsp.c  |  4 +--
 sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.c  |  4 +--
 sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.h  |  0
 sound/soc/intel/{ => baytrail}/sst-baytrail-pcm.c  |  4 +--
 sound/soc/intel/boards/Makefile                    | 15 ++++++++
 sound/soc/intel/{ => boards}/broadwell.c           |  6 ++--
 sound/soc/intel/{ => boards}/byt-max98090.c        |  2 +-
 sound/soc/intel/{ => boards}/byt-rt5640.c          |  4 +--
 .../{bytcr_dpcm_rt5640.c => boards/bytcr_rt5640.c} |  0
 sound/soc/intel/{ => boards}/cht_bsw_rt5645.c      |  0
 sound/soc/intel/{ => boards}/cht_bsw_rt5672.c      |  0
 sound/soc/intel/{ => boards}/haswell.c             |  6 ++--
 sound/soc/intel/{ => boards}/mfld_machine.c        |  0
 sound/soc/intel/common/Makefile                    |  6 ++++
 sound/soc/intel/{ => common}/sst-acpi.c            |  0
 sound/soc/intel/{ => common}/sst-dsp-priv.h        |  0
 sound/soc/intel/{ => common}/sst-dsp.c             |  0
 sound/soc/intel/{ => common}/sst-dsp.h             |  0
 sound/soc/intel/{ => common}/sst-firmware.c        |  0
 sound/soc/intel/haswell/Makefile                   |  4 +++
 sound/soc/intel/{ => haswell}/sst-haswell-dsp.c    |  6 ++--
 sound/soc/intel/{ => haswell}/sst-haswell-ipc.c    |  4 +--
 sound/soc/intel/{ => haswell}/sst-haswell-ipc.h    |  0
 sound/soc/intel/{ => haswell}/sst-haswell-pcm.c    |  6 ++--
 43 files changed, 64 insertions(+), 60 deletions(-)
 create mode 100644 sound/soc/intel/atom/Makefile
 rename sound/soc/intel/{ => atom}/sst-atom-controls.c (100%)
 rename sound/soc/intel/{ => atom}/sst-atom-controls.h (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-dsp.h (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-platform-compress.c (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-platform-pcm.c (100%)
 rename sound/soc/intel/{ => atom}/sst-mfld-platform.h (100%)
 rename sound/soc/intel/{ => atom}/sst/Makefile (100%)
 rename sound/soc/intel/{ => atom}/sst/sst.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst.h (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_acpi.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_drv_interface.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_ipc.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_loader.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_pci.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_pvt.c (100%)
 rename sound/soc/intel/{ => atom}/sst/sst_stream.c (100%)
 create mode 100644 sound/soc/intel/baytrail/Makefile
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-dsp.c (99%)
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.c (99%)
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-ipc.h (100%)
 rename sound/soc/intel/{ => baytrail}/sst-baytrail-pcm.c (99%)
 create mode 100644 sound/soc/intel/boards/Makefile
 rename sound/soc/intel/{ => boards}/broadwell.c (98%)
 rename sound/soc/intel/{ => boards}/byt-max98090.c (99%)
 rename sound/soc/intel/{ => boards}/byt-rt5640.c (98%)
 rename sound/soc/intel/{bytcr_dpcm_rt5640.c => boards/bytcr_rt5640.c} (100%)
 rename sound/soc/intel/{ => boards}/cht_bsw_rt5645.c (100%)
 rename sound/soc/intel/{ => boards}/cht_bsw_rt5672.c (100%)
 rename sound/soc/intel/{ => boards}/haswell.c (98%)
 rename sound/soc/intel/{ => boards}/mfld_machine.c (100%)
 create mode 100644 sound/soc/intel/common/Makefile
 rename sound/soc/intel/{ => common}/sst-acpi.c (100%)
 rename sound/soc/intel/{ => common}/sst-dsp-priv.h (100%)
 rename sound/soc/intel/{ => common}/sst-dsp.c (100%)
 rename sound/soc/intel/{ => common}/sst-dsp.h (100%)
 rename sound/soc/intel/{ => common}/sst-firmware.c (100%)
 create mode 100644 sound/soc/intel/haswell/Makefile
 rename sound/soc/intel/{ => haswell}/sst-haswell-dsp.c (99%)
 rename sound/soc/intel/{ => haswell}/sst-haswell-ipc.c (99%)
 rename sound/soc/intel/{ => haswell}/sst-haswell-ipc.h (100%)
 rename sound/soc/intel/{ => haswell}/sst-haswell-pcm.c (99%)
Signature · 1 line
1.9.1
Acked-by Tested-by
#11 lore raw
Quoted 31 lines · Vinod Koul
Quoted 22 lines · Jie Yang

In order to prepare for the upstreaming of Skylake drivers and to allow reuse of code between different Intel audio DSP products, this patch series restructures the Intel directory as follows:

1. Create "common" directory. Move common files into this directory.

2. Create "boards" directory. Move all machine drivers into this directory.

3. Create "haswell" directory. Move all remaining hsw/bdw code into this directory.

4. Create "baytrail" directory. Move remaining baytrail driver to this directory.

5. Create "atom" directory. Move all MCG platform drivers(including sst/ folder) to this directory.

Todo next step:
1. Change and move atom related codes(in atom/sst/) to corresponding and try share as many as possible codes(e.g. sst_acpi.c).
2. Share more common codes about IPC for different platforms, e.g. The methods for queueing and sending/reciving Tx/Rx messages, The methods for mailbox IO, The IPC error return codes, etc.

Quoted 8 lines

Jie Yang (5):
ASoC: Intel: create common folder and move common files in
ASoC: Intel: create haswell folder and move haswell platform files in
ASoC: Intel: create boards folder and move sst boards files in
ASoC: Intel: create baytrail folder and move baytrail platform files
in
ASoC: Intel: create atom folder and move atom platform files in

Quoted 4 lines

For atom parts

I tested the set on byt-rt5640. To all patches (or 1, 3 and 4):

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

author
#12 lore raw
Quoted 42 lines

-----Original Message-----
From: Nikula, Jarkko
Sent: Friday, March 13, 2015 4:19 PM
To: Koul, Vinod; Jie, Yang
Cc: [email protected]; [email protected]; Girdwood, Liam R; Bossart, Pierre-louis; Lin, Mengdong; Jin, Yao
Subject: Re: [PATCH 0/5] Intel SST driver restructure

Quoted 10 lines · Vinod Koul
Quoted 9 lines · Jie Yang

In order to prepare for the upstreaming of Skylake drivers and to allow reuse of code between different Intel audio DSP products, this patch series restructures the Intel directory as follows:

1. Create "common" directory. Move common files into this directory.

2. Create "boards" directory. Move all machine drivers into this directory.

3. Create "haswell" directory. Move all remaining hsw/bdw code into this

directory.

Quoted 2 lines
Quoted 2 lines

4. Create "baytrail" directory. Move remaining baytrail driver to this

directory.

Quoted 19 lines
Quoted 19 lines

5. Create "atom" directory. Move all MCG platform drivers(including sst/ folder) to this directory.

Todo next step:
1. Change and move atom related codes(in atom/sst/) to corresponding and try share as many as possible codes(e.g. sst_acpi.c).
2. Share more common codes about IPC for different platforms, e.g. The methods for queueing and sending/reciving Tx/Rx messages, The methods for mailbox IO, The IPC error return codes, etc.

Jie Yang (5):
ASoC: Intel: create common folder and move common files in
ASoC: Intel: create haswell folder and move haswell platform files in
ASoC: Intel: create boards folder and move sst boards files in
ASoC: Intel: create baytrail folder and move baytrail platform files
in
ASoC: Intel: create atom folder and move atom platform files in

Quoted 8 lines
Quoted 4 lines

For atom parts

I tested the set on byt-rt5640. To all patches (or 1, 3 and 4):

[Keyon] thank you all. Hi Mark, so should I keep them locally and send to you 2 or 3 weeks later, or you will keep them in queue and apply them one day?

maintainer
#13 lore raw
Quoted 2 lines · Yang

[Keyon] thank you all. Hi Mark, so should I keep them locally and send to you 2 or 3 weeks later, or you will keep them in queue and apply them one day?

Well, they won't apply as-is since other people are sending patches for the files as well. What might make more sense is to send a script which generates the commit (so a bunch of mv commands, patch for the Makefile and a changelog entry) then I can do that just before or just after the merge window. Does that make sense?

author
#14 lore raw
Quoted 14 lines

-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Saturday, March 14, 2015 7:34 AM
To: Jie, Yang
Cc: Nikula, Jarkko; Koul, Vinod; [email protected]; Girdwood, Liam R; Bossart, Pierre-louis; Lin, Mengdong; Jin, Yao
Subject: Re: [PATCH 0/5] Intel SST driver restructure

Quoted 3 lines · Yang

[Keyon] thank you all. Hi Mark, so should I keep them locally and send to you
2 or 3 weeks later, or you will keep them in queue and apply them one day?

Quoted 5 lines

Well, they won't apply as-is since other people are sending patches for the files as well. What might make more sense is to send a script which generates the commit (so a bunch of mv commands, patch for the Makefile and a changelog entry) then I can do that just before or just after the merge window. Does that make sense?

[Keyon] yes, it make sense. I will prepare these scripts and send to you later. Thanks.

author
#15 lore raw

Hi, Mark,

No chance to finish these scripts yet, busy on the Jack patches. :(

I just tried and found that this patch series can still apply directly on your for-next branch, seems no more intel patches sent out these days(and merge window are coming?), is it OK that I send the latest series then you can help apply?

Thanks,
~Keyon

Quoted 30 lines

-----Original Message-----
From: Jie, Yang
Sent: Saturday, March 14, 2015 2:05 PM
To: Mark Brown
Cc: Nikula, Jarkko; Koul, Vinod; [email protected]; Girdwood, Liam R; Bossart, Pierre-louis; Lin, Mengdong; Jin, Yao
Subject: RE: [PATCH 0/5] Intel SST driver restructure

Quoted 8 lines

-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Saturday, March 14, 2015 7:34 AM
To: Jie, Yang
Cc: Nikula, Jarkko; Koul, Vinod; [email protected]; Girdwood, Liam R; Bossart, Pierre-louis; Lin, Mengdong; Jin, Yao
Subject: Re: [PATCH 0/5] Intel SST driver restructure

Quoted 5 lines
Quoted 3 lines · Yang

[Keyon] thank you all. Hi Mark, so should I keep them locally and send to you
2 or 3 weeks later, or you will keep them in queue and apply them one

day?

Quoted 6 lines

Well, they won't apply as-is since other people are sending patches for the files as well. What might make more sense is to send a script which generates the commit (so a bunch of mv commands, patch for the Makefile and a changelog entry) then I can do that just before or just after the merge window. Does that make sense?

[Keyon] yes, it make sense. I will prepare these scripts and send to you later. Thanks.

maintainer
#16 lore raw

On Wed, Apr 01, 2015 at 01:53:41AM +0000, Jie, Yang wrote:

Please fix your mailer to word wrap within paragraphs and don't top post.

Quoted 4 lines

I just tried and found that this patch series can still apply directly on your for-next branch, seems no more intel patches sent out these days(and merge window are coming?), is it OK that I send the latest series then you can help apply?

Sure.