瀏覽代碼

Merge "asoc: wsa883x: add support for multiple WSA"

qctecmdr 3 年之前
父節點
當前提交
6a725a093e
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      asoc/codecs/wsa883x/wsa883x.c

+ 4 - 3
asoc/codecs/wsa883x/wsa883x.c

@@ -1116,15 +1116,16 @@ static int wsa883x_spkr_event(struct snd_soc_dapm_widget *w,
 						0x01, 0x01);
 		/* Added delay as per HW sequence */
 		usleep_range(250, 300);
+
+		/* Force remove group */
+		swr_remove_from_group(wsa883x->swr_slave,
+				      wsa883x->swr_slave->dev_num);
 		if (wsa883x->comp_enable)
 			snd_soc_component_update_bits(component,
 						WSA883X_DRE_CTL_0,
 						0x07,
 						wsa883x->comp_offset);
 		wcd_enable_irq(&wsa883x->irq_info, WSA883X_IRQ_INT_UVLO);
-		/* Force remove group */
-		swr_remove_from_group(wsa883x->swr_slave,
-				      wsa883x->swr_slave->dev_num);
 		snd_soc_component_update_bits(component,
 				WSA883X_VBAT_ADC_FLT_CTL,
 				0x0E, 0x06);