From 23b12cca62af5cf3f3480f76d4b20debc9cc7995 Mon Sep 17 00:00:00 2001 From: Sudheer Papothi Date: Fri, 29 Jan 2016 01:21:10 +0530 Subject: [PATCH] soc: Add audio backend to hwdep interface Add audio backend to hwdep interface. This is to provide ioctl interface to communicate to routing driver. Signed-off-by: Subhash Chandra Bose Naripeddy Signed-off-by: Krishnankutty Kolathappilly Signed-off-by: Banajit Goswami Signed-off-by: Sudheer Papothi --- include/uapi/sound/asound.h | 3 ++- sound/soc/soc-pcm.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h index a82108e5d1c0..8e768ddcb02b 100644 --- a/include/uapi/sound/asound.h +++ b/include/uapi/sound/asound.h @@ -102,9 +102,10 @@ enum { SNDRV_HWDEP_IFACE_FW_OXFW, /* Oxford OXFW970/971 based device */ SNDRV_HWDEP_IFACE_FW_DIGI00X, /* Digidesign Digi 002/003 family */ SNDRV_HWDEP_IFACE_FW_TASCAM, /* TASCAM FireWire series */ + SNDRV_HWDEP_IFACE_AUDIO_BE, /* Backend Audio Control */ /* Don't forget to change the following: */ - SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_FW_TASCAM + SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_AUDIO_BE }; struct snd_hwdep_info { diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index b8013d4d218f..92188446e779 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2658,6 +2658,8 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num) pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd; if (capture) pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd; + if (platform->driver->pcm_new) + rtd->platform->driver->pcm_new(rtd); goto out; }