clear-pkgs-linux-iot-lts2018/0211-ASoC-Intel-Skylake-Add...

41 lines
1.2 KiB
Diff
Raw Normal View History

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Vinod Koul <vinod.koul@intel.com>
Date: Wed, 26 Aug 2015 13:13:56 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Add debugfs NHLT dmic override
Add debugfs entries for reading and writing DMIC blobs which
driver can use to program DSP
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
sound/soc/intel/skylake/skl-debug.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sound/soc/intel/skylake/skl-debug.c b/sound/soc/intel/skylake/skl-debug.c
2020-10-27 02:14:06 +08:00
index 9f3a596bb060..57d5a79a6318 100644
--- a/sound/soc/intel/skylake/skl-debug.c
+++ b/sound/soc/intel/skylake/skl-debug.c
@@ -43,6 +43,7 @@ struct skl_debug {
struct dentry *nhlt;
u8 fw_read_buff[FW_REG_BUF];
struct nhlt_blob ssp_blob[MAX_SSP];
+ struct nhlt_blob dmic_blob;
};
static ssize_t nhlt_read(struct file *file, char __user *user_buf,
2020-04-02 08:26:12 +08:00
@@ -360,6 +361,11 @@ static int skl_init_nhlt(struct skl_debug *d)
dev_err(d->dev, "%s: debugfs init failed\n", name);
}
+ if (!debugfs_create_file("dmic", 0644,
+ d->nhlt, &d->dmic_blob,
+ &nhlt_fops))
+ dev_err(d->dev, "%s: debugfs init failed\n", name);
+
return 0;
}
--
https://clearlinux.org