Virtual bus usage in the audio driver
Subsystems (3)
cover Virtual bus usage in the audio driver
This series shows an example of how the Virtual bus implementation is used in the Sound Open Firmware (SOF) audio driver.
A client in the SOF context is a device that needs to communicate with the DSP via IPC messages. The SOF core is responsible for serializing the IPC messages to the DSP from the different clients. One example of an SOF client would be an IPC test client that floods the DSP with test IPC messages to validate if the serialization works as expected. Multi-client support will also add the ability to split the existing audio cards into multiple ones, so as to e.g. to deal with HDMI with a dedicated client instead of adding HDMI to all cards.
Ranjani Sridharan (3):
ASoC: SOF: Introduce descriptors for SOF client
ASoC: SOF: Create client driver for IPC test
ASoC: SOF: ops: Add new op for client registration
sound/soc/sof/Kconfig | 30 +++ sound/soc/sof/Makefile | 6 +- sound/soc/sof/core.c | 10 + sound/soc/sof/intel/Kconfig | 1 + sound/soc/sof/intel/apl.c | 25 +++ sound/soc/sof/intel/bdw.c | 25 +++ sound/soc/sof/intel/byt.c | 28 +++ sound/soc/sof/intel/cnl.c | 25 +++ sound/soc/sof/ops.h | 34 +++ sound/soc/sof/sof-client.c | 91 ++++++++ sound/soc/sof/sof-client.h | 84 +++++++ sound/soc/sof/sof-ipc-test-client.c | 325 ++++++++++++++++++++++++++++ sound/soc/sof/sof-priv.h | 9 + 13 files changed, 692 insertions(+), 1 deletion(-) create mode 100644 sound/soc/sof/sof-client.c create mode 100644 sound/soc/sof/sof-client.h create mode 100644 sound/soc/sof/sof-ipc-test-client.c
Signature · 1 line
2.17.1
PATCH 1/3 ASoC: SOF: Introduce descriptors for SOF client
A client in the SOF (Sound Open Firmware) context is a device that needs to communicate with the DSP via IPC messages. The SOF core is responsible for serializing the IPC messages to the DSP from the different clients. One example of an SOF client would be an IPC test client that floods the DSP with test IPC messages to validate if the serialization works as expected. Multi-client support will also add the ability to split the existing audio cards into multiple ones, so as to e.g. to deal with HDMI with a dedicated client instead of adding HDMI to all cards.
This patch introduces descriptors for SOF client driver and SOF client device along with APIs for registering and unregistering a SOF client driver, sending IPCs from a client device and accessing the SOF core debugfs root entry.
Along with this, add a couple of new members to struct snd_sof_dev that will be used for maintaining the list of clients.
--- sound/soc/sof/Kconfig | 20 +++++++++ sound/soc/sof/Makefile | 1 + sound/soc/sof/core.c | 2 + sound/soc/sof/sof-client.c | 91 ++++++++++++++++++++++++++++++++++++++ sound/soc/sof/sof-client.h | 84 +++++++++++++++++++++++++++++++++++ sound/soc/sof/sof-priv.h | 6 +++ 6 files changed, 204 insertions(+) create mode 100644 sound/soc/sof/sof-client.c create mode 100644 sound/soc/sof/sof-client.h
sound/soc/sof/Kconfig +20 -0
@@ -50,6 +50,25 @@ config SND_SOC_SOF_DEBUG_PROBES Say Y if you want to enable probes. If unsure, select "N". +config SND_SOC_SOF_CLIENT + tristate + select VIRTUAL_BUS + help + This option is not user-selectable but automagically handled by + 'select' statements at a higher level + +config SND_SOC_SOF_CLIENT_SUPPORT + bool "SOF enable clients" + depends on SND_SOC_SOF + help + This adds support for client support with Sound Open Firmware. + The SOF driver adds the capability to separate out the debug + functionality for IPC tests, probes etc. into separate client + devices. This option would also allow adding client devices + based on DSP FW capabilities and ACPI/OF device information. + Say Y if you want to enable clients with SOF. + If unsure select "N". + config SND_SOC_SOF_DEVELOPER_SUPPORT bool "SOF developer options support" depends on EXPERT
@@ -186,6 +205,7 @@ endif ## SND_SOC_SOF_DEVELOPER_SUPPORT config SND_SOC_SOF tristate + select SND_SOC_SOF_CLIENT if SND_SOC_SOF_CLIENT_SUPPORT select SND_SOC_TOPOLOGY select SND_SOC_SOF_NOCODEC if SND_SOC_SOF_NOCODEC_SUPPORT help
sound/soc/sof/Makefile +1 -0
@@ -2,6 +2,7 @@ snd-sof-objs := core.o ops.o loader.o ipc.o pcm.o pm.o debug.o topology.o\ control.o trace.o utils.o sof-audio.o +snd-sof-$(CONFIG_SND_SOC_SOF_CLIENT) += sof-client.o snd-sof-$(CONFIG_SND_SOC_SOF_DEBUG_PROBES) += probe.o compress.o snd-sof-pci-objs := sof-pci-dev.o
sound/soc/sof/core.c +2 -0
@@ -313,8 +313,10 @@ int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data)INIT_LIST_HEAD (&sdev->widget_list);INIT_LIST_HEAD (&sdev->dai_list);INIT_LIST_HEAD (&sdev->route_list); +INIT_LIST_HEAD (&sdev->client_list);spin_lock_init (&sdev->ipc_lock);spin_lock_init (&sdev->hw_lock); +mutex_init (&sdev->client_mutex);if (IS_ENABLED (CONFIG_SND_SOC_SOF_PROBE_WORK_QUEUE ))INIT_WORK (&sdev->probe_work, sof_probe_work);
sound/soc/sof/sof-client.c new file +91 -0
91 lines not on this page · raw message
sound/soc/sof/sof-client.h new file +84 -0
84 lines not on this page · raw message
sound/soc/sof/sof-priv.h +6 -0
@@ -441,6 +441,12 @@ struct snd_sof_dev {bool msi_enabled; +/* list of client devices */ +struct list_head client_list; + +/* mutex to protect client list */ +struct mutex client_mutex; +void *private;/* core does not touch this */ };
Signature · 1 line
2.17.1
kbuild test robot
build botRe: [Intel-wired-lan] [PATCH 1/3] ASoC: SOF: Introduce descriptors for SOF client
I love your patch! Yet something to improve:
Hi Ranjani,
I love your patch! Yet something to improve:
[auto build test ERROR on asoc/for-next]
[also build test ERROR on v5.7-rc5 next-20200511]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Ranjani-Sridharan/Virtual-bus-usage-in-the-audio-driver/20200512-050120 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config: alpha-allyesconfig (attached as .config) compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
>> sound/soc/sof/sof-client.c:17:10: fatal error: linux/virtual_bus.h: No such file or directory
17 | #include <linux/virtual_bus.h>
| ^~~~~~~~~~~~~~~~~~~~~compilation terminated.
vim +17 sound/soc/sof/sof-client.c
7
8 #include <linux/completion.h>
9 #include <linux/debugfs.h>
10 #include <linux/device.h>
11 #include <linux/errno.h>
12 #include <linux/jiffies.h>
13 #include <linux/list.h>
14 #include <linux/mutex.h>
15 #include <linux/module.h>
16 #include <linux/slab.h>
> 17 #include <linux/virtual_bus.h>
18 #include "sof-client.h"
19 #include "sof-priv.h"
20 ---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
PATCH 2/3 ASoC: SOF: Create client driver for IPC test
In reply to Ranjani SridharanCreate an SOF client driver for IPC flood test. This driver is used to set up the debugfs entries and the read/write ops for initiating the IPC flood test that would be used to measure the min/max/avg response times for sending IPCs to the DSP.
--- sound/soc/sof/Kconfig | 10 + sound/soc/sof/Makefile | 5 +- sound/soc/sof/sof-ipc-test-client.c | 325 ++++++++++++++++++++++++++++ 3 files changed, 339 insertions(+), 1 deletion(-) create mode 100644 sound/soc/sof/sof-ipc-test-client.c
sound/soc/sof/Kconfig +10 -0
@@ -191,6 +191,16 @@ config SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST Say Y if you want to enable IPC flood test. If unsure, select "N". +config SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_CLIENT + tristate "SOF enable IPC flood test client" + depends on SND_SOC_SOF_CLIENT + help + This option enables a separate client device for IPC flood test + which can be used to flood the DSP with test IPCs and gather stats + about response times. + Say Y if you want to enable IPC flood test. + If unsure, select "N". + config SND_SOC_SOF_DEBUG_RETAIN_DSP_CONTEXT bool "SOF retain DSP context on any FW exceptions" help
sound/soc/sof/Makefile +4 -1
@@ -9,16 +9,19 @@ snd-sof-pci-objs := sof-pci-dev.o snd-sof-acpi-objs := sof-acpi-dev.o snd-sof-of-objs := sof-of-dev.o +snd-sof-ipc-test-objs := sof-ipc-test-client.o + snd-sof-nocodec-objs := nocodec.o obj-$(CONFIG_SND_SOC_SOF) += snd-sof.o obj-$(CONFIG_SND_SOC_SOF_NOCODEC) += snd-sof-nocodec.o - obj-$(CONFIG_SND_SOC_SOF_ACPI) += snd-sof-acpi.o obj-$(CONFIG_SND_SOC_SOF_OF) += snd-sof-of.o obj-$(CONFIG_SND_SOC_SOF_PCI) += snd-sof-pci.o +obj-$(CONFIG_SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_CLIENT) += snd-sof-ipc-test.o + obj-$(CONFIG_SND_SOC_SOF_INTEL_TOPLEVEL) += intel/ obj-$(CONFIG_SND_SOC_SOF_IMX_TOPLEVEL) += imx/ obj-$(CONFIG_SND_SOC_SOF_XTENSA) += xtensa/
sound/soc/sof/sof-ipc-test-client.c new file +325 -0
325 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 3/3 ASoC: SOF: ops: Add new op for client registration
In reply to Ranjani SridharanAdd a new op for registering clients. The clients to be registered depend on the DSP capabilities and the ACPI/DT information. For now, we only add 2 IPC test clients that will be used for run tandem IPC flood tests for all Intel platforms.
For ACPI platforms, change the Kconfig to select SND_SOC_SOF_PROBE_WORK_QUEUE to allow the virtbus driver to probe when the client is registered.
--- sound/soc/sof/core.c | 8 ++++++++ sound/soc/sof/intel/Kconfig | 1 + sound/soc/sof/intel/apl.c | 25 +++++++++++++++++++++++++ sound/soc/sof/intel/bdw.c | 25 +++++++++++++++++++++++++ sound/soc/sof/intel/byt.c | 28 ++++++++++++++++++++++++++++ sound/soc/sof/intel/cnl.c | 25 +++++++++++++++++++++++++ sound/soc/sof/ops.h | 34 ++++++++++++++++++++++++++++++++++ sound/soc/sof/sof-priv.h | 3 +++ 8 files changed, 149 insertions(+)
sound/soc/sof/core.c +8 -0
@@ -245,6 +245,12 @@ static int sof_probe_continue(struct snd_sof_dev *sdev)if (plat_data->sof_probe_complete) plat_data->sof_probe_complete (sdev->dev); +/* +* Register client devices. This can fail but errors cannot be +* propagated. +*/ +snd_sof_register_clients (sdev); +return 0 ; fw_trace_err:
@@ -349,6 +355,7 @@ int snd_sof_device_remove(struct device *dev)cancel_work_sync (&sdev->probe_work);if (sdev->fw_state >SOF_FW_BOOT_NOT_STARTED ) { +snd_sof_unregister_clients (sdev);snd_sof_fw_unload (sdev);snd_sof_ipc_free (sdev);snd_sof_free_debug (sdev);
@@ -382,4 +389,5 @@ EXPORT_SYMBOL(snd_sof_device_remove);MODULE_AUTHOR ("Liam Girdwood" );MODULE_DESCRIPTION ("Sound Open Firmware (SOF) Core" );MODULE_LICENSE ("Dual BSD/GPL" ); +MODULE_IMPORT_NS (SND_SOC_SOF_CLIENT );MODULE_ALIAS ("platform:sof-audio" );
sound/soc/sof/intel/Kconfig +1 -0
@@ -13,6 +13,7 @@ config SND_SOC_SOF_INTEL_ACPI def_tristate SND_SOC_SOF_ACPI select SND_SOC_SOF_BAYTRAIL if SND_SOC_SOF_BAYTRAIL_SUPPORT select SND_SOC_SOF_BROADWELL if SND_SOC_SOF_BROADWELL_SUPPORT + select SND_SOC_SOF_PROBE_WORK_QUEUE if SND_SOC_SOF_CLIENT help This option is not user-selectable but automagically handled by 'select' statements at a higher level
sound/soc/sof/intel/apl.c +25 -0
@@ -18,6 +18,9 @@#include "../sof-priv.h" #include "hda.h" #include "../sof-audio.h" +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +#include "../sof-client.h" +#endif static const struct snd_sof_debugfs_map apl_dsp_debugfs[] = { {"hda" ,HDA_DSP_HDA_BAR ,0 ,0x4000 ,SOF_DEBUGFS_ACCESS_ALWAYS },
@@ -25,6 +28,24 @@ static const struct snd_sof_debugfs_map apl_dsp_debugfs[] = { {"dsp", HDA_DSP_BAR, 0, 0x10000, SOF_DEBUGFS_ACCESS_ALWAYS}, }; +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +static void apl_register_clients (struct snd_sof_dev *sdev) +{ +#if IS_ENABLED (CONFIG_SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_CLIENT ) +/* +* Register 2 IPC clients to facilitate tandem flood test. +* The device name below is appended with the device ID assigned +* automatically when the virtbus device is registered making +* them unique. +*/ +sof_client_dev_register (sdev,"sof-ipc-test" ); +sof_client_dev_register (sdev,"sof-ipc-test" ); +#endif +} +#else +static void apl_register_clients (struct snd_sof_dev *sdev) {} +#endif +/* apollolake ops */ const struct snd_sof_dsp_ops sof_apl_ops = { /* probe and remove */
@@ -101,6 +122,9 @@ const struct snd_sof_dsp_ops sof_apl_ops = { .trace_release = hda_dsp_trace_release, .trace_trigger = hda_dsp_trace_trigger, +/* client register */ + .register_clients = apl_register_clients, +/* DAI drivers */ .drv = skl_dai, .num_drv = SOF_SKL_NUM_DAIS,
@@ -140,3 +164,4 @@ const struct sof_intel_dsp_desc apl_chip_info = { .ssp_base_offset = APL_SSP_BASE_OFFSET, };EXPORT_SYMBOL_NS (apl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON ); +MODULE_IMPORT_NS (SND_SOC_SOF_CLIENT );
sound/soc/sof/intel/bdw.c +25 -0
@@ -18,6 +18,9 @@#include "../ops.h" #include "shim.h" #include "../sof-audio.h" +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +#include "../sof-client.h" +#endif /* BARs */ #define BDW_DSP_BAR 0
@@ -563,6 +566,24 @@ static void bdw_set_mach_params(const struct snd_soc_acpi_mach *mach, mach_params->platform =dev_name (dev); } +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +static void bdw_register_clients (struct snd_sof_dev *sdev) +{ +#if IS_ENABLED (CONFIG_SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_CLIENT ) +/* +* Register 2 IPC clients to facilitate tandem flood test. +* The device name below is appended with the device ID assigned +* automatically when the virtbus device is registered making +* them unique. +*/ +sof_client_dev_register (sdev,"sof-ipc-test" ); +sof_client_dev_register (sdev,"sof-ipc-test" ); +#endif +} +#else +static void bdw_register_clients (struct snd_sof_dev *sdev) {} +#endif +/* Broadwell DAIs */ static struct snd_soc_dai_driver bdw_dai[] = { {
@@ -638,6 +659,9 @@ const struct snd_sof_dsp_ops sof_bdw_ops = {/*Firmware loading */ .load_firmware = snd_sof_load_firmware_memcpy, +/* client register */ + .register_clients = bdw_register_clients, +/* DAI drivers */ .drv = bdw_dai, .num_drv = ARRAY_SIZE(bdw_dai),
@@ -662,3 +686,4 @@ EXPORT_SYMBOL_NS(bdw_chip_info, SND_SOC_SOF_BROADWELL);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC );MODULE_IMPORT_NS (SND_SOC_SOF_XTENSA ); +MODULE_IMPORT_NS (SND_SOC_SOF_CLIENT );
sound/soc/sof/intel/byt.c +28 -0
@@ -19,6 +19,9 @@#include "shim.h" #include "../sof-audio.h" #include "../../intel/common/soc-intel-quirks.h" +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +#include "../sof-client.h" +#endif /* DSP memories */ #define IRAM_OFFSET 0x0C0000
@@ -779,6 +782,24 @@ static int byt_acpi_probe(struct snd_sof_dev *sdev)return ret; } +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +static void byt_register_clients (struct snd_sof_dev *sdev) +{ +#if IS_ENABLED (CONFIG_SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_CLIENT ) +/* +* Register 2 IPC clients to facilitate tandem flood test. +* The device name below is appended with the device ID assigned +* automatically when the virtbus device is registered making +* them unique. +*/ +sof_client_dev_register (sdev,"sof-ipc-test" ); +sof_client_dev_register (sdev,"sof-ipc-test" ); +#endif +} +#else +static void byt_register_clients (struct snd_sof_dev *sdev) {} +#endif +/* baytrail ops */ const struct snd_sof_dsp_ops sof_byt_ops = {/* device init */
@@ -832,6 +853,9 @@ const struct snd_sof_dsp_ops sof_byt_ops = {/*Firmware loading */ .load_firmware = snd_sof_load_firmware_memcpy, +/* client register */ + .register_clients = byt_register_clients, +/* DAI drivers */ .drv = byt_dai, .num_drv = 3, /* we have only 3 SSPs on byt*/
@@ -906,6 +930,9 @@ const struct snd_sof_dsp_ops sof_cht_ops = {/*Firmware loading */ .load_firmware = snd_sof_load_firmware_memcpy, +/* client register */ + .register_clients = byt_register_clients, +/* DAI drivers */ .drv = byt_dai,/* all 6 SSPs may be available for cherrytrail */
@@ -933,3 +960,4 @@ EXPORT_SYMBOL_NS(cht_chip_info, SND_SOC_SOF_BAYTRAIL);MODULE_LICENSE ("Dual BSD/GPL" );MODULE_IMPORT_NS (SND_SOC_SOF_INTEL_HIFI_EP_IPC );MODULE_IMPORT_NS (SND_SOC_SOF_XTENSA ); +MODULE_IMPORT_NS (SND_SOC_SOF_CLIENT );
sound/soc/sof/intel/cnl.c +25 -0
@@ -19,6 +19,9 @@#include "hda.h" #include "hda-ipc.h" #include "../sof-audio.h" +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +#include "../sof-client.h" +#endif static const struct snd_sof_debugfs_map cnl_dsp_debugfs[] = { {"hda" ,HDA_DSP_HDA_BAR ,0 ,0x4000 ,SOF_DEBUGFS_ACCESS_ALWAYS },
@@ -231,6 +234,24 @@ static void cnl_ipc_dump(struct snd_sof_dev *sdev) hipcida, hipctdr, hipcctl); } +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +static void cnl_register_clients (struct snd_sof_dev *sdev) +{ +#if IS_ENABLED (CONFIG_SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_CLIENT ) +/* +* Register 2 IPC clients to facilitate tandem flood test. +* The device name below is appended with the device ID assigned +* automatically when the virtbus device is registered making +* them unique. +*/ +sof_client_dev_register (sdev,"sof-ipc-test" ); +sof_client_dev_register (sdev,"sof-ipc-test" ); +#endif +} +#else +static void cnl_register_clients (struct snd_sof_dev *sdev) {} +#endif +/* cannonlake ops */ const struct snd_sof_dsp_ops sof_cnl_ops = {/* probe and remove */
@@ -307,6 +328,9 @@ const struct snd_sof_dsp_ops sof_cnl_ops = { .trace_release = hda_dsp_trace_release, .trace_trigger = hda_dsp_trace_trigger, +/* client register */ + .register_clients = cnl_register_clients, +/* DAI drivers */ .drv = skl_dai, .num_drv = SOF_SKL_NUM_DAIS,
@@ -417,3 +441,4 @@ const struct sof_intel_dsp_desc jsl_chip_info = { .ssp_base_offset = CNL_SSP_BASE_OFFSET, };EXPORT_SYMBOL_NS (jsl_chip_info,SND_SOC_SOF_INTEL_HDA_COMMON ); +MODULE_IMPORT_NS (SND_SOC_SOF_CLIENT );
sound/soc/sof/ops.h +34 -0
@@ -14,9 +14,14 @@#include <linux/device.h> #include <linux/interrupt.h> #include <linux/kernel.h> +#include <linux/list.h> +#include <linux/mutex.h> #include <linux/types.h> #include <sound/pcm.h> #include "sof-priv.h" +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +#include "sof-client.h" +#endif #define sof_ops (sdev) \ ((sdev)->pdata->desc->ops)
@@ -470,6 +475,35 @@ snd_sof_set_mach_params(const struct snd_soc_acpi_mach *mach,sof_ops (sdev)->set_mach_params (mach, dev); } +#if IS_ENABLED (CONFIG_SND_SOC_SOF_CLIENT ) +static inline void +snd_sof_register_clients (struct snd_sof_dev *sdev) +{ +if (sof_ops (sdev) &&sof_ops (sdev)->register_clients) +sof_ops (sdev)->register_clients (sdev); +} + +static inline void +snd_sof_unregister_clients (struct snd_sof_dev *sdev) +{ +struct sof_client_dev *cdev, *_cdev; + +/* unregister client devices */ +mutex_lock (&sdev->client_mutex); +list_for_each_entry_safe (cdev, _cdev, &sdev->client_list, list) { +sof_client_dev_unregister (cdev); +list_del (&cdev->list); + } +mutex_unlock (&sdev->client_mutex); +} +#else +static inline void +snd_sof_register_clients (struct snd_sof_dev *sdev) {} + +static inline void +snd_sof_unregister_clients (struct snd_sof_dev *sdev) {} +#endif +static inline const struct snd_sof_dsp_ops *sof_get_ops (const struct sof_dev_desc *d,const struct sof_ops_table mach_ops[],int asize)
sound/soc/sof/sof-priv.h +3 -0
@@ -252,6 +252,9 @@ struct snd_sof_dsp_ops {void (*set_mach_params)(const struct snd_soc_acpi_mach *mach,struct device *dev);/* optional */ +/* client ops */ +void (*register_clients)(struct snd_sof_dev *sdev);/* optional */ +/* DAI ops */ struct snd_soc_dai_driver *drv;int num_drv;
Signature · 1 line
2.17.1
kbuild test robot
build botRe: [Intel-wired-lan] [PATCH 3/3] ASoC: SOF: ops: Add new op for client registration
I love your patch! Yet something to improve:
Hi Ranjani,
I love your patch! Yet something to improve:
[auto build test ERROR on asoc/for-next]
[also build test ERROR on v5.7-rc5 next-20200511]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Ranjani-Sridharan/Virtual-bus-usage-in-the-audio-driver/20200512-050120 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config: ia64-allyesconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
In file included from sound/soc/sof/imx/../ops.h:23,
from sound/soc/sof/imx/imx8.c:23:
>> sound/soc/sof/imx/../sof-client.h:12:10: fatal error: linux/virtual_bus.h: No such file or directory
12 | #include <linux/virtual_bus.h>
| ^~~~~~~~~~~~~~~~~~~~~compilation terminated.
vim +12 sound/soc/sof/imx/../sof-client.h
f1449a420ef253 Ranjani Sridharan 2020-05-11 5 f1449a420ef253 Ranjani Sridharan 2020-05-11 6 #include <linux/completion.h> f1449a420ef253 Ranjani Sridharan 2020-05-11 7 #include <linux/debugfs.h> f1449a420ef253 Ranjani Sridharan 2020-05-11 8 #include <linux/device.h> f1449a420ef253 Ranjani Sridharan 2020-05-11 9 #include <linux/device/driver.h> f1449a420ef253 Ranjani Sridharan 2020-05-11 10 #include <linux/kernel.h> f1449a420ef253 Ranjani Sridharan 2020-05-11 11 #include <linux/list.h> f1449a420ef253 Ranjani Sridharan 2020-05-11 @12 #include <linux/virtual_bus.h>
f1449a420ef253 Ranjani Sridharan 2020-05-11 13
:::::: The code at line 12 was first introduced by commit
:::::: f1449a420ef2534a4b4e121e36446c5280e21349 ASoC: SOF: Introduce descriptors for SOF client
:::::: TO: Ranjani Sridharan <[email protected]> :::::: CC: 0day robot <[email protected]>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org