Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit deb08dc8 authored by Srikanth Uyyala's avatar Srikanth Uyyala
Browse files

ASoC: msm: fix rtac issue for 64bit



For 32u and 64k configuration, compat ioctl is added for
get_rtac_adm_info and get_rtac_voice_info.

Change-Id: I15aa20f7cd96a1c8d20360d8b76ffef306b1ca42
Signed-off-by: default avatarSrikanth Uyyala <suyyala@codeaurora.org>
parent 7a941268
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -1343,7 +1343,8 @@ static long rtac_ioctl(struct file *f,
}

#ifdef CONFIG_COMPAT

#define AUDIO_GET_RTAC_ADM_INFO_32   _IOR(CAL_IOCTL_MAGIC, 207, compat_uptr_t)
#define AUDIO_GET_RTAC_VOICE_INFO_32 _IOR(CAL_IOCTL_MAGIC, 208, compat_uptr_t)
#define AUDIO_GET_RTAC_ADM_CAL_32 _IOWR(CAL_IOCTL_MAGIC, 209, compat_uptr_t)
#define AUDIO_SET_RTAC_ADM_CAL_32 _IOWR(CAL_IOCTL_MAGIC, 210, compat_uptr_t)
#define AUDIO_GET_RTAC_ASM_CAL_32 _IOWR(CAL_IOCTL_MAGIC, 211, compat_uptr_t)
@@ -1365,10 +1366,12 @@ static long rtac_compat_ioctl(struct file *f,
	}

	switch (cmd) {
	case AUDIO_GET_RTAC_ADM_INFO:
	case AUDIO_GET_RTAC_VOICE_INFO:
		result = rtac_ioctl_shared(f, cmd, compat_ptr(arg));
		break;
	case AUDIO_GET_RTAC_ADM_INFO_32:
		cmd = AUDIO_GET_RTAC_ADM_INFO;
		goto process;
	case AUDIO_GET_RTAC_VOICE_INFO_32:
		cmd = AUDIO_GET_RTAC_VOICE_INFO;
		goto process;
	case AUDIO_GET_RTAC_ADM_CAL_32:
		cmd = AUDIO_GET_RTAC_ADM_CAL;
		goto process;