diff options
Diffstat (limited to 'sound/core/control_compat.c')
-rw-r--r-- | sound/core/control_compat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/core/control_compat.c b/sound/core/control_compat.c index 426874429a5e..2bb95a7a8809 100644 --- a/sound/core/control_compat.c +++ b/sound/core/control_compat.c | |||
@@ -83,6 +83,8 @@ struct snd_ctl_elem_info32 { | |||
83 | u32 items; | 83 | u32 items; |
84 | u32 item; | 84 | u32 item; |
85 | char name[64]; | 85 | char name[64]; |
86 | u64 names_ptr; | ||
87 | u32 names_length; | ||
86 | } enumerated; | 88 | } enumerated; |
87 | unsigned char reserved[128]; | 89 | unsigned char reserved[128]; |
88 | } value; | 90 | } value; |
@@ -372,6 +374,8 @@ static int snd_ctl_elem_add_compat(struct snd_ctl_file *file, | |||
372 | &data32->value.enumerated, | 374 | &data32->value.enumerated, |
373 | sizeof(data->value.enumerated))) | 375 | sizeof(data->value.enumerated))) |
374 | goto error; | 376 | goto error; |
377 | data->value.enumerated.names_ptr = | ||
378 | (uintptr_t)compat_ptr(data->value.enumerated.names_ptr); | ||
375 | break; | 379 | break; |
376 | default: | 380 | default: |
377 | break; | 381 | break; |