ASoC: wsa883x: update supply and variant configuration

Update supply and variant configuration for wsa883x speaker amplifer.

Change-Id: Ib3e1ae149cc4b9144229b5e2dfab9bb0cc8dab1c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
此提交包含在:
Sudheer Papothi
2020-01-09 07:56:30 +05:30
父節點 eecf60dcb5
當前提交 e8b606b2b9
共有 2 個檔案被更改,包括 134 行新增2 行删除

查看文件

@@ -26,7 +26,11 @@
#define WSA883X_DRV_NAME "wsa883x-codec"
#define WSA883X_NUM_RETRY 5
#define WSA883X_VERSION_ENTRY_SIZE 27
#define WSA883X_VERSION_ENTRY_SIZE 32
#define WSA883X_VARIANT_ENTRY_SIZE 32
#define WSA883X_VERSION_1_0 0
#define WSA883X_VERSION_1_1 1
enum {
G_18DB = 0,
@@ -98,10 +102,12 @@ struct wsa883x_priv {
struct mutex res_lock;
struct snd_info_entry *entry;
struct snd_info_entry *version_entry;
struct snd_info_entry *variant_entry;
struct device_node *wsa_rst_np;
int pa_mute;
int curr_temp;
int variant;
int version;
u8 pa_gain;
struct irq_domain *virq;
struct wcd_irq_info irq_info;
@@ -119,6 +125,9 @@ struct wsa883x_priv {
int (*register_notifier)(void *handle,
struct notifier_block *nblock, bool enable);
struct delayed_work vbat_work;
struct cdc_regulator *regulator;
int num_supplies;
struct regulator_bulk_data *supplies;
};
static int32_t wsa883x_resource_acquire(struct snd_soc_component *component,