Explorar el Código

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 hace 5 años
padre
commit
c9431f1111
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  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) {