Kaynağa Gözat

asoc: codecs: register notifier for all bolero codec variants

Playback on speaker is getting mute due to notifier not getting
registered. Register notifier for all  bolero codecs
variants to enable WSA PA.

Change-Id: Id13a533af7096f50de2e1a654393c579a81af953
Signed-off-by: Surendar Karka <[email protected]>
Surendar Karka 5 yıl önce
ebeveyn
işleme
c9431f1111
1 değiştirilmiş dosya ile 2 ekleme ve 3 silme
  1. 2 3
      asoc/codecs/bolero/bolero-cdc.c

+ 2 - 3
asoc/codecs/bolero/bolero-cdc.c

@@ -1035,10 +1035,9 @@ static void bolero_add_child_devices(struct work_struct *work)
 		pdev->dev.parent = priv->dev;
 		pdev->dev.of_node = node;
 
-		if (split_codec) {
-			priv->dev->platform_data = platdata;
+		priv->dev->platform_data = platdata;
+		if (split_codec)
 			priv->wcd_dev = &pdev->dev;
-		}
 
 		ret = platform_device_add(pdev);
 		if (ret) {