2012-09-04 09:55:27

by Mikel Astiz

[permalink] [raw]
Subject: [PATCH] audio: Fix gateway probe always failing

From: Mikel Astiz <[email protected]>

Commit 813b674bce1aab009e7f2d14d1825f603330563d introduced this trivial
bug which causes the failure of the gateway profile probe.
---
audio/manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/audio/manager.c b/audio/manager.c
index 9ca8593..5c81957 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -706,7 +706,7 @@ static int ag_probe(struct btd_device *device, GSList *uuids)
return -1;
}

- if (!audio_dev->gateway)
+ if (audio_dev->gateway)
return -EALREADY;

audio_dev->gateway = gateway_init(audio_dev);
--
1.7.7.6



2012-09-04 10:30:30

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] audio: Fix gateway probe always failing

Hi Mikel,

On Tue, Sep 04, 2012, Mikel Astiz wrote:
> From: Mikel Astiz <[email protected]>
>
> Commit 813b674bce1aab009e7f2d14d1825f603330563d introduced this trivial
> bug which causes the failure of the gateway profile probe.
> ---
> audio/manager.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

Good catch. The patch has now been applied. Thanks!

Johan