Commit ed0bd233 authored by Mark Brown's avatar Mark Brown Committed by Greg Kroah-Hartman

ASoC: Update cx20442 for TTY API change

receive_buf() was recently changed to return the number of bytes
received but the cx20442 driver wasn't updated to match the new API.
I don't have any hardware but since we don't actually appears to be
listening to the data at all just report that we accepted all the data
that was offered to us.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 177c2cbf
...@@ -274,14 +274,14 @@ static int v253_hangup(struct tty_struct *tty) ...@@ -274,14 +274,14 @@ static int v253_hangup(struct tty_struct *tty)
} }
/* Line discipline .receive_buf() */ /* Line discipline .receive_buf() */
static void v253_receive(struct tty_struct *tty, static unsigned int v253_receive(struct tty_struct *tty,
const unsigned char *cp, char *fp, int count) const unsigned char *cp, char *fp, int count)
{ {
struct snd_soc_codec *codec = tty->disc_data; struct snd_soc_codec *codec = tty->disc_data;
struct cx20442_priv *cx20442; struct cx20442_priv *cx20442;
if (!codec) if (!codec)
return; return count;
cx20442 = snd_soc_codec_get_drvdata(codec); cx20442 = snd_soc_codec_get_drvdata(codec);
...@@ -293,6 +293,8 @@ static void v253_receive(struct tty_struct *tty, ...@@ -293,6 +293,8 @@ static void v253_receive(struct tty_struct *tty,
codec->hw_write = (hw_write_t)tty->ops->write; codec->hw_write = (hw_write_t)tty->ops->write;
codec->card->pop_time = 1; codec->card->pop_time = 1;
} }
return count;
} }
/* Line discipline .write_wakeup() */ /* Line discipline .write_wakeup() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment