midi: Fix random empty timestamp_high value
authorTedd Ho-Jeong An <tedd.an@intel.com>
Fri, 19 Jun 2020 18:34:56 +0000 (11:34 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commitba48aaabfa497560aeae97ef54c078ab4ed32549
tree5d86aae30b73c238d3777b67bc0b59c83c37c1b9
parent239f1fd8010c6221db1f81937a259f6af902b0e4
midi: Fix random empty timestamp_high value

The timestamp_high value is assigned from the monotonic time but there
is a chance that the value becomes zero because it reads the value
between bit8 and bit13.

This patch makes sure the timestamp_high value get a non-zero value.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/midi/libmidi.c