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

Commit 9ac80d41 authored by Ravit Dennis's avatar Ravit Dennis
Browse files

msm: ultrasound: Add Sync Gesture data format



Sync gesture is a new service implemented
in the ultrasound team in the kernel, user space
and the DSP layers.
This service detects user gestures and turns
them into android keyboard keys.

The sync gesture service data format should be
supported in the ultrasound related definitions
in the kernel to be able to use the suitable
services in the DSP.

Change-Id: I179c3a9e136b60ff7f61a07f90b4269a70ab9342
Signed-off-by: default avatarRavit Dennis <rdennis@codeaurora.org>
parent 3717e45d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
#define FORMAT_USPS_EPOS	0x00000000
#define FORMAT_USRAW		0x00000001
#define FORMAT_USPROX		0x00000002
#define FORMAT_USRAW_SYNC	0x00000003
#define INVALID_FORMAT		0xffffffff

#define IN			0x000
+3 −0
Original line number Diff line number Diff line
@@ -628,6 +628,9 @@ static uint32_t q6usm_ext2int_format(uint32_t ext_format)
	case FORMAT_USPROX:
		int_format = US_PROX_FORMAT_V2;
		break;
	case FORMAT_USRAW_SYNC:
		int_format = US_RAW_SYNC_FORMAT;
		break;
	default:
		pr_err("%s: Invalid format[%d]\n", __func__, ext_format);
		break;
+1 −0
Original line number Diff line number Diff line
@@ -6993,5 +6993,6 @@ struct afe_svc_cmd_set_clip_bank_selection {
#define US_POINT_EPOS_FORMAT_V2 0x0001272D
#define US_RAW_FORMAT_V2        0x0001272C
#define US_PROX_FORMAT_V2       0x0001272E
#define US_RAW_SYNC_FORMAT      0x0001272F

#endif /*_APR_AUDIO_V2_H_ */