ASoC: SOF: mediatek: Provide debugfs_add_region_item ops for core
authorTinghan Shen <tinghan.shen@mediatek.com>
Tue, 10 Jan 2023 08:43:12 +0000 (16:43 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 10 Jan 2023 13:32:33 +0000 (13:32 +0000)
Set the generic iomem callback for debugfs_add_region_item to support
sof-logger.

Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230110084312.12953-4-tinghan.shen@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/mediatek/mt8186/mt8186.c
sound/soc/sof/mediatek/mt8195/mt8195.c

index af0dfc2..dbea604 100644 (file)
@@ -588,6 +588,9 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
        .drv            = mt8186_dai,
        .num_drv        = ARRAY_SIZE(mt8186_dai),
 
+       /* Debug information */
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
+
        /* PM */
        .suspend        = mt8186_dsp_suspend,
        .resume         = mt8186_dsp_resume,
index 7c831e1..5b04fec 100644 (file)
@@ -637,6 +637,7 @@ static struct snd_sof_dsp_ops sof_mt8195_ops = {
 
        /* Debug information */
        .dbg_dump = mt8195_adsp_dump,
+       .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
 
        /* DAI drivers */
        .drv = mt8195_dai,