Parcourir la source

ASoC: wcd937x: Fix mbhc detection failure after get logical address fails

Get Logical Address failure comes after SSR during rigorous testing.
This calls removal of swr master device attached. Once removal occurs
further headset insertion/removal does not get detected. Do not remove
swr master device attached to fix the issue.

Change-Id: Iac78b4a12ef296566d082e75ac8905f73d6b2a47
Signed-off-by: Vatsal Bucha <[email protected]>
Vatsal Bucha il y a 6 ans
Parent
commit
d76b6b3ceb
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      asoc/codecs/wcd937x/wcd937x.c

+ 0 - 1
asoc/codecs/wcd937x/wcd937x.c

@@ -1491,7 +1491,6 @@ static int wcd937x_get_logical_addr(struct swr_device *swr_dev)
 		dev_err(&swr_dev->dev,
 			"%s get devnum %d for dev addr %lx failed\n",
 			__func__, devnum, swr_dev->addr);
-		swr_remove_device(swr_dev);
 		return ret;
 	}
 	swr_dev->dev_num = devnum;