wsa881x.c (ead5d1f4d877e92c051e1a1ade623d0d30e71619) wsa881x.c (2acd30b9f6032c6cbefc5e255c17ebbb0718e56a)
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2015-2017, The Linux Foundation.
3// Copyright (c) 2019, Linaro Limited
4
5#include <linux/bitops.h>
6#include <linux/gpio.h>
7#include <linux/gpio/consumer.h>
8#include <linux/interrupt.h>

--- 1098 unchanged lines hidden (view full) ---

1107 wsa881x->dev = &pdev->dev;
1108 wsa881x->sconfig.ch_count = 1;
1109 wsa881x->sconfig.bps = 1;
1110 wsa881x->sconfig.frame_rate = 48000;
1111 wsa881x->sconfig.direction = SDW_DATA_DIR_RX;
1112 wsa881x->sconfig.type = SDW_STREAM_PDM;
1113 pdev->prop.sink_ports = GENMASK(WSA881X_MAX_SWR_PORTS, 0);
1114 pdev->prop.sink_dpn_prop = wsa_sink_dpn_prop;
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2015-2017, The Linux Foundation.
3// Copyright (c) 2019, Linaro Limited
4
5#include <linux/bitops.h>
6#include <linux/gpio.h>
7#include <linux/gpio/consumer.h>
8#include <linux/interrupt.h>

--- 1098 unchanged lines hidden (view full) ---

1107 wsa881x->dev = &pdev->dev;
1108 wsa881x->sconfig.ch_count = 1;
1109 wsa881x->sconfig.bps = 1;
1110 wsa881x->sconfig.frame_rate = 48000;
1111 wsa881x->sconfig.direction = SDW_DATA_DIR_RX;
1112 wsa881x->sconfig.type = SDW_STREAM_PDM;
1113 pdev->prop.sink_ports = GENMASK(WSA881X_MAX_SWR_PORTS, 0);
1114 pdev->prop.sink_dpn_prop = wsa_sink_dpn_prop;
1115 pdev->prop.scp_int1_mask = SDW_SCP_INT1_BUS_CLASH | SDW_SCP_INT1_PARITY;
1115 gpiod_direction_output(wsa881x->sd_n, 1);
1116
1117 wsa881x->regmap = devm_regmap_init_sdw(pdev, &wsa881x_regmap_config);
1118 if (IS_ERR(wsa881x->regmap)) {
1119 dev_err(&pdev->dev, "regmap_init failed\n");
1120 return PTR_ERR(wsa881x->regmap);
1121 }
1122

--- 25 unchanged lines hidden ---
1116 gpiod_direction_output(wsa881x->sd_n, 1);
1117
1118 wsa881x->regmap = devm_regmap_init_sdw(pdev, &wsa881x_regmap_config);
1119 if (IS_ERR(wsa881x->regmap)) {
1120 dev_err(&pdev->dev, "regmap_init failed\n");
1121 return PTR_ERR(wsa881x->regmap);
1122 }
1123

--- 25 unchanged lines hidden ---