Skip to content

Commit

Permalink
ASoC: codecs: wsa881x: request gpio direction before setting
Browse files Browse the repository at this point in the history
Make sure that power down gpio direction is set to ouput
before even setting it.

Fixes: a0aab9e ("ASoC: codecs: add wsa881x amplifier support")
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Srinivas-Kandagatla authored and broonie committed Mar 16, 2020
1 parent 1a0f243 commit 28ddd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wsa881x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ static int wsa881x_probe(struct sdw_slave *pdev,
wsa881x->sconfig.type = SDW_STREAM_PDM;
pdev->prop.sink_ports = GENMASK(WSA881X_MAX_SWR_PORTS, 0);
pdev->prop.sink_dpn_prop = wsa_sink_dpn_prop;
gpiod_set_value(wsa881x->sd_n, 1);
gpiod_direction_output(wsa881x->sd_n, 1);

wsa881x->regmap = devm_regmap_init_sdw(pdev, &wsa881x_regmap_config);
if (IS_ERR(wsa881x->regmap)) {
Expand Down

0 comments on commit 28ddd84

Please sign in to comment.