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

Commit e138a967 authored by Krishnankutty Kolathappilly's avatar Krishnankutty Kolathappilly Committed by Gerrit - the friendly Code Review server
Browse files

soc: Add audio backend to hwdep interface.



Add audio backend to hwdep interface. This is to provide ioctl
interface to communicate to routing driver.

CRs-Fixed: 661018
Change-Id: Id38cce4be2cebd89bbedc100553c733aa9e90739
Signed-off-by: default avatarSubhash Chandra Bose Naripeddy <snariped@codeaurora.org>
Signed-off-by: default avatarKrishnankutty Kolathappilly <kkolat@codeaurora.org>
parent ff86e4ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -93,9 +93,10 @@ enum {
	SNDRV_HWDEP_IFACE_SB_RC,	/* SB Extigy/Audigy2NX remote control */
	SNDRV_HWDEP_IFACE_HDA,		/* HD-audio */
	SNDRV_HWDEP_IFACE_USB_STREAM,	/* direct access to usb stream */
	SNDRV_HWDEP_IFACE_AUDIO_BE,	/* Backend Audio Control */

	/* Don't forget to change the following: */
	SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_USB_STREAM
	SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_AUDIO_BE
};

struct snd_hwdep_info {
+2 −0
Original line number Diff line number Diff line
@@ -2316,6 +2316,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;
	}