Browse Source

audio-lnx: Rename folders to new flat structure.

Kernel audio drivers can be categorised into below folders.
asoc - ALSA based drivers,
asoc/codecs - codec drivers,
ipc - APR IPC communication drivers,
dsp - DSP low level drivers/Audio ION/ADSP Loader,
dsp/codecs - Native encoders and decoders,
soc - SoC based drivers(pinctrl/regmap/soundwire)

Restructure drivers to above folder format.
Include directories also follow above format.

Change-Id: I8fa0857baaacd47db126fb5c1f1f5ed7e886dbc0
Signed-off-by: Laxminath Kasam <[email protected]>
Laxminath Kasam 7 years ago
parent
commit
605b42f92c
100 changed files with 131 additions and 105 deletions
  1. 4 2
      Makefile
  2. 17 1
      asoc/Makefile
  3. 7 1
      asoc/codecs/Makefile
  4. 1 1
      asoc/codecs/audio-ext-clk-up.c
  5. 0 0
      asoc/codecs/audio-ext-clk-up.h
  6. 0 0
      asoc/codecs/audio-ext-clk.c
  7. 0 0
      asoc/codecs/core.h
  8. 0 0
      asoc/codecs/cpe_cmi.h
  9. 0 0
      asoc/codecs/cpe_core.h
  10. 0 0
      asoc/codecs/cpe_err.h
  11. 1 1
      asoc/codecs/msm-cdc-pinctrl.c
  12. 0 0
      asoc/codecs/msm-cdc-pinctrl.h
  13. 1 1
      asoc/codecs/msm-cdc-supply.c
  14. 0 0
      asoc/codecs/msm-cdc-supply.h
  15. 0 0
      asoc/codecs/msm_hdmi_codec_rx.c
  16. 0 0
      asoc/codecs/msm_sdw/Makefile
  17. 0 0
      asoc/codecs/msm_sdw/msm-sdw-tables.c
  18. 0 0
      asoc/codecs/msm_sdw/msm_sdw.h
  19. 0 0
      asoc/codecs/msm_sdw/msm_sdw_cdc.c
  20. 0 0
      asoc/codecs/msm_sdw/msm_sdw_cdc_utils.c
  21. 0 0
      asoc/codecs/msm_sdw/msm_sdw_registers.h
  22. 0 0
      asoc/codecs/msm_sdw/msm_sdw_regmap.c
  23. 0 0
      asoc/codecs/msm_stub.c
  24. 1 1
      asoc/codecs/pdata.h
  25. 0 0
      asoc/codecs/sdm660_cdc/Makefile
  26. 6 6
      asoc/codecs/sdm660_cdc/msm-analog-cdc.c
  27. 1 1
      asoc/codecs/sdm660_cdc/msm-analog-cdc.h
  28. 0 0
      asoc/codecs/sdm660_cdc/msm-cdc-common.h
  29. 4 4
      asoc/codecs/sdm660_cdc/msm-digital-cdc.c
  30. 0 0
      asoc/codecs/sdm660_cdc/msm-digital-cdc.h
  31. 0 0
      asoc/codecs/sdm660_cdc/sdm660-cdc-irq.c
  32. 0 0
      asoc/codecs/sdm660_cdc/sdm660-cdc-irq.h
  33. 0 0
      asoc/codecs/sdm660_cdc/sdm660-cdc-registers.h
  34. 0 0
      asoc/codecs/sdm660_cdc/sdm660-regmap.c
  35. 0 0
      asoc/codecs/wcd-dsp-mgr.c
  36. 0 0
      asoc/codecs/wcd-dsp-utils.c
  37. 0 0
      asoc/codecs/wcd-dsp-utils.h
  38. 0 0
      asoc/codecs/wcd-mbhc-adc.c
  39. 0 0
      asoc/codecs/wcd-mbhc-adc.h
  40. 0 0
      asoc/codecs/wcd-mbhc-legacy.c
  41. 0 0
      asoc/codecs/wcd-mbhc-legacy.h
  42. 0 0
      asoc/codecs/wcd-mbhc-v2-api.h
  43. 1 1
      asoc/codecs/wcd-mbhc-v2.c
  44. 0 0
      asoc/codecs/wcd-mbhc-v2.h
  45. 0 0
      asoc/codecs/wcd-spi-registers.h
  46. 0 0
      asoc/codecs/wcd-spi.c
  47. 2 2
      asoc/codecs/wcd9335-regmap.c
  48. 1 1
      asoc/codecs/wcd9335-tables.c
  49. 7 7
      asoc/codecs/wcd9335.c
  50. 2 2
      asoc/codecs/wcd9335.h
  51. 0 0
      asoc/codecs/wcd9335_irq.h
  52. 0 0
      asoc/codecs/wcd9335_registers.h
  53. 2 1
      asoc/codecs/wcd934x/Makefile
  54. 1 1
      asoc/codecs/wcd934x/wcd934x-dsd.c
  55. 0 0
      asoc/codecs/wcd934x/wcd934x-dsd.h
  56. 3 3
      asoc/codecs/wcd934x/wcd934x-dsp-cntl.c
  57. 0 0
      asoc/codecs/wcd934x/wcd934x-dsp-cntl.h
  58. 5 5
      asoc/codecs/wcd934x/wcd934x-mbhc.c
  59. 0 0
      asoc/codecs/wcd934x/wcd934x-mbhc.h
  60. 3 3
      asoc/codecs/wcd934x/wcd934x-regmap.c
  61. 0 0
      asoc/codecs/wcd934x/wcd934x-routing.h
  62. 1 1
      asoc/codecs/wcd934x/wcd934x-tables.c
  63. 7 7
      asoc/codecs/wcd934x/wcd934x.c
  64. 2 2
      asoc/codecs/wcd934x/wcd934x.h
  65. 0 0
      asoc/codecs/wcd934x/wcd934x_irq.h
  66. 1 1
      asoc/codecs/wcd9xxx-common-v2.c
  67. 0 0
      asoc/codecs/wcd9xxx-common-v2.h
  68. 3 3
      asoc/codecs/wcd9xxx-core-init.c
  69. 8 8
      asoc/codecs/wcd9xxx-core.c
  70. 3 3
      asoc/codecs/wcd9xxx-irq.c
  71. 1 1
      asoc/codecs/wcd9xxx-irq.h
  72. 1 1
      asoc/codecs/wcd9xxx-regmap.h
  73. 3 3
      asoc/codecs/wcd9xxx-resmgr-v2.c
  74. 1 1
      asoc/codecs/wcd9xxx-resmgr-v2.h
  75. 7 7
      asoc/codecs/wcd9xxx-rst.c
  76. 1 1
      asoc/codecs/wcd9xxx-slimslave.c
  77. 4 4
      asoc/codecs/wcd9xxx-slimslave.h
  78. 0 0
      asoc/codecs/wcd9xxx-soc-init.c
  79. 6 6
      asoc/codecs/wcd9xxx-utils.c
  80. 2 2
      asoc/codecs/wcd9xxx-utils.h
  81. 0 0
      asoc/codecs/wcd_cmi_api.h
  82. 5 5
      asoc/codecs/wcd_cpe_core.c
  83. 0 0
      asoc/codecs/wcd_cpe_core.h
  84. 3 2
      asoc/codecs/wcd_cpe_services.c
  85. 0 0
      asoc/codecs/wcd_cpe_services.h
  86. 0 0
      asoc/codecs/wcdcal-hwdep.c
  87. 0 0
      asoc/codecs/wcdcal-hwdep.h
  88. 0 0
      asoc/codecs/wsa881x-analog.c
  89. 0 0
      asoc/codecs/wsa881x-analog.h
  90. 0 0
      asoc/codecs/wsa881x-irq.c
  91. 0 0
      asoc/codecs/wsa881x-irq.h
  92. 0 0
      asoc/codecs/wsa881x-registers-analog.h
  93. 0 0
      asoc/codecs/wsa881x-registers.h
  94. 0 0
      asoc/codecs/wsa881x-regmap-analog.c
  95. 0 0
      asoc/codecs/wsa881x-regmap.c
  96. 0 0
      asoc/codecs/wsa881x-tables-analog.c
  97. 0 0
      asoc/codecs/wsa881x-tables.c
  98. 0 0
      asoc/codecs/wsa881x-temp-sensor.c
  99. 0 0
      asoc/codecs/wsa881x-temp-sensor.h
  100. 2 2
      asoc/codecs/wsa881x.c

