Skip to content

Commit 6302f5f

Browse files
ujfalusibardliao
authored andcommitted
fixup! ASoC: SOF: Intel: ptl: Add support for mic privacy
Use type aligned check fro 'alt' as it is done for v2 upstream. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent f6feb62 commit 6302f5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/sof/intel/ptl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
static bool sof_ptl_check_mic_privacy_irq(struct snd_sof_dev *sdev, bool alt,
2222
int elid)
2323
{
24-
if (alt != 1 || elid != AZX_REG_ML_LEPTR_ID_SDW)
24+
if (!alt || elid != AZX_REG_ML_LEPTR_ID_SDW)
2525
return false;
2626

2727
return hdac_bus_eml_is_mic_privacy_changed(sof_to_bus(sdev), alt, elid);
@@ -32,7 +32,7 @@ static void sof_ptl_process_mic_privacy(struct snd_sof_dev *sdev, bool alt,
3232
{
3333
bool state;
3434

35-
if (alt != 1 || elid != AZX_REG_ML_LEPTR_ID_SDW)
35+
if (!alt || elid != AZX_REG_ML_LEPTR_ID_SDW)
3636
return;
3737

3838
state = hdac_bus_eml_get_mic_privacy_state(sof_to_bus(sdev), alt, elid);

0 commit comments

Comments
 (0)