From da769ef1d371870de61a09abf640c11b36e0f4d8 Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Fri, 20 Dec 2019 15:31:04 +0800 Subject: [PATCH] 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: I7ecdcdb3c16b0b4d232e05f17f44b346ac796fd2 Signed-off-by: Subhash Chandra Bose Naripeddy Signed-off-by: Krishnankutty Kolathappilly Signed-off-by: Banajit Goswami Signed-off-by: Sudheer Papothi Signed-off-by: Meng Wang --- include/uapi/sound/asound.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h index b127650c1cb5..5edc76c022b6 100644 --- a/include/uapi/sound/asound.h +++ b/include/uapi/sound/asound.h @@ -112,6 +112,7 @@ enum { SNDRV_HWDEP_IFACE_FW_MOTU, /* MOTU FireWire series */ SNDRV_HWDEP_IFACE_FW_FIREFACE, /* RME Fireface series */ #ifdef CONFIG_AUDIO_QGKI + SNDRV_HWDEP_IFACE_AUDIO_BE, /* Backend Audio Control */ SNDRV_HWDEP_IFACE_AUDIO_CODEC, /* codec Audio Control */ /* Don't forget to change the following: */ @@ -122,6 +123,7 @@ enum { }; #ifdef CONFIG_AUDIO_QGKI +#define SNDRV_HWDEP_IFACE_AUDIO_BE SNDRV_HWDEP_IFACE_AUDIO_BE #define SNDRV_HWDEP_IFACE_AUDIO_CODEC SNDRV_HWDEP_IFACE_AUDIO_CODEC #endif