ASoC: mediatek: btcvsd fix tx stream assign

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

Signed-off-by: Lumi Lee <lumi.lee@mediatek.com>
Link: https://lore.kernel.org/r/1606705875-1940-1-git-send-email-Lumi.Lee@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Lumi Lee 2020-11-30 11:11:15 +08:00 committed by Mark Brown
parent aa4cb898b8
commit bbe1f69dce
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;