Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a96de3c authored by Satish Kodishala's avatar Satish Kodishala Committed by Gerrit - the friendly Code Review server
Browse files

Ignore -106 error while opening channel



Ignore -106 error when channel opened
again without closing.

CRs-Fixed: 2836671
Change-Id: Ib27179031e6bbdc20511132efd6c4578d1d0a911
Signed-off-by: default avatarSatish Kodishala <skodisha@codeaurora.org>
parent 8c79c677
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-License-Identifier: GPL-2.0-only
/*
/*
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 */
 */


#include <linux/init.h>
#include <linux/init.h>
@@ -13,6 +13,7 @@
#include <linux/slimbus/slimbus.h>
#include <linux/slimbus/slimbus.h>
#include <linux/ratelimit.h>
#include <linux/ratelimit.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <sound/pcm.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc.h>
@@ -209,6 +210,11 @@ static int btfm_slim_dai_prepare(struct snd_pcm_substream *substream,
	/* save the enable channel status */
	/* save the enable channel status */
	if (ret == 0)
	if (ret == 0)
		bt_soc_enable_status = 1;
		bt_soc_enable_status = 1;

	if (ret == -EISCONN) {
		BTFMSLIM_ERR("channel opened without closing, return success");
		ret = 0;
	}
	return ret;
	return ret;
}
}