浏览代码

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 年之前
父节点
当前提交
c9431f1111
共有 1 个文件被更改,包括 2 次插入3 次删除
  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) {