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

Commit 4816300e authored by Banajit Goswami's avatar Banajit Goswami Committed by Gerrit - the friendly Code Review server
Browse files

Asoc: Add audio backend to hwdep interface



Add audio backend to hwdep interface. This is to provide
ioctl interface to communicate to routing driver.
Currently codec driver uses request_firmware to get calibration data
but as this firmware file is also written by userspace process after
bootup, it is not recommended to use request_firmware. ALSA core
provides mechanism to get hardware dependent data using hwdep nodes.
Codec will use aforementioned nodes to get calibration data from
userspace.
This commit adds hwdep interface for codec calibration.

Change-Id: I9abeb9cdf3ea58d9fac13eef5d849c8aadf1bfbf
Signed-off-by: default avatarSubhash Chandra Bose Naripeddy <snariped@codeaurora.org>
Signed-off-by: default avatarKrishnankutty Kolathappilly <kkolat@codeaurora.org>
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mengw@codeaurora.org>
parent b3396c08
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -111,11 +111,20 @@ enum {
	SNDRV_HWDEP_IFACE_LINE6,	/* Line6 USB processors */
	SNDRV_HWDEP_IFACE_FW_MOTU,	/* MOTU FireWire series */
	SNDRV_HWDEP_IFACE_FW_FIREFACE,	/* RME Fireface series */
#ifdef CONFIG_AUDIO_QGKI
	SNDRV_HWDEP_IFACE_AUDIO_CODEC,  /* codec Audio Control */

	/* Don't forget to change the following: */
	SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_AUDIO_CODEC
#else
	SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_FW_FIREFACE
#endif
};

#ifdef CONFIG_AUDIO_QGKI
#define SNDRV_HWDEP_IFACE_AUDIO_CODEC SNDRV_HWDEP_IFACE_AUDIO_CODEC
#endif

struct snd_hwdep_info {
	unsigned int device;		/* WR: device number */
	int card;			/* R: card number */