ALSA: include: Add new ioctl for metadata mode

Add a new ioctl to support metadata mode in lpa driver. This ioctl
allows lpa driver to work in default alsa compliant mode and also
metadata mode.

CRs-Fixed: 458904 491077 490992
Change-Id: I8111e8652bbfb6dd93bdbda69bd16f53b45cb756
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
ASoC: msm add support for meta data mode for lpa driver

Seek to EOS was causing playback to hang for three seconds before
switching to the next clip. This is because the lpa driver works
on period size. Partial buffers are not handled. Add metadata
mode changes to LPA Driver to support partial frames.

CRs-Fixed: 458904 491077 490992
Change-Id: I1d59694f17456d73fd10bd900fb83533fef9f6c9
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>

Conflicts:
	sound/soc/msm/qdsp6v2/msm-pcm-lpa-v2.c
	sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.h
ASoC: msm: Fix underrun in LPA driver

Update LPA platform driver to register restart callback.
The implementation of the callback is to issue a pending buffer
written by the application to restart the session when the dequeue
process is stopped due to underrun issue.
The callback is triggered from ALSA core when the framework
detects that the renderer stopped pulling data but the application
is still writing data. It runs in atomic context.

CRs-Fixed: 491077 490992
Change-Id: I1ed35c7d1ae0646fd09aa9a6996c030b3d54c102
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>

Conflicts:
	sound/soc/msm/qdsp6v2/msm-pcm-lpa-v2.c