mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ASoC: mediatek: btcvsd fix tx stream assign
@ 2020-11-30  3:11 Lumi Lee
  2020-11-30 16:55 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Lumi Lee @ 2020-11-30  3:11 UTC (permalink / raw)
  To: Matthias Brugger, Mark Brown
  Cc: linux-kernel, linux-mediatek, devicetree, alsa-devel,
	wsd_upstream, jiaxin.yu, eason.yen, Shane.Chien, Lumi Lee

From: Lumi Lee <lumi.lee@mediatek.com>

Fix tx/rx stream assign in write.
Write should use tx instead of rx.

Signed-off-by: Lumi Lee <lumi.lee@mediatek.com>
---
 sound/soc/mediatek/common/mtk-btcvsd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/mediatek/common/mtk-btcvsd.c b/sound/soc/mediatek/common/mtk-btcvsd.c
index 668fef3..a554c57 100644
--- a/sound/soc/mediatek/common/mtk-btcvsd.c
+++ b/sound/soc/mediatek/common/mtk-btcvsd.c
@@ -808,7 +808,7 @@ static ssize_t mtk_btcvsd_snd_write(struct mtk_btcvsd_snd *bt,
 		spin_unlock_irqrestore(&bt->tx_lock, flags);
 
 		if (!avail) {
-			int ret = wait_for_bt_irq(bt, bt->rx);
+			int ret = wait_for_bt_irq(bt, bt->tx);
 
 			if (ret)
 				return written_size;
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-30 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-30  3:11 [PATCH] ASoC: mediatek: btcvsd fix tx stream assign Lumi Lee
2020-11-30 16:55 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®