Fix A2DP Bluetooth audio routing, stream migration, hotplug monitoring, and q6voice teardown
This commit is contained in:
1 parent
b2ade2dc42
commit
b8dea31b59
34 files changed
+533
-155
No files matched your search
@@ -412,7 +412,27 @@
|
||||
static unsigned int q6voice_reg_read(struct snd_soc_component *component,
|
||||
--- a/sound/soc/qcom/qdsp6/q6voice.c
|
||||
+++ b/sound/soc/qcom/qdsp6/q6voice.c
|
||||
@@ -252,11 +252,25 @@
|
||||
@@ -39,6 +39,9 @@
|
||||
struct q6voice_session *mvm, *cvp;
|
||||
int ret;
|
||||
|
||||
+ if (!p->tx_port || !p->rx_port)
|
||||
+ return 0;
|
||||
+
|
||||
dev_dbg(dev, "start path %d\n", p->type);
|
||||
|
||||
mvm = p->runtime->sessions[Q6VOICE_SERVICE_MVM];
|
||||
@@ -133,6 +136,9 @@
|
||||
struct q6voice_session *cvp = p->runtime->sessions[Q6VOICE_SERVICE_CVP];
|
||||
int ret;
|
||||
|
||||
+ if (!mvm || !cvp)
|
||||
+ return;
|
||||
+
|
||||
dev_dbg(dev, "stop path %d\n", p->type);
|
||||
|
||||
ret = q6mvm_start(mvm, false);
|
||||
@@ -252,11 +258,25 @@
|
||||
bool capture, int index)
|
||||
{
|
||||
struct q6voice_path *p = &v->paths[path];
|
||||
|
||||
Reference in new issue
Block a user