]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: SOF: Intel: hda: Set the mic_privacy flag for soundwire with ACE3+
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 30 Apr 2025 07:47:14 +0000 (15:47 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 11:43:25 +0000 (12:43 +0100)
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>
sound/soc/sof/intel/hda.c

index b34e5fdf10f16f6a90c5b72e4171452a196cbe23..510d31950587f61df6df26ab11e3d0d5e8903e88 100644 (file)
@@ -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;