ASoC: SOF: add mode parameter for snd_sof_debugfs_buf_item
Add mode parameter for snd_sof_debugfs_buf_item() to specify the mode while creating debugfs entries. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:

committed by
Mark Brown

parent
9d563eb95b
commit
5c9714f637
@@ -335,11 +335,11 @@ int snd_sof_run_firmware(struct snd_sof_dev *sdev)
|
||||
init_waitqueue_head(&sdev->boot_wait);
|
||||
sdev->boot_complete = false;
|
||||
|
||||
/* create fw_version debugfs to store boot version info */
|
||||
/* create read-only fw_version debugfs to store boot version info */
|
||||
if (sdev->first_boot) {
|
||||
ret = snd_sof_debugfs_buf_item(sdev, &sdev->fw_version,
|
||||
sizeof(sdev->fw_version),
|
||||
"fw_version");
|
||||
"fw_version", 0444);
|
||||
/* errors are only due to memory allocation, not debugfs */
|
||||
if (ret < 0) {
|
||||
dev_err(sdev->dev, "error: snd_sof_debugfs_buf_item failed\n");
|
||||
|
Reference in New Issue
Block a user