Commit bbe1f69d authored by Lumi Lee's avatar Lumi Lee Committed by Mark Brown

ASoC: mediatek: btcvsd fix tx stream assign

Fix tx/rx stream assign in write.
Write should use tx instead of rx.
Signed-off-by: default avatarLumi Lee <lumi.lee@mediatek.com>
Link: https://lore.kernel.org/r/1606705875-1940-1-git-send-email-Lumi.Lee@mediatek.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent aa4cb898
...@@ -808,7 +808,7 @@ static ssize_t mtk_btcvsd_snd_write(struct mtk_btcvsd_snd *bt, ...@@ -808,7 +808,7 @@ static ssize_t mtk_btcvsd_snd_write(struct mtk_btcvsd_snd *bt,
spin_unlock_irqrestore(&bt->tx_lock, flags); spin_unlock_irqrestore(&bt->tx_lock, flags);
if (!avail) { if (!avail) {
int ret = wait_for_bt_irq(bt, bt->rx); int ret = wait_for_bt_irq(bt, bt->tx);
if (ret) if (ret)
return written_size; return written_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment