2019-03-29 14:12:17 +08:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-10-16 02:05:43 +08:00
|
|
|
From: Vinod Koul <vinod.koul@intel.com>
|
|
|
|
Date: Wed, 26 Aug 2015 13:13:56 +0530
|
2019-03-29 14:12:17 +08:00
|
|
|
Subject: [PATCH] ASoC: Intel: Skylake: Add debugfs NHLT dmic override
|
2018-10-16 02:05:43 +08:00
|
|
|
|
|
|
|
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
|
2019-03-29 14:12:17 +08:00
|
|
|
index 8485e2e..9266e47 100644
|
2018-10-16 02:05:43 +08:00
|
|
|
--- 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,
|
|
|
|
@@ -358,6 +359,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;
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2019-04-08 18:08:36 +08:00
|
|
|
https://clearlinux.org
|
2018-10-16 02:05:43 +08:00
|
|
|
|