avrcp_controller.c (dfbbc26bf33395fe483b96e869c3620a391ee4fa) | avrcp_controller.c (2a7bb97a3a22e9da7ccd0289f59cd13948a19e4c) |
---|---|
1/* 2 * Copyright (C) 2016 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 834 unchanged lines hidden (view full) --- 843 // PRESS response 844 request_pass_through_release_control_cmd(connection); 845 } 846 break; 847 } 848 default: 849 break; 850 } | 1/* 2 * Copyright (C) 2016 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 834 unchanged lines hidden (view full) --- 843 // PRESS response 844 request_pass_through_release_control_cmd(connection); 845 } 846 break; 847 } 848 default: 849 break; 850 } |
851 852 // trigger pending notification reqistrations 853 if (connection->state == AVCTP_CONNECTION_OPENED && connection->notifications_to_register){ 854 avrcp_request_can_send_now(connection, connection->l2cap_signaling_cid); 855 } |
|
851} 852 853static void avrcp_controller_handle_can_send_now(avrcp_connection_t * connection){ 854 int i; 855 switch (connection->state){ 856 case AVCTP_W2_SEND_PRESS_COMMAND: 857 connection->state = AVCTP_W2_RECEIVE_PRESS_RESPONSE; 858 avrcp_send_cmd(connection, AVRCP_SINGLE_PACKET); --- 583 unchanged lines hidden --- | 856} 857 858static void avrcp_controller_handle_can_send_now(avrcp_connection_t * connection){ 859 int i; 860 switch (connection->state){ 861 case AVCTP_W2_SEND_PRESS_COMMAND: 862 connection->state = AVCTP_W2_RECEIVE_PRESS_RESPONSE; 863 avrcp_send_cmd(connection, AVRCP_SINGLE_PACKET); --- 583 unchanged lines hidden --- |