Re: [PATCH 1/7] Add missing call to headset_remove_state_cb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Frédéric,

2011/8/12 Frédéric Dalleau <frederic.dalleau@xxxxxxxxxxxxxxx>:
> ---
>  audio/device.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/audio/device.c b/audio/device.c
> index 18e873e..f61ef0f 100644
> --- a/audio/device.c
> +++ b/audio/device.c
> @@ -702,6 +702,9 @@ void audio_device_unregister(struct audio_device *device)
>  {
>        unix_device_removed(device);
>
> +       if (headset_callback_id != 0)
> +               headset_remove_state_cb(headset_callback_id);
> +
>        if (device->hs_preauth_id) {
>                g_source_remove(device->hs_preauth_id);
>                device->hs_preauth_id = 0;
> --
> 1.7.1
>

I don't think the callback is per-device, notice that it doesn't take
a device pointer, so if you got a problem with that it is basically
because the callback needs to check what device it is about (see
media.c as a reference)


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux