]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea2ffaf4f30cc92fe40c22925513dd8fed8300ac
tree99f3cfce2364276da2e435aa59d750f0bf3220ca
parenteafb69e30fd2c5eb541ab8464cb7c24186e23039
ASoC: cx20442: set tty->receiver_room in v253_open

Commit 8fa362a88f82 ("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