Skip to content

Commit d6f0647

Browse files
mbukowskabonislawski
authored andcommitted
ipc: added IPC SET_MIC_PRIVACY_FW_MANAGED_POLICY_MAS
Added empty implementation which always returns success Signed-off-by: Michal Bukowski <[email protected]>
1 parent fc957d4 commit d6f0647

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/audio/base_fw_intel.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,18 @@ static int basefw_set_fw_config(bool first_block,
351351
return 0;
352352
}
353353

354+
static int basefw_set_mic_priv_policy(bool first_block,
355+
bool last_block,
356+
uint32_t data_offset_or_size,
357+
const char *data)
358+
{
359+
#if CONFIG_INTEL_ADSP_MIC_PRIVACY
360+
return 0;
361+
#else
362+
return IPC4_UNAVAILABLE;
363+
#endif
364+
}
365+
354366
int basefw_vendor_set_large_config(struct comp_dev *dev,
355367
uint32_t param_id,
356368
bool first_block,
@@ -361,6 +373,8 @@ int basefw_vendor_set_large_config(struct comp_dev *dev,
361373
switch (param_id) {
362374
case IPC4_FW_CONFIG:
363375
return basefw_set_fw_config(first_block, last_block, data_offset, data);
376+
case IPC4_SET_MIC_PRIVACY_FW_MANAGED_POLICY_MASK:
377+
return basefw_set_mic_priv_policy(first_block, last_block, data_offset, data);
364378
default:
365379
break;
366380
}

src/include/ipc4/base_fw.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ enum ipc4_basefw_params {
288288

289289
/* Use LARGE_CONFIG_SET to change SDW ownership */
290290
IPC4_SDW_OWNERSHIP = 31,
291+
292+
/* Set policy mask for mic privacy in FW managed mode */
293+
IPC4_SET_MIC_PRIVACY_FW_MANAGED_POLICY_MASK = 36,
291294
};
292295

293296
enum ipc4_fw_config_params {

0 commit comments

Comments
 (0)