Browse Source

ASoC: wsa883x: Add new variant in WSA codec driver

Add new variant in WSA codec driver.

Change-Id: I9053aa58cb1ea1cd73f5283faaa09ca33c0c5d9f
Signed-off-by: Sudheer Papothi <[email protected]>
Sudheer Papothi 4 years ago
parent
commit
cf74ac1365
1 changed files with 7 additions and 1 deletions
  1. 7 1
      asoc/codecs/wsa883x/wsa883x.c

+ 7 - 1
asoc/codecs/wsa883x/wsa883x.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/module.h>
@@ -140,6 +140,8 @@ static int wsa883x_get_temperature(struct snd_soc_component *component,
 enum {
 	WSA8830 = 0,
 	WSA8835,
+	WSA8832,
+	WSA8835_V2 = 5,
 };
 
 enum {
@@ -699,8 +701,12 @@ static ssize_t wsa883x_variant_read(struct snd_info_entry *entry,
 		len = snprintf(buffer, sizeof(buffer), "WSA8830\n");
 		break;
 	case WSA8835:
+	case WSA8835_V2:
 		len = snprintf(buffer, sizeof(buffer), "WSA8835\n");
 		break;
+	case WSA8832:
+		len = snprintf(buffer, sizeof(buffer), "WSA8832\n");
+		break;
 	default:
 		len = snprintf(buffer, sizeof(buffer), "UNDEFINED\n");
 		break;