+ 4 - 2
Makefile

@@ -19,5 +19,7 @@ LINUXINCLUDE    += \
                 -include $(srctree)/techpack/audio/config/sdm845autoconf.h
 endif
 
-obj-y           += drivers/
-obj-y           += sound/
+obj-y += asoc/
+obj-y += dsp/
+obj-y += ipc/
+obj-y += soc/

+ 17 - 1
sound/soc/msm/Makefile → asoc/Makefile

@@ -3,7 +3,6 @@
 snd-soc-hostless-pcm-objs := msm-pcm-hostless.o
 obj-$(CONFIG_SND_SOC_MSM_HOSTLESS_PCM) += snd-soc-hostless-pcm.o
 
-obj-$(CONFIG_SND_SOC_MSM_QDSP6V2_INTF) += qdsp6v2/
 
 snd-soc-qdsp6v2-objs := msm-dai-fe.o
 obj-$(CONFIG_SND_SOC_QDSP6V2) += snd-soc-qdsp6v2.o
@@ -37,3 +36,20 @@ obj-$(CONFIG_SND_SOC_EXT_CODEC) += snd-soc-ext-codec.o
 # for SDM845 sound card driver
 snd-soc-sdm845-objs := sdm845.o
 obj-$(CONFIG_SND_SOC_MACHINE_SDM845) += snd-soc-sdm845.o
+
+snd-soc-qdsp6v2-objs += msm-dai-q6-v2.o msm-pcm-q6-v2.o \
+			msm-pcm-routing-v2.o msm-compress-q6-v2.o \
+			msm-pcm-afe-v2.o msm-pcm-voip-v2.o \
+			msm-pcm-voice-v2.o msm-dai-q6-hdmi-v2.o \
+			msm-lsm-client.o msm-pcm-host-voice-v2.o \
+			msm-audio-effects-q6-v2.o msm-pcm-loopback-v2.o \
+			msm-dai-slim.o msm-transcode-loopback-q6-v2.o msm-pcm-q6-noirq.o
+obj-$(CONFIG_SND_SOC_QDSP6V2) += snd-soc-qdsp6v2.o msm-pcm-dtmf-v2.o \
+				 msm-dai-stub-v2.o
+obj-$(CONFIG_SND_HWDEP) += msm-pcm-routing-devdep.o
+obj-$(CONFIG_DOLBY_DAP) += msm-dolby-dap-config.o
+obj-$(CONFIG_DOLBY_DS2) += msm-ds2-dap-config.o
+obj-$(CONFIG_DOLBY_LICENSE) += msm-ds2-dap-config.o
+obj-$(CONFIG_DTS_SRS_TM) += msm-dts-srs-tm-config.o
+obj-$(CONFIG_QTI_PP) += msm-qti-pp-config.o
+obj-y += codecs/

+ 7 - 1
sound/soc/codecs/Makefile → asoc/codecs/Makefile

