aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>2016-06-16 22:04:35 +0200
committerMark Brown <broonie@kernel.org>2016-06-17 12:39:52 +0100
commit86c0ae7cde7a8699116b365a5e3016753f0cd92a (patch)
tree99f3cfce2364276da2e435aa59d750f0bf3220ca /sound
parentLinux 4.7-rc1 (diff)
downloadlinux-dev-86c0ae7cde7a8699116b365a5e3016753f0cd92a.tar.xz
linux-dev-86c0ae7cde7a8699116b365a5e3016753f0cd92a.zip
ASoC: cx20442: set tty->receiver_room in v253_open
Commit 79901317ce80 ("n_tty: Don't flush buffer when closing ldisc"), introduced in v3.10, revealed a bug in the cx20442 codec driver which has never been setting tty->receive_room on line discipline open as it should from the beginning. Fix it. Created and tested on Amstrad Delta against Linux-4.7-rc3 Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/cx20442.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/cx20442.c b/sound/soc/codecs/cx20442.c
index d6f4abbbf8a7..fb3885fe0afb 100644
--- a/sound/soc/codecs/cx20442.c
+++ b/sound/soc/codecs/cx20442.c
@@ -226,6 +226,7 @@ static int v253_open(struct tty_struct *tty)
if (!tty->disc_data)
return -ENODEV;
+ tty->receive_room = 16;
if (tty->ops->write(tty, v253_init, len) != len) {
ret = -EIO;
goto err;