Commit: 7103267648b4f9d3d48be8043e29aceeb8db212e
Parent: 94757c8fe2fa128e5b3ba8bd1b47cf33a1c8c0c8
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2013-03-06 11:50:34
Tree: d69cb7f745fd0faed8990a4b91c554ae4881b162

sink: Register state callback for specified audio device State callback will now be registered and called for specified device only. This will allow for more cleaner callback register/unregister in roles code. Fix following valgrind reports: 16 bytes in 1 blocks are still reachable in loss record 42 of 219 at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4E7FA78: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3) by 0x4E92CA2: g_slice_alloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3) by 0x4E93FC2: g_slist_append (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3) by 0x41F31D: sink_add_state_cb (sink.c:456) by 0x41DD67: audio_device_register (device.c:314) by 0x416ECA: manager_get_audio_device (manager.c:491) by 0x4171A8: a2dp_sink_probe (manager.c:131) by 0x46A801: dev_probe (device.c:2347) by 0x468C9E: btd_profile_foreach (profile.c:599) by 0x46BB95: device_probe_profiles (device.c:2423) by 0x461438: load_devices (adapter.c:2549) 24 bytes in 1 blocks are still reachable in loss record 56 of 219 at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4E7FA78: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3) by 0x41F2F2: sink_add_state_cb (sink.c:451) by 0x41DD67: audio_device_register (device.c:314) by 0x416ECA: manager_get_audio_device (manager.c:491) by 0x4171A8: a2dp_sink_probe (manager.c:131) by 0x46A801: dev_probe (device.c:2347) by 0x468C9E: btd_profile_foreach (profile.c:599) by 0x46BB95: device_probe_profiles (device.c:2423) by 0x461438: load_devices (adapter.c:2549) by 0x465066: read_info_complete (adapter.c:5514) by 0x471381: request_complete (mgmt.c:221)

Diffstat

M profiles/audio/device.c | 9 ++++- - - - -
M profiles/audio/sink.c | 9 ++++++++-
M profiles/audio/sink.h | 3 ++-
M profiles/audio/transport.c | 5 +- - - -

4 files changed, 15 insertions(+), 11 deletions(-)

View Full Diff | Patch