@@ -1,4 +1,3 @@
-snd-soc-wcd934x-objs := wcd934x.o
 snd-soc-wcd9xxx-v2-objs := wcd9xxx-common-v2.o wcd9xxx-resmgr-v2.o wcdcal-hwdep.o wcd9xxx-soc-init.o
 snd-soc-wcd-cpe-objs := wcd_cpe_services.o wcd_cpe_core.o
 snd-soc-wsa881x-objs := wsa881x.o wsa881x-tables.o wsa881x-regmap.o wsa881x-temp-sensor.o
@@ -24,3 +23,10 @@ obj-$(CONFIG_SND_SOC_WCD_SPI)  += snd-soc-wcd-spi.o
 
 snd-soc-msm-stub-objs := msm_stub.o
 obj-$(CONFIG_SND_SOC_MSM_STUB)  += snd-soc-msm-stub.o
+
+wcd-core-objs                  := wcd9xxx-rst.o wcd9xxx-core-init.o \
+				wcd9xxx-core.o wcd9xxx-irq.o \
+				wcd9xxx-slimslave.o wcd9xxx-utils.o \
+				wcd9335-regmap.o wcd9335-tables.o \
+				msm-cdc-pinctrl.o msm-cdc-supply.o
+obj-$(CONFIG_WCD9XXX_CODEC_CORE) += wcd-core.o

+ 1 - 1
sound/soc/codecs/audio-ext-clk-up.c → asoc/codecs/audio-ext-clk-up.c

@@ -22,7 +22,7 @@
 #include <linux/gpio.h>
 #include <linux/of_gpio.h>
 #include <dt-bindings/clock/qcom,audio-ext-clk.h>
