ASoC: SOF: Intel: Provide debugfs_add_region_item ops for core
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 15 Sep 2021 12:21:14 +0000 (15:21 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 15 Sep 2021 15:25:07 +0000 (16:25 +0100)
Set the generic iomem callback for debugfs_add_region_item to avoid
regression when the core switches to use the generic interface for
the regions.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20210915122116.18317-11-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/apl.c
sound/soc/sof/intel/bdw.c
sound/soc/sof/intel/byt.c
sound/soc/sof/intel/cnl.c
sound/soc/sof/intel/icl.c
sound/soc/sof/intel/pci-tng.c
sound/soc/sof/intel/tgl.c

index c7ed2b3..0da6f35 100644 (file)
@@ -65,6 +65,7 @@ const struct snd_sof_dsp_ops sof_apl_ops = {
        .debug_map_count        = ARRAY_SIZE(apl_dsp_debugfs),
        .dbg_dump       = hda_dsp_dump,
        .ipc_dump       = hda_ipc_dump,
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* stream callbacks */
        .pcm_open       = hda_dsp_pcm_open,
index 37fa4f9..a8063e9 100644 (file)
@@ -635,6 +635,7 @@ static const struct snd_sof_dsp_ops sof_bdw_ops = {
        .debug_map  = bdw_debugfs,
        .debug_map_count    = ARRAY_SIZE(bdw_debugfs),
        .dbg_dump   = bdw_dump,
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* stream callbacks */
        .pcm_open       = intel_pcm_open,
index 8edaf6f..d4e86f8 100644 (file)
@@ -249,6 +249,7 @@ static const struct snd_sof_dsp_ops sof_byt_ops = {
        .debug_map      = byt_debugfs,
        .debug_map_count        = ARRAY_SIZE(byt_debugfs),
        .dbg_dump       = atom_dump,
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* stream callbacks */
        .pcm_open       = intel_pcm_open,
@@ -326,6 +327,7 @@ static const struct snd_sof_dsp_ops sof_cht_ops = {
        .debug_map      = cht_debugfs,
        .debug_map_count        = ARRAY_SIZE(cht_debugfs),
        .dbg_dump       = atom_dump,
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* stream callbacks */
        .pcm_open       = intel_pcm_open,
index e115e12..eeb95cb 100644 (file)
@@ -270,6 +270,7 @@ const struct snd_sof_dsp_ops sof_cnl_ops = {
        .debug_map_count        = ARRAY_SIZE(cnl_dsp_debugfs),
        .dbg_dump       = hda_dsp_dump,
        .ipc_dump       = cnl_ipc_dump,
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* stream callbacks */
        .pcm_open       = hda_dsp_pcm_open,
index ee095b8..f5e370c 100644 (file)
@@ -64,6 +64,7 @@ const struct snd_sof_dsp_ops sof_icl_ops = {
        .debug_map_count        = ARRAY_SIZE(icl_dsp_debugfs),
        .dbg_dump       = hda_dsp_dump,
        .ipc_dump       = cnl_ipc_dump,
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* stream callbacks */
        .pcm_open       = hda_dsp_pcm_open,
index 2f14082..ccfb97c 100644 (file)
@@ -165,6 +165,7 @@ const struct snd_sof_dsp_ops sof_tng_ops = {
        .debug_map      = tng_debugfs,
        .debug_map_count        = ARRAY_SIZE(tng_debugfs),
        .dbg_dump       = atom_dump,
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* stream callbacks */
        .pcm_open       = intel_pcm_open,
index 199d41a..e91ea80 100644 (file)
@@ -60,6 +60,7 @@ const struct snd_sof_dsp_ops sof_tgl_ops = {
        .debug_map_count        = ARRAY_SIZE(tgl_dsp_debugfs),
        .dbg_dump       = hda_dsp_dump,
        .ipc_dump       = cnl_ipc_dump,
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* stream callbacks */
        .pcm_open       = hda_dsp_pcm_open,