ASoC: cx20442: set tty->receiver_room in v253_open
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Thu, 16 Jun 2016 20:04:35 +0000 (22:04 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jun 2016 11:39:52 +0000 (12:39 +0100)
commit86c0ae7cde7a8699116b365a5e3016753f0cd92a
tree99f3cfce2364276da2e435aa59d750f0bf3220ca
parent1a695a905c18548062509178b98bc91e67510864
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>
sound/soc/codecs/cx20442.c