diff options
author | 2025-04-30 15:47:14 +0800 | |
---|---|---|
committer | 2025-05-14 12:43:25 +0100 | |
commit | d028b57b77f91e4643abd661640f345cd34522b6 (patch) | |
tree | 27a77f3b584d61e175f129799544e51cc6bac31e | |
parent | soundwire: intel: Add awareness of ACE3+ microphone privacy (diff) | |
download | linux-rng-d028b57b77f91e4643abd661640f345cd34522b6.tar.xz linux-rng-d028b57b77f91e4643abd661640f345cd34522b6.zip |
ASoC: SOF: Intel: hda: Set the mic_privacy flag for soundwire with ACE3+
The microphone privacy feature is introduced with ACE3, the soundwire
driver needs to know this to be able to print the PVCCS register via
register dump in sysfs.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20250430074714.94000-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | sound/soc/sof/intel/hda.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index b34e5fdf10f1..510d31950587 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -192,6 +192,9 @@ static int hda_sdw_probe(struct snd_sof_dev *sdev) res.ext = true; res.ops = &sdw_ace2x_callback; + /* ACE3+ supports microphone privacy */ + if (chip->hw_ip_version >= SOF_INTEL_ACE_3_0) + res.mic_privacy = true; } res.irq = sdev->ipc_irq; res.handle = hdev->info.handle; |