Skip to content
Snippets Groups Projects
  1. Sep 04, 2015
  2. Sep 03, 2015
    • Luiz Augusto von Dentz's avatar
      test: Add test-gatt-profile · f2d17bea
      Luiz Augusto von Dentz authored
      test-gatt-profile can be used to register a GATT based profile using
      GattManager1 interface.
      f2d17bea
    • Luiz Augusto von Dentz's avatar
      core/gatt: Cleanup service probe · e91aab1a
      Luiz Augusto von Dentz authored
      This cleanup code related to service probe making it use a single
      function, because of that now all driver must implement device_probe in
      order for the service probe to work properly.
      
      In addition to that a new flag called external was introduced to
      btd_profile to be possible to distinguish whether it is a internal
      plugin or external client, this was needed in order to decide if an
      attribute should be claimed which whould prevent it to be exported over
      D-Bus.
      e91aab1a
  3. Sep 02, 2015
  4. Sep 01, 2015
  5. Aug 31, 2015
  6. Aug 29, 2015
  7. Aug 28, 2015
    • Luiz Augusto von Dentz's avatar
      audio/avrcp: Fix sending wrong player id and uid counter · b371a4f5
      Luiz Augusto von Dentz authored
      memset only takes the first byte so it obviously cannot be used as
      memcpy.
      b371a4f5
    • Hsin-Yu Chao's avatar
      audio/media - Fix crash at deferencing NULL pointer · e412f2a9
      Hsin-Yu Chao authored
      The boolean pointer passed in to config_cb could be NULL
      in media_endpoint_cancel(). In that case we should not
      derefence it but pass FALSE instead to indicate error.
      
      Below is the core dump to demonstrate the crash:
      
      config_cb (endpoint=0xb814ff40, ret=0x0, size=-1,
          user_data=0xb8157758) at profiles/audio/media.c:537
      0xb6eb7ba4 in media_endpoint_cancel (request=0xb815b4d0)
          at profiles/audio/media.c:141
      0xb6eb7c98 in media_endpoint_cancel_all (endpoint=0xb814ff40)
          at profiles/audio/media.c:149
      clear_endpoint (endpoint=endpoint@entry=0xb814ff40)
          at profiles/audio/media.c:250
      0xb6eb7e74 in endpoint_reply (call=<optimized out>, user_data=0xb815b4d0)
          at profiles/audio/media.c:277
      0xb6d50336 in ?? () from /usr/lib/libdbus-1.so.3
      e412f2a9
    • Luiz Augusto von Dentz's avatar
      audio/avrcp: Fix memory leak · cdcea177
      Luiz Augusto von Dentz authored
      This frees settings list after used otherwise it leaks as follow:
      
      48 (24 direct, 24 indirect) bytes in 1 blocks are definitely lost in loss record 152 of 239
         at 0x4C28C50: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
         by 0x4E84679: g_malloc (in /usr/lib64/libglib-2.0.so.0.4400.1)
         by 0x4E9BCD2: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.4400.1)
         by 0x4E7A6E5: g_list_prepend (in /usr/lib64/libglib-2.0.so.0.4400.1)
         by 0x4E6E44B: g_hash_table_get_keys (in /usr/lib64/libglib-2.0.so.0.4400.1)
         by 0x426D5A: list_settings (media.c:1003)
         by 0x4336B4: player_list_settings (avrcp.c:1390)
         by 0x4336B4: avrcp_handle_register_notification (avrcp.c:1514)
         by 0x436711: handle_vendordep_pdu (avrcp.c:1827)
         by 0x42EB6F: session_cb (avctp.c:1025)
         by 0x4E7EA89: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4400.1)
         by 0x4E7EE1F: ??? (in /usr/lib64/libglib-2.0.so.0.4400.1)
         by 0x4E7F141: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.4400.1)
      cdcea177
    • Luiz Augusto von Dentz's avatar
      audio/avrcp: Bump TG to version 1.5 · 8a29308b
      Luiz Augusto von Dentz authored
      1.4 is deprecated and 1.5 should be used instead.
      8a29308b
    • Luiz Augusto von Dentz's avatar
      audio/avrcp: Fix crash on RegisterNotification · 60050fe4
      Luiz Augusto von Dentz authored
      When registering AVRCP_EVENT_ADDRESSED_PLAYER_CHANGED there may not be
      any player available causing a crash.
      60050fe4
    • Luiz Augusto von Dentz's avatar
      audio/avrcp: Fix invalid read · 18fe3cf4
      Luiz Augusto von Dentz authored
      Player pointer cannot be used after being freed.
      18fe3cf4
  8. Aug 27, 2015
  9. Aug 26, 2015
  10. Aug 20, 2015
    • Bharat Panda's avatar
      monitor/avctp: Fix GetFolderItems field values · 3a6a9316
      Bharat Panda authored
      Replaced field names for GetFolderItems response with
      correct names, values and fix allignments.
      
            AVCTP Browsing: Response: type 0x00 label 0 PID 0x110e
              AVRCP: GetFolderItems: len 0x0030
                Status: 0x04 (Success)
                UIDCounter: 0x0000 (0)
                NumOfItems: 0x0001 (1)
                Item: 0x01 (Media Player)
                Length: 0x0028 (40)
                PlayerID: 0x0000 (0)
                PlayerType: 0x0001 (Audio)
                PlayerSubType: 0x00000001 (Audio Book)
                PlayStatus: 0x01 (PLAYING)
                Features: 0x0000000000b701ef0200000000000000
                CharsetID: 0x006a (UTF-8)
                NameLength: 0x000c (12)
                Name: SimplePlayer
      3a6a9316
  11. Aug 18, 2015
    • Bharat Panda's avatar
      audio/avrcp: Add Set Addressed Player support · 4827d6b6
      Bharat Panda authored
      Support added to handle Set Addressed Player PDU in TG role.
      Send EVENT_ADDRESSED_PLAYER_CHANGED on SetAddressedPlayer
      SUCCESS and follow procedure to reject all player specific events
      currently registered with the player.
      
            Channel: 64 len 15 [PSM 23 mode 0] {chan 0}
            AVCTP Control: Command: type 0x00 label 0 PID 0x110e
              AV/C: Control: address 0x48 opcode 0x00
                Subunit: Panel
                Opcode: Vendor Dependent
                Company ID: 0x001958
                AVRCP: SetAddressedPlayer pt Single len 0x0002
                  PlayerID: 0x0000 (0)
      
            Channel: 64 len 15 [PSM 23 mode 0] {chan 0}
            AVCTP Control: Response: type 0x00 label 0 PID 0x110e
              AV/C: Accepted: address 0x48 opcode 0x00
                Subunit: Panel
                Opcode: Vendor Dependent
                Company ID: 0x001958
                AVRCP: SetAddressedPlayer pt Single len 0x0002
                  Status: 0x04 (Success)
      
            Channel: 64 len 18 [PSM 23 mode 0] {chan 0}
            AVCTP Control: Response: type 0x00 label 0 PID 0x110e
              AV/C: Changed: address 0x48 opcode 0x00
                Subunit: Panel
                Opcode: Vendor Dependent
                Company ID: 0x001958
                AVRCP: RegisterNotification pt Single len 0x0005
                  EventID: 0x0b (EVENT_ADDRESSED_PLAYER_CHANGED)
                  PlayerID: 0x0000 (0)
                  UIDCounter: 0x0000 (0)
      4827d6b6
  12. Aug 14, 2015
    • Luiz Augusto von Dentz's avatar
      audio: Fix service state · e316a77f
      Luiz Augusto von Dentz authored
      When profile .disconnect is called the state of the service is already
      set to disconnecting this is make no sense to call
      btd_service_connect_complete as it will do nothing and the state will
      never be updated to disconnected as it should.
      e316a77f
    • Luiz Augusto von Dentz's avatar
      audio: Fix not resetting connect_id · a1a01a6f
      Luiz Augusto von Dentz authored
      Ever since discovery can be canceled connect_id is now set while
      discovering so it needs to be reset on the callback otherwise it will
      cause .connect to always return -EBUSY until .disconnect is called.
      a1a01a6f
    • Johan Hedberg's avatar
      emulator: Fix parameter order in le_conn_update() · a9f78621
      Johan Hedberg authored
      The values are passed by the only caller in min, max order, which
      makes sense since that's how they are over HCI as well. Update the
      function to match this.
      a9f78621
  13. Aug 13, 2015
Loading