summaryrefslogtreecommitdiff
path: root/profiles/audio
diff options
context:
space:
mode:
authorBharat Panda <bharat.panda@samsung.com>2015-11-16 16:06:43 +0530
committerBharat Panda <bharat.panda@samsung.com>2015-11-16 16:08:13 +0530
commit979529e3508ec998cbd87ec2372dcf49d7ef35bd (patch)
tree1976266d61e7a00d1e90026105ad39ef3622ce32 /profiles/audio
parent2a6ff0631d9acf2db0e8eb37a3938bcadb7e30e8 (diff)
downloadbluez-979529e3508ec998cbd87ec2372dcf49d7ef35bd.tar.gz
bluez-979529e3508ec998cbd87ec2372dcf49d7ef35bd.tar.bz2
bluez-979529e3508ec998cbd87ec2372dcf49d7ef35bd.zip
audio: Fix checkpatch error
This patch fixes all extra checkpatch error introduced on top of existing upstream code. Change-Id: Ic64775a6c7e7a900ee2cbba4c5c9eec5e96bcb0b
Diffstat (limited to 'profiles/audio')
-rw-r--r--profiles/audio/avrcp.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 9dbddc27..9ea41150 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -794,10 +794,12 @@ done:
#ifdef __TIZEN_PATCH__
if (id == AVRCP_EVENT_PLAYBACK_POS_CHANGED &&
pos_timer_id > 0) {
- /* Remove the timer function which was added for register notification.
- * As we are sending changed event eariler then time interval.
+ /* Remove the timer function which was added for register
+ * notification. As we are sending changed event eariler
+ * then time interval.
*/
- DBG("Removing the timer function added by register notification");
+ DBG("Removing the timer function added by
+ register notification");
g_source_remove(pos_timer_id);
pos_timer_id = 0;
}
@@ -1689,8 +1691,9 @@ static uint8_t avrcp_handle_register_notification(struct avrcp *session,
case AVRCP_EVENT_PLAYBACK_POS_CHANGED:
len = 5;
- /* time interval in seconds at which the change in playback position
- shall be notified */
+ /* time interval in seconds at which the change in
+ * playback position shall be notified.
+ */
memcpy(&playback_interval, &pdu->params[1], sizeof(uint32_t));
playback_interval = ((playback_interval>>24)&0xff) |
((playback_interval<<8)&0xff0000) |
@@ -1700,7 +1703,8 @@ static uint8_t avrcp_handle_register_notification(struct avrcp *session,
play_status = player_get_status(player);
if (play_status != AVRCP_PLAY_STATUS_PLAYING) {
- DBG("Play Pos Changed Event is skipped(%d)", play_status);
+ DBG("Play Pos Changed Event is skipped(%d)",
+ play_status);
} else {
DBG("Playback interval : %d secs", playback_interval);
pos_timer_id = g_timeout_add_seconds(
@@ -1711,9 +1715,9 @@ static uint8_t avrcp_handle_register_notification(struct avrcp *session,
/* retrieve current playback position for interim response */
playback_position = player_get_playback_position(player);
playback_position = (playback_position & 0x000000ff) << 24 |
- (playback_position & 0x0000ff00) << 8 |
- (playback_position & 0x00ff0000) >> 8 |
- (playback_position & 0xff000000) >> 24;
+ (playback_position & 0x0000ff00) << 8 |
+ (playback_position & 0x00ff0000) >> 8 |
+ (playback_position & 0xff000000) >> 24;
memcpy(&pdu->params[1], &playback_position, sizeof(uint32_t));
break;
@@ -1860,7 +1864,7 @@ static gboolean notify_addressed_player_changed(gpointer user_data)
AVRCP_EVENT_TRACK_REACHED_END,
AVRCP_EVENT_SETTINGS_CHANGED,
AVRCP_EVENT_PLAYBACK_POS_CHANGED
- };
+ };
uint8_t i;
avrcp_player_event(player, AVRCP_EVENT_ADDRESSED_PLAYER_CHANGED, NULL);