Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2948864 authored by Karthikeyan Mani's avatar Karthikeyan Mani
Browse files

ASoC: wsa881x: Assign device number in reset



Assign the logical device number in the
swr_reset function so that the dev_num of
the speaker device is assigned to the
correct one after any reset event.

CRs-fixed: 2039206
Change-Id: Ief3c65c3b36c93e7dcf775413e527e92d9ec7b0c
Signed-off-by: default avatarKarthikeyan Mani <kmani@codeaurora.org>
parent a25de292
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1337,6 +1337,7 @@ static int wsa881x_swr_reset(struct swr_device *pdev)
		/* Retry after 1 msec delay */
		usleep_range(1000, 1100);
	}
	pdev->dev_num = devnum;
	regcache_mark_dirty(wsa881x->regmap);
	regcache_sync(wsa881x->regmap);
	return 0;