Commit bb3d6bf1919a20c56b3257b4ec09e67a9226cfb2

Authored by Linus Torvalds
1 parent 55db4c64ed

Revert "ASoC: Update cx20442 for TTY API change"

This reverts commit ed0bd2333cffc3d856db9beb829543c1dfc00982.

Since we reverted the TTY API change, we should revert the ASoC update
to it too.

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <lrg@ti.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 5 deletions Side-by-side Diff

sound/soc/codecs/cx20442.c
... ... @@ -262,14 +262,14 @@
262 262 }
263 263  
264 264 /* Line discipline .receive_buf() */
265   -static unsigned int v253_receive(struct tty_struct *tty,
266   - const unsigned char *cp, char *fp, int count)
  265 +static void v253_receive(struct tty_struct *tty,
  266 + const unsigned char *cp, char *fp, int count)
267 267 {
268 268 struct snd_soc_codec *codec = tty->disc_data;
269 269 struct cx20442_priv *cx20442;
270 270  
271 271 if (!codec)
272   - return count;
  272 + return;
273 273  
274 274 cx20442 = snd_soc_codec_get_drvdata(codec);
275 275  
... ... @@ -281,8 +281,6 @@
281 281 codec->hw_write = (hw_write_t)tty->ops->write;
282 282 codec->card->pop_time = 1;
283 283 }
284   -
285   - return count;
286 284 }
287 285  
288 286 /* Line discipline .write_wakeup() */