Ignore -106 error while opening channel
Ignore -106 error when channel opened again without closing. CRs-Fixed: 2836671 Change-Id: Ib27179031e6bbdc20511132efd6c4578d1d0a911 Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
8c79c6778a
commit
9a96de3c3e
@@ -1,6 +1,6 @@
|
|||||||
// 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user