Hi Luiz, On Mon, Jul 16, 2012 at 11:17 AM, Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: > Hi Mikel, > > On Mon, Jul 9, 2012 at 5:21 PM, Mikel Astiz <mikel.astiz.oss@xxxxxxxxx> wrote: >> From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx> >> unsigned int gateway_request_stream(struct audio_device *dev, >> + gboolean try_only, >> gateway_stream_cb_t cb, void *user_data) >> { >> struct gateway *gw = dev->gateway; >> GError *err = NULL; >> GIOChannel *io; >> >> + if (try_only && !gw->sco) >> + return 0; > > Perhaps if we store the status of the transport we don't need to even > call gateway_request_stream. I tried to follow this approach by adding a flag (gboolean playing) inside struct media_transport, avoiding changes in the transport callbacks. Patches will be submitted soon. Cheers, Mikel -- 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