Skip to content

Commit 4090d63

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: wm2200: Correct types of mixer texts and values
The core expects "const char * const" and "unsigned int" for enum controls, the mixer control definitions in wm2200 use "const char *" and "int". This patch corrects the type of these arrays. Signed-off-by: Charles Keepax <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 1001354 commit 4090d63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/wm2200.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ static DECLARE_TLV_DB_SCALE(in_tlv, -6300, 100, 0);
999999
static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
10001000
static DECLARE_TLV_DB_SCALE(out_tlv, -6400, 100, 0);
10011001

1002-
static const char *wm2200_mixer_texts[] = {
1002+
static const char * const wm2200_mixer_texts[] = {
10031003
"None",
10041004
"Tone Generator",
10051005
"AEC Loopback",
@@ -1033,7 +1033,7 @@ static const char *wm2200_mixer_texts[] = {
10331033
"DSP2.6",
10341034
};
10351035

1036-
static int wm2200_mixer_values[] = {
1036+
static unsigned int wm2200_mixer_values[] = {
10371037
0x00,
10381038
0x04, /* Tone */
10391039
0x08, /* AEC */

0 commit comments

Comments
 (0)