diff options
| author | Karthikeyan Mani <kmani@codeaurora.org> | 2017-04-26 14:30:31 -0700 |
|---|---|---|
| committer | Karthikeyan Mani <kmani@codeaurora.org> | 2017-07-06 22:52:57 -0700 |
| commit | 93f219af2df8c09e889d2123a6057ac618cce10f (patch) | |
| tree | 6604b9ee3872948557a79945ba86a1a3c5e61a4d | |
| parent | b1980b6bfedd0ac23e3b0320a8ed9bf7959e88bb (diff) | |
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 a reset event.
CRs-fixed: 2039206
Change-Id: Ief3c65c3b36c93e7dcf775413e527e92d9ec7b0c
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
| -rw-r--r-- | sound/soc/codecs/wsa881x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c index eaaca97e2b8e..f4eeb26f00c3 100644 --- a/sound/soc/codecs/wsa881x.c +++ b/sound/soc/codecs/wsa881x.c @@ -1371,6 +1371,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; |
