[PATCH] Use dev->control when calling audio_device_is_connected() for control

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

 



From f0e913c32f761d60a8a724dad7eb712abcef82e0 Mon Sep 17 00:00:00 2001
From: Nick Pelly <npelly@xxxxxxxxxx>
Date: Thu, 26 Mar 2009 16:12:45 -0700
Subject: [PATCH] Use dev->control when calling audio_device_is_connected() for control.

In 4.x this logic appears to be replicated (without the bug) in
manager_find_device() - so we may never hit this code path - but still good
to fix.
---
 audio/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/audio/device.c b/audio/device.c
index 08bc8f5..c9461d5 100644
--- a/audio/device.c
+++ b/audio/device.c
@@ -172,7 +172,7 @@ gboolean audio_device_is_connected(struct audio_device *dev,
 	else if (!strcmp(interface, AUDIO_HEADSET_INTERFACE) && dev->headset &&
 			headset_is_active(dev))
 		return TRUE;
-	else if (!strcmp(interface, AUDIO_CONTROL_INTERFACE) && dev->headset &&
+	else if (!strcmp(interface, AUDIO_CONTROL_INTERFACE) && dev->control &&
 			control_is_active(dev))
 		return TRUE;
 
-- 
1.5.5


[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