-#include <sound/q6afe-v2.h>
+#include <dsp/q6afe-v2.h>
 #include "audio-ext-clk-up.h"
 
 enum audio_clk_mux {

+ 0 - 0
sound/soc/codecs/audio-ext-clk-up.h → asoc/codecs/audio-ext-clk-up.h


+ 0 - 0
sound/soc/codecs/audio-ext-clk.c → asoc/codecs/audio-ext-clk.c


+ 0 - 0
include/linux/mfd/wcd9xxx/core.h → asoc/codecs/core.h


+ 0 - 0
include/sound/cpe_cmi.h → asoc/codecs/cpe_cmi.h


+ 0 - 0
include/sound/cpe_core.h → asoc/codecs/cpe_core.h


+ 0 - 0
include/sound/cpe_err.h → asoc/codecs/cpe_err.h


+ 1 - 1
drivers/mfd/msm-cdc-pinctrl.c → asoc/codecs/msm-cdc-pinctrl.c

@@ -19,7 +19,7 @@
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
 #include <linux/of_gpio.h>
-#include <linux/mfd/msm-cdc-pinctrl.h>
+#include "msm-cdc-pinctrl.h"
 
 struct msm_cdc_pinctrl_info {
 	struct pinctrl *pinctrl;

+ 0 - 0
include/linux/mfd/msm-cdc-pinctrl.h → asoc/codecs/msm-cdc-pinctrl.h


+ 1 - 1
drivers/mfd/msm-cdc-supply.c → asoc/codecs/msm-cdc-supply.c

@@ -16,7 +16,7 @@
 #include <linux/of_irq.h>
 #include <linux/of_device.h>
 #include <linux/slab.h>
-#include <linux/mfd/msm-cdc-supply.h>
+#include "msm-cdc-supply.h"
 #include <linux/regulator/consumer.h>
 
 #define CODEC_DT_MAX_PROP_SIZE 40

+ 0 - 0
include/linux/mfd/msm-cdc-supply.h → asoc/codecs/msm-cdc-supply.h


+ 0 - 0
sound/soc/codecs/msm_hdmi_codec_rx.c → asoc/codecs/msm_hdmi_codec_rx.c


+ 0 - 0
sound/soc/codecs/msm_sdw/Makefile → asoc/codecs/msm_sdw/Makefile


+ 0 - 0
sound/soc/codecs/msm_sdw/msm-sdw-tables.c → asoc/codecs/msm_sdw/msm-sdw-tables.c


+ 0 - 0
sound/soc/codecs/msm_sdw/msm_sdw.h → asoc/codecs/msm_sdw/msm_sdw.h


+ 0 - 0
sound/soc/codecs/msm_sdw/msm_sdw_cdc.c → asoc/codecs/msm_sdw/msm_sdw_cdc.c


+ 0 - 0
sound/soc/codecs/msm_sdw/msm_sdw_cdc_utils.c → asoc/codecs/msm_sdw/msm_sdw_cdc_utils.c


+ 0 - 0
sound/soc/codecs/msm_sdw/msm_sdw_registers.h → asoc/codecs/msm_sdw/msm_sdw_registers.h


+ 0 - 0
sound/soc/codecs/msm_sdw/msm_sdw_regmap.c → asoc/codecs/msm_sdw/msm_sdw_regmap.c


+ 0 - 0
sound/soc/codecs/msm_stub.c → asoc/codecs/msm_stub.c


+ 1 - 1
include/linux/mfd/wcd9xxx/pdata.h → asoc/codecs/pdata.h

@@ -15,7 +15,7 @@
 #define __MFD_WCD9XXX_PDATA_H__
 
 #include <linux/slimbus/slimbus.h>
-#include <linux/mfd/msm-cdc-supply.h>
+#include "msm-cdc-supply.h"
 
 #define MICBIAS_EXT_BYP_CAP 0x00
 #define MICBIAS_NO_EXT_BYP_CAP 0x01

+ 0 - 0
sound/soc/codecs/sdm660_cdc/Makefile → asoc/codecs/sdm660_cdc/Makefile


+ 6 - 6
sound/soc/codecs/sdm660_cdc/msm-analog-cdc.c → asoc/codecs/sdm660_cdc/msm-analog-cdc.c

@@ -16,22 +16,22 @@
 #include <linux/debugfs.h>
 #include <linux/delay.h>
 #include <linux/regulator/consumer.h>
-#include <linux/qdsp6v2/apr.h>
 #include <linux/workqueue.h>
 #include <linux/regmap.h>
-#include <linux/qdsp6v2/audio_notifier.h>
-#include <sound/q6afe-v2.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include <sound/soc-dapm.h>
 #include <sound/tlv.h>
-#include <sound/q6core.h>
+#include <dsp/audio_notifier.h>
+#include <dsp/q6afe-v2.h>
+#include <dsp/q6core.h>
+#include <ipc/apr.h>
 #include "msm-analog-cdc.h"
+#include "msm-cdc-common.h"
 #include "sdm660-cdc-irq.h"
 #include "sdm660-cdc-registers.h"
-#include "msm-cdc-common.h"
-#include "../../msm/sdm660-common.h"
+#include "../../sdm660-common.h"
 #include "../wcd-mbhc-v2-api.h"
 
 #define DRV_NAME "pmic_analog_codec"

+ 1 - 1
sound/soc/codecs/sdm660_cdc/msm-analog-cdc.h → asoc/codecs/sdm660_cdc/msm-analog-cdc.h

@@ -14,7 +14,7 @@
 
 #include <sound/soc.h>
 #include <sound/jack.h>
-#include <sound/q6afe-v2.h>
+#include <dsp/q6afe-v2.h>
 #include "../wcd-mbhc-v2.h"
 #include "../wcdcal-hwdep.h"
 #include "sdm660-cdc-registers.h"

+ 0 - 0
sound/soc/codecs/sdm660_cdc/msm-cdc-common.h → asoc/codecs/sdm660_cdc/msm-cdc-common.h


+ 4 - 4
sound/soc/codecs/sdm660_cdc/msm-digital-cdc.c → asoc/codecs/sdm660_cdc/msm-digital-cdc.c

@@ -17,20 +17,20 @@
 #include <linux/printk.h>
 #include <linux/debugfs.h>
 #include <linux/delay.h>
-#include <linux/qdsp6v2/apr.h>
 #include <linux/workqueue.h>
 #include <linux/regmap.h>
-#include <sound/q6afe-v2.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include <sound/soc-dapm.h>
 #include <sound/tlv.h>
+#include <dsp/q6afe-v2.h>
+#include <ipc/apr.h>
+#include <soc/internal.h>
 #include "sdm660-cdc-registers.h"
 #include "msm-digital-cdc.h"
 #include "msm-cdc-common.h"
-#include "../../msm/sdm660-common.h"
-#include "../../../../drivers/base/regmap/internal.h"
+#include "../../sdm660-common.h"
 
 #define DRV_NAME "msm_digital_codec"
 #define MCLK_RATE_9P6MHZ        9600000

+ 0 - 0
sound/soc/codecs/sdm660_cdc/msm-digital-cdc.h → asoc/codecs/sdm660_cdc/msm-digital-cdc.h


+ 0 - 0
sound/soc/codecs/sdm660_cdc/sdm660-cdc-irq.c → asoc/codecs/sdm660_cdc/sdm660-cdc-irq.c


+ 0 - 0
sound/soc/codecs/sdm660_cdc/sdm660-cdc-irq.h → asoc/codecs/sdm660_cdc/sdm660-cdc-irq.h


+ 0 - 0
sound/soc/codecs/sdm660_cdc/sdm660-cdc-registers.h → asoc/codecs/sdm660_cdc/sdm660-cdc-registers.h


+ 0 - 0
sound/soc/codecs/sdm660_cdc/sdm660-regmap.c → asoc/codecs/sdm660_cdc/sdm660-regmap.c


+ 0 - 0
sound/soc/codecs/wcd-dsp-mgr.c → asoc/codecs/wcd-dsp-mgr.c


+ 0 - 0
sound/soc/codecs/wcd-dsp-utils.c → asoc/codecs/wcd-dsp-utils.c


+ 0 - 0
sound/soc/codecs/wcd-dsp-utils.h → asoc/codecs/wcd-dsp-utils.h


+ 0 - 0
sound/soc/codecs/wcd-mbhc-adc.c → asoc/codecs/wcd-mbhc-adc.c


+ 0 - 0
sound/soc/codecs/wcd-mbhc-adc.h → asoc/codecs/wcd-mbhc-adc.h


+ 0 - 0
sound/soc/codecs/wcd-mbhc-legacy.c → asoc/codecs/wcd-mbhc-legacy.c


+ 0 - 0
sound/soc/codecs/wcd-mbhc-legacy.h → asoc/codecs/wcd-mbhc-legacy.h


+ 0 - 0
sound/soc/codecs/wcd-mbhc-v2-api.h → asoc/codecs/wcd-mbhc-v2-api.h


+ 1 - 1
sound/soc/codecs/wcd-mbhc-v2.c → asoc/codecs/wcd-mbhc-v2.c

@@ -25,9 +25,9 @@
 #include <linux/input.h>
 #include <linux/firmware.h>
 #include <linux/completion.h>
-#include <linux/mfd/msm-cdc-pinctrl.h>
 #include <sound/soc.h>
 #include <sound/jack.h>
+#include "msm-cdc-pinctrl.h"
 #include "wcdcal-hwdep.h"
 #include "wcd-mbhc-legacy.h"
 #include "wcd-mbhc-adc.h"

+ 0 - 0
sound/soc/codecs/wcd-mbhc-v2.h → asoc/codecs/wcd-mbhc-v2.h


+ 0 - 0
sound/soc/codecs/wcd-spi-registers.h → asoc/codecs/wcd-spi-registers.h


+ 0 - 0
sound/soc/codecs/wcd-spi.c → asoc/codecs/wcd-spi.c


+ 2 - 2
drivers/mfd/wcd9335-regmap.c → asoc/codecs/wcd9335-regmap.c

@@ -11,11 +11,11 @@
  * GNU General Public License for more details.
  */
 
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9335/registers.h>
 #include <linux/regmap.h>
 #include <linux/device.h>
+#include "core.h"
 #include "wcd9xxx-regmap.h"
+#include "wcd9335_registers.h"
 
 static const struct reg_sequence wcd9335_1_x_defaults[] = {
 	{ WCD9335_CODEC_RPM_CLK_GATE,                     0x03,  0x00 },

+ 1 - 1
drivers/mfd/wcd9335-tables.c → asoc/codecs/wcd9335-tables.c

@@ -12,7 +12,7 @@
  */
 
 #include <linux/types.h>
-#include <linux/mfd/wcd9335/registers.h>
+#include "wcd9335_registers.h"
 
 #define WCD9335_REG(reg)  ((reg) & 0xFF)
 

+ 7 - 7
sound/soc/codecs/wcd9335.c → asoc/codecs/wcd9335.c

@@ -22,29 +22,29 @@
 #include <linux/wait.h>
 #include <linux/bitops.h>
 #include <linux/regmap.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-irq.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
-#include <linux/mfd/wcd9335/registers.h>
-#include <linux/mfd/wcd9335/irq.h>
-#include <linux/mfd/wcd9xxx/pdata.h>
 #include <linux/regulator/consumer.h>
 #include <linux/clk.h>
 #include <linux/delay.h>
 #include <linux/pm_runtime.h>
 #include <linux/kernel.h>
 #include <linux/gpio.h>
-#include <linux/soundwire/swr-wcd.h>
+#include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
+#include <soc/swr-wcd.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include <sound/soc-dapm.h>
 #include <sound/tlv.h>
 #include <sound/info.h>
+#include "core.h"
+#include "pdata.h"
 #include "wcd9335.h"
 #include "wcd-mbhc-v2.h"
 #include "wcd9xxx-common-v2.h"
 #include "wcd9xxx-resmgr-v2.h"
+#include "wcd9xxx-irq.h"
+#include "wcd9335_registers.h"
+#include "wcd9335_irq.h"
 #include "wcd_cpe_core.h"
 #include "wcdcal-hwdep.h"
 #include "wcd-mbhc-v2-api.h"

+ 2 - 2
sound/soc/codecs/wcd9335.h → asoc/codecs/wcd9335.h

@@ -15,8 +15,8 @@
 
 #include <sound/soc.h>
 #include <sound/jack.h>
-#include <sound/apr_audio-v2.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-slimslave.h>
+#include <dsp/apr_audio-v2.h>
+#include "wcd9xxx-slimslave.h"
 #include "wcd-mbhc-v2.h"
 
 #define TASHA_REG_VAL(reg, val)      {reg, 0, val}

+ 0 - 0
include/linux/mfd/wcd9335/irq.h → asoc/codecs/wcd9335_irq.h


+ 0 - 0
include/linux/mfd/wcd9335/registers.h → asoc/codecs/wcd9335_registers.h


+ 2 - 1
sound/soc/codecs/wcd934x/Makefile → asoc/codecs/wcd934x/Makefile

@@ -2,5 +2,6 @@
 # Makefile for wcd934x codec driver.
 #
 snd-soc-wcd934x-objs := wcd934x.o wcd934x-dsp-cntl.o \
-			wcd934x-mbhc.o wcd934x-dsd.o
+			wcd934x-mbhc.o wcd934x-dsd.o \
+			wcd934x-regmap.o wcd934x-tables.o
 obj-$(CONFIG_SND_SOC_WCD934X) += snd-soc-wcd934x.o

+ 1 - 1
sound/soc/codecs/wcd934x/wcd934x-dsd.c → asoc/codecs/wcd934x/wcd934x-dsd.c

@@ -12,9 +12,9 @@
 
 #include <linux/module.h>
 #include <linux/delay.h>
-#include <linux/mfd/wcd934x/registers.h>
 #include <sound/tlv.h>
 #include <sound/control.h>
+#include <asoc/wcd934x_registers.h>
 #include "wcd934x-dsd.h"
 
 #define DSD_VOLUME_MAX_0dB      0

+ 0 - 0
sound/soc/codecs/wcd934x/wcd934x-dsd.h → asoc/codecs/wcd934x/wcd934x-dsd.h


+ 3 - 3
sound/soc/codecs/wcd934x/wcd934x-dsp-cntl.c → asoc/codecs/wcd934x/wcd934x-dsp-cntl.c

@@ -15,13 +15,13 @@
 #include <linux/delay.h>
 #include <linux/component.h>
 #include <linux/debugfs.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-irq.h>
-#include <linux/mfd/wcd934x/registers.h>
 #include <sound/soc.h>
 #include <sound/wcd-dsp-mgr.h>
+#include <asoc/wcd934x_registers.h>
 #include "wcd934x.h"
 #include "wcd934x-dsp-cntl.h"
+#include "../wcd9xxx-irq.h"
+#include "../core.h"
 
 #define WCD_CNTL_DIR_NAME_LEN_MAX 32
 #define WCD_CPE_FLL_MAX_RETRIES 5

+ 0 - 0
sound/soc/codecs/wcd934x/wcd934x-dsp-cntl.h → asoc/codecs/wcd934x/wcd934x-dsp-cntl.h


+ 5 - 5
sound/soc/codecs/wcd934x/wcd934x-mbhc.c → asoc/codecs/wcd934x/wcd934x-mbhc.c

@@ -20,18 +20,18 @@
 #include <linux/gpio.h>
 #include <linux/delay.h>
 #include <linux/regmap.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-irq.h>
 #include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
-#include <linux/mfd/wcd934x/registers.h>
-#include <linux/mfd/wcd934x/irq.h>
-#include <linux/mfd/wcd9xxx/pdata.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include <sound/soc-dapm.h>
 #include "wcd934x.h"
 #include "wcd934x-mbhc.h"
+#include <asoc/wcd934x_registers.h>
+#include "wcd934x_irq.h"
+#include "../core.h"
+#include "../pdata.h"
+#include "../wcd9xxx-irq.h"
 #include "../wcdcal-hwdep.h"
 #include "../wcd-mbhc-v2-api.h"
 

+ 0 - 0
sound/soc/codecs/wcd934x/wcd934x-mbhc.h → asoc/codecs/wcd934x/wcd934x-mbhc.h


+ 3 - 3
drivers/mfd/wcd934x-regmap.c → asoc/codecs/wcd934x/wcd934x-regmap.c

@@ -11,11 +11,11 @@
  * GNU General Public License for more details.
  */
 
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd934x/registers.h>
 #include <linux/regmap.h>
 #include <linux/device.h>
-#include "wcd9xxx-regmap.h"
+#include <asoc/wcd934x_registers.h>
+#include "../core.h"
+#include "../wcd9xxx-regmap.h"
 
 
 static const struct reg_sequence wcd934x_1_1_defaults[] = {

+ 0 - 0
sound/soc/codecs/wcd934x/wcd934x-routing.h → asoc/codecs/wcd934x/wcd934x-routing.h


+ 1 - 1
drivers/mfd/wcd934x-tables.c → asoc/codecs/wcd934x/wcd934x-tables.c

@@ -12,7 +12,7 @@
  */
 
 #include <linux/types.h>
-#include <linux/mfd/wcd934x/registers.h>
+#include <asoc/wcd934x_registers.h>
 
 #define WCD934X_REG(reg)  ((reg) & 0xFF)
 

+ 7 - 7
sound/soc/codecs/wcd934x/wcd934x.c → asoc/codecs/wcd934x/wcd934x.c

@@ -27,24 +27,24 @@
 #include <linux/gpio.h>
 #include <linux/regmap.h>
 #include <linux/spi/spi.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-irq.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
-#include <linux/mfd/wcd934x/registers.h>
-#include <linux/mfd/wcd934x/irq.h>
-#include <linux/mfd/wcd9xxx/pdata.h>
 #include <linux/regulator/consumer.h>
-#include <linux/soundwire/swr-wcd.h>
+#include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
+#include <soc/swr-wcd.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include <sound/soc-dapm.h>
 #include <sound/tlv.h>
 #include <sound/info.h>
+#include <asoc/wcd934x_registers.h>
 #include "wcd934x.h"
 #include "wcd934x-mbhc.h"
 #include "wcd934x-routing.h"
 #include "wcd934x-dsp-cntl.h"
+#include "wcd934x_irq.h"
+#include "../core.h"
+#include "../pdata.h"
+#include "../wcd9xxx-irq.h"
 #include "../wcd9xxx-common-v2.h"
 #include "../wcd9xxx-resmgr-v2.h"
 #include "../wcdcal-hwdep.h"

+ 2 - 2
sound/soc/codecs/wcd934x/wcd934x.h → asoc/codecs/wcd934x/wcd934x.h

@@ -13,9 +13,9 @@
 #ifndef WCD934X_H
 #define WCD934X_H
 
-#include <sound/apr_audio-v2.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-slimslave.h>
+#include <dsp/apr_audio-v2.h>
 #include "wcd934x-dsp-cntl.h"
+#include "../wcd9xxx-slimslave.h"
 #include "../wcd9xxx-common-v2.h"
 #include "../wcd-mbhc-v2.h"
 

+ 0 - 0
include/linux/mfd/wcd934x/irq.h → asoc/codecs/wcd934x/wcd934x_irq.h


+ 1 - 1
sound/soc/codecs/wcd9xxx-common-v2.c → asoc/codecs/wcd9xxx-common-v2.c

@@ -16,8 +16,8 @@
 #include <sound/soc.h>
 #include <linux/kernel.h>
 #include <linux/delay.h>
-#include <linux/mfd/wcd9xxx/core.h>
 #include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
+#include "core.h"
 #include "wcd9xxx-common-v2.h"
 
 #define WCD_USLEEP_RANGE 50

+ 0 - 0
sound/soc/codecs/wcd9xxx-common-v2.h → asoc/codecs/wcd9xxx-common-v2.h


+ 3 - 3
drivers/mfd/wcd9xxx-core-init.c → asoc/codecs/wcd9xxx-core-init.c

@@ -11,9 +11,9 @@
  */
 
 #include <linux/module.h>
-#include <linux/mfd/msm-cdc-pinctrl.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-irq.h>
-#include <linux/mfd/wcd9xxx/core.h>
+#include "msm-cdc-pinctrl.h"
+#include "wcd9xxx-irq.h"
+#include "core.h"
 
 #define NUM_DRIVERS_REG_RET 3
 

+ 8 - 8
drivers/mfd/wcd9xxx-core.c → asoc/codecs/wcd9xxx-core.c

@@ -16,21 +16,21 @@
 #include <linux/slab.h>
 #include <linux/ratelimit.h>
 #include <linux/mfd/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-slimslave.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-irq.h>
-#include <linux/mfd/wcd9xxx/pdata.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
-#include <linux/mfd/msm-cdc-pinctrl.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-utils.h>
-#include <linux/mfd/msm-cdc-supply.h>
 #include <linux/delay.h>
 #include <linux/gpio.h>
 #include <linux/debugfs.h>
 #include <linux/i2c.h>
 #include <linux/regmap.h>
+#include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
 #include <sound/soc.h>
+#include "core.h"
+#include "pdata.h"
+#include "msm-cdc-pinctrl.h"
+#include "msm-cdc-supply.h"
+#include "wcd9xxx-irq.h"
+#include "wcd9xxx-utils.h"
 #include "wcd9xxx-regmap.h"
+#include "wcd9xxx-slimslave.h"
 
 #define WCD9XXX_REGISTER_START_OFFSET 0x800
 #define WCD9XXX_SLIM_RW_MAX_TRIES 3

+ 3 - 3
drivers/mfd/wcd9xxx-irq.c → asoc/codecs/wcd9xxx-irq.c

@@ -16,9 +16,6 @@
 #include <linux/irq.h>
 #include <linux/mfd/core.h>
 #include <linux/regmap.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-irq.h>
 #include <linux/delay.h>
 #include <linux/irqdomain.h>
 #include <linux/interrupt.h>
@@ -29,6 +26,9 @@
 #include <soc/qcom/pm.h>
 #include <linux/gpio.h>
 #include <linux/of_gpio.h>
+#include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
+#include "core.h"
+#include "wcd9xxx-irq.h"
 
 #define BYTE_BIT_MASK(nr)		(1UL << ((nr) % BITS_PER_BYTE))
 #define BIT_BYTE(nr)			((nr) / BITS_PER_BYTE)

+ 1 - 1
include/linux/mfd/wcd9xxx/wcd9xxx-irq.h → asoc/codecs/wcd9xxx-irq.h

@@ -11,7 +11,7 @@
  */
 
 #include <linux/types.h>
-#include <linux/mfd/wcd9xxx/core.h>
+#include "core.h"
 
 #ifndef __MFD_WCD9XXX_IRQ_H
 #define __MFD_WCD9XXX_IRQ_H

+ 1 - 1
drivers/mfd/wcd9xxx-regmap.h → asoc/codecs/wcd9xxx-regmap.h

@@ -15,7 +15,7 @@
 #define _WCD9XXX_REGMAP_
 
 #include <linux/regmap.h>
-#include <linux/mfd/wcd9xxx/core.h>
+#include "core.h"
 
 typedef int (*regmap_patch_fptr)(struct regmap *, int);
 

+ 3 - 3
sound/soc/codecs/wcd9xxx-resmgr-v2.c → asoc/codecs/wcd9xxx-resmgr-v2.c

@@ -14,11 +14,11 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9335/registers.h>
-#include <linux/mfd/wcd934x/registers.h>
 #include <sound/soc.h>
 #include "wcd9xxx-resmgr-v2.h"
+#include "core.h"
+#include "wcd9335_registers.h"
+#include <asoc/wcd934x_registers.h>
 
 #define WCD9XXX_RCO_CALIBRATION_DELAY_INC_US 5000
 #define WCD93XX_ANA_BIAS 0x0601

+ 1 - 1
sound/soc/codecs/wcd9xxx-resmgr-v2.h → asoc/codecs/wcd9xxx-resmgr-v2.h

@@ -13,8 +13,8 @@
 #ifndef __WCD9XXX_COMMON_V2_H__
 #define __WCD9XXX_COMMON_V2_H__
 
-#include <linux/mfd/wcd9xxx/core.h>
 #include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
+#include "core.h"
 
 enum wcd_clock_type {
 	WCD_CLK_OFF,

+ 7 - 7
drivers/mfd/wcd9xxx-rst.c → asoc/codecs/wcd9xxx-rst.c

@@ -15,13 +15,13 @@
 #include <linux/device.h>
 #include <linux/regmap.h>
 #include <linux/delay.h>
-#include <linux/mfd/wcd9xxx/pdata.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-utils.h>
-#include <linux/mfd/wcd9335/registers.h>
-#include <linux/mfd/wcd934x/registers.h>
-#include <linux/mfd/wcd9335/irq.h>
-#include <linux/mfd/wcd934x/irq.h>
+#include "core.h"
+#include "pdata.h"
+#include "wcd9xxx-utils.h"
+#include "wcd9335_registers.h"
+#include "wcd9335_irq.h"
+#include <asoc/wcd934x_registers.h>
+#include "wcd934x/wcd934x_irq.h"
 
 /* wcd9335 interrupt table  */
 static const struct intr_data wcd9335_intr_table[] = {

+ 1 - 1
drivers/mfd/wcd9xxx-slimslave.c → asoc/codecs/wcd9xxx-slimslave.c

@@ -11,8 +11,8 @@
  */
 #include <linux/slab.h>
 #include <linux/mutex.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-slimslave.h>
 #include <linux/mfd/wcd9xxx/wcd9xxx_registers.h>
+#include "wcd9xxx-slimslave.h"
 
 struct wcd9xxx_slim_sch {
 	u16 rx_port_ch_reg_base;

+ 4 - 4
include/linux/mfd/wcd9xxx/wcd9xxx-slimslave.h → asoc/codecs/wcd9xxx-slimslave.h

@@ -10,11 +10,11 @@
  * GNU General Public License for more details.
  */
 
-#ifndef __WCD9310_SLIMSLAVE_H_
-#define __WCD9310_SLIMSLAVE_H_
+#ifndef __WCD9XXX_SLIMSLAVE_H_
+#define __WCD9XXX_SLIMSLAVE_H_
 
 #include <linux/slimbus/slimbus.h>
-#include <linux/mfd/wcd9xxx/core.h>
+#include "core.h"
 
 
 /*
@@ -116,4 +116,4 @@ int wcd9xxx_rx_vport_validation(u32 port_id,
 int wcd9xxx_tx_vport_validation(u32 vtable, u32 port_id,
 				struct wcd9xxx_codec_dai_data *codec_dai,
 				u32 num_codec_dais);
-#endif /* __WCD9310_SLIMSLAVE_H_ */
+#endif /* __WCD9XXX_SLIMSLAVE_H_ */

+ 0 - 0
sound/soc/codecs/wcd9xxx-soc-init.c → asoc/codecs/wcd9xxx-soc-init.c


+ 6 - 6
drivers/mfd/wcd9xxx-utils.c → asoc/codecs/wcd9xxx-utils.c

@@ -20,12 +20,12 @@
 #include <linux/delay.h>
 #include <linux/sched.h>
 #include <linux/mfd/core.h>
-#include <linux/mfd/wcd9xxx/pdata.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-irq.h>
-#include <linux/mfd/msm-cdc-supply.h>
-#include <linux/mfd/msm-cdc-pinctrl.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-utils.h>
+#include "core.h"
+#include "msm-cdc-supply.h"
+#include "msm-cdc-pinctrl.h"
+#include "pdata.h"
+#include "wcd9xxx-irq.h"
+#include "wcd9xxx-utils.h"
 
 #define REG_BYTES 2
 #define VAL_BYTES 1

+ 2 - 2
include/linux/mfd/wcd9xxx/wcd9xxx-utils.h → asoc/codecs/wcd9xxx-utils.h

@@ -16,8 +16,8 @@
 #include <linux/kernel.h>
 #include <linux/device.h>
 #include <linux/regmap.h>
-#include <linux/mfd/wcd9xxx/pdata.h>
-#include <linux/mfd/wcd9xxx/core.h>
+#include "pdata.h"
+#include "core.h"
 
 struct wcd9xxx_pdata *wcd9xxx_populate_dt_data(struct device *dev);
 int wcd9xxx_bringup(struct device *dev);

+ 0 - 0
sound/soc/codecs/wcd_cmi_api.h → asoc/codecs/wcd_cmi_api.h


+ 5 - 5
sound/soc/codecs/wcd_cpe_core.c → asoc/codecs/wcd_cpe_core.c

@@ -23,16 +23,16 @@
 #include <sound/soc.h>
 #include <sound/info.h>
 #include <sound/lsm_params.h>
-#include <sound/cpe_core.h>
 #include <sound/cpe_cmi.h>
-#include <sound/cpe_err.h>
 #include <soc/qcom/pm.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <linux/mfd/wcd9xxx/wcd9xxx-irq.h>
-#include <sound/audio_cal_utils.h>
+#include <dsp/audio_cal_utils.h>
+#include "core.h"
+#include "cpe_core.h"
+#include "cpe_err.h"
 #include "wcd_cpe_core.h"
 #include "wcd_cpe_services.h"
 #include "wcd_cmi_api.h"
+#include "wcd9xxx-irq.h"
 
 #define CMI_CMD_TIMEOUT (10 * HZ)
 #define WCD_CPE_LSM_MAX_SESSIONS 2

+ 0 - 0
sound/soc/codecs/wcd_cpe_core.h → asoc/codecs/wcd_cpe_core.h


+ 3 - 2
sound/soc/codecs/wcd_cpe_services.c → asoc/codecs/wcd_cpe_services.c

@@ -17,10 +17,11 @@
 #include <linux/completion.h>
 #include <linux/kthread.h>
 #include <linux/delay.h>
-#include <linux/mfd/wcd9xxx/core.h>
-#include <sound/cpe_cmi.h>
 #include <sound/soc.h>
+#include <linux/mfd/wcd9xxx/wcd9330_registers.h>
 #include <linux/mfd/wcd9335/registers.h>
+#include "core.h"
+#include "cpe_cmi.h"
 #include "wcd_cpe_services.h"
 #include "wcd_cmi_api.h"
 

+ 0 - 0
sound/soc/codecs/wcd_cpe_services.h → asoc/codecs/wcd_cpe_services.h


+ 0 - 0
sound/soc/codecs/wcdcal-hwdep.c → asoc/codecs/wcdcal-hwdep.c


+ 0 - 0
sound/soc/codecs/wcdcal-hwdep.h → asoc/codecs/wcdcal-hwdep.h


+ 0 - 0
sound/soc/codecs/wsa881x-analog.c → asoc/codecs/wsa881x-analog.c


+ 0 - 0
sound/soc/codecs/wsa881x-analog.h → asoc/codecs/wsa881x-analog.h


+ 0 - 0
sound/soc/codecs/wsa881x-irq.c → asoc/codecs/wsa881x-irq.c


+ 0 - 0
sound/soc/codecs/wsa881x-irq.h → asoc/codecs/wsa881x-irq.h


+ 0 - 0
sound/soc/codecs/wsa881x-registers-analog.h → asoc/codecs/wsa881x-registers-analog.h


+ 0 - 0
sound/soc/codecs/wsa881x-registers.h → asoc/codecs/wsa881x-registers.h


+ 0 - 0
sound/soc/codecs/wsa881x-regmap-analog.c → asoc/codecs/wsa881x-regmap-analog.c


+ 0 - 0
sound/soc/codecs/wsa881x-regmap.c → asoc/codecs/wsa881x-regmap.c


+ 0 - 0
sound/soc/codecs/wsa881x-tables-analog.c → asoc/codecs/wsa881x-tables-analog.c


+ 0 - 0
sound/soc/codecs/wsa881x-tables.c → asoc/codecs/wsa881x-tables.c


+ 0 - 0
sound/soc/codecs/wsa881x-temp-sensor.c → asoc/codecs/wsa881x-temp-sensor.c


+ 0 - 0
sound/soc/codecs/wsa881x-temp-sensor.h → asoc/codecs/wsa881x-temp-sensor.h


+ 2 - 2
sound/soc/codecs/wsa881x.c → asoc/codecs/wsa881x.c

@@ -26,13 +26,13 @@
 #include <linux/of_gpio.h>
 #include <linux/regmap.h>
 #include <linux/debugfs.h>
-#include <linux/soundwire/soundwire.h>
-#include <linux/mfd/msm-cdc-pinctrl.h>
+#include <soc/soundwire.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include <sound/soc-dapm.h>
 #include <sound/tlv.h>
+#include "msm-cdc-pinctrl.h"
 #include "wsa881x.h"
 #include "wsa881x-temp-sensor.h"
 

Some files were not shown because too many files changed in this diff