Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9c67fe5 authored by Gopikrishnaiah Anand's avatar Gopikrishnaiah Anand Committed by Gopikrishnaiah Anandan
Browse files

ASoC: msm: qdsp6v2: Return error for invalid ioctl's



pcm lib of alsa framework doesn't expect any userspace structures being
passed for a ioctl command.If compress driver recieves a ioctl not
supported by it return error instead of calling pcm library.

CRs-fixed: 664419
Change-Id: I2f46e087f95ce7edeac1a9b82f76ed2fb6f2d195
Signed-off-by: default avatarGopikrishnaiah Anand <agopik@codeaurora.org>
parent ee794fa1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1177,9 +1177,11 @@ static int msm_compr_ioctl_shared(struct snd_pcm_substream *substream,
		prtd->cmd_interrupt = 0;
		return rc;
	default:
		pr_err("%s: Invalid ioctl %d\n", __func__, cmd);
		rc = -ENOTTY;
		break;
	}
	return snd_pcm_lib_ioctl(substream, cmd, arg);
	return rc;
}

static int msm_compr_ioctl(struct snd_pcm_substream *substream,