diff options
author | Lumi Lee <lumi.lee@mediatek.com> | 2020-11-30 11:11:15 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-30 12:52:48 +0000 |
commit | bbe1f69dce94089943cc407a88325ae7e851d49c (patch) | |
tree | 26c6a75b2741dcacc87f62c7562bdc0e7d48cabb /sound/soc/mediatek/common | |
parent | aa4cb898b80a28a610e26d1513e6dd42d995c225 (diff) | |
download | linux-bbe1f69dce94089943cc407a88325ae7e851d49c.tar.bz2 |
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>
Diffstat (limited to 'sound/soc/mediatek/common')
-rw-r--r-- | sound/soc/mediatek/common/mtk-btcvsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/mediatek/common/mtk-btcvsd.c b/sound/soc/mediatek/common/mtk-btcvsd.c index 668fef3e319a..a554c57b6460 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; |