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

Commit 2887fc9c authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ALSA: audio_codec: add hwdep interface



This commit adds hwdep interface for codec calibration.

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.

Change-Id: I6d835a5071c3c71dd77e9ed08cf6b11143517053
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 7aabab6e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -108,9 +108,10 @@ enum {
	SNDRV_HWDEP_IFACE_FW_TASCAM,	/* TASCAM FireWire series */
	SNDRV_HWDEP_IFACE_LINE6,	/* Line6 USB processors */
	SNDRV_HWDEP_IFACE_AUDIO_BE,	/* Backend Audio Control */
	SNDRV_HWDEP_IFACE_AUDIO_CODEC,  /* codec Audio Control */

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

struct snd_hwdep_info {