Skip to content

Commit

Permalink
ipc: added IPC SET_MIC_PRIVACY_FW_MANAGED_POLICY_MAS
Browse files Browse the repository at this point in the history
Added empty implementation which always returns success

Signed-off-by: Michal Bukowski <[email protected]>
  • Loading branch information
mbukowsk authored and abonislawski committed Feb 21, 2025
1 parent 07dd799 commit 53e0ae6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/audio/base_fw_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,18 @@ static int basefw_set_fw_config(bool first_block,
return 0;
}

static int basefw_set_mic_priv_policy(bool first_block,
bool last_block,
uint32_t data_offset_or_size,
const char *data)
{
#if CONFIG_INTEL_ADSP_MIC_PRIVACY
return 0;
#else
return IPC4_UNAVAILABLE;
#endif
}

int basefw_vendor_set_large_config(struct comp_dev *dev,
uint32_t param_id,
bool first_block,
Expand All @@ -361,6 +373,8 @@ int basefw_vendor_set_large_config(struct comp_dev *dev,
switch (param_id) {
case IPC4_FW_CONFIG:
return basefw_set_fw_config(first_block, last_block, data_offset, data);
case IPC4_SET_MIC_PRIVACY_FW_MANAGED_POLICY_MASK:
return basefw_set_mic_priv_policy(first_block, last_block, data_offset, data);
default:
break;
}
Expand Down
3 changes: 3 additions & 0 deletions src/include/ipc4/base_fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ enum ipc4_basefw_params {

/* Use LARGE_CONFIG_SET to change SDW ownership */
IPC4_SDW_OWNERSHIP = 31,

/* Set policy mask for mic privacy in FW managed mode */
IPC4_SET_MIC_PRIVACY_FW_MANAGED_POLICY_MASK = 36,
};

enum ipc4_fw_config_params {
Expand Down

0 comments on commit 53e0ae6

Please sign in to comment.