summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_sai.h
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-04-15 13:14:26 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-04-17 12:06:39 +0800
commit02d362f8d6dac7bd2357edf30420db8648860c77 (patch)
treed66812ad6a7215cfa6e78a86f2e4b01bb55c5da0 /sound/soc/fsl/fsl_sai.h
parentec7568ce2f85e3f86119cbedc482dc280b8151fa (diff)
MLK-23792-1: ASoC: fsl_sai: Monitor spdif rx clock in imx8mm
As we use one spare sai instance to monitor the spdif rx clock, there isn't belong to a sound card, we can't access the registers by amixer controls. So remove the amixer controls, replace them with the device attribute. And add an additional device attribute for enablement of monitorring spdif. This feature only be supported on imx8mm. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_sai.h')
-rw-r--r--sound/soc/fsl/fsl_sai.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_sai.h b/sound/soc/fsl/fsl_sai.h
index ee2eb2fdd03a..81599924c38f 100644
--- a/sound/soc/fsl/fsl_sai.h
+++ b/sound/soc/fsl/fsl_sai.h
@@ -249,6 +249,7 @@ struct fsl_sai_dl_cfg {
struct fsl_sai {
struct platform_device *pdev;
struct regmap *regmap;
+ struct regmap *regmap_gpr;
struct clk *bus_clk;
struct clk *mclk_clk[FSL_SAI_MCLK_MAX];
struct clk *pll8k_clk;
@@ -261,7 +262,10 @@ struct fsl_sai {
bool synchronous[2];
bool is_stream_opened[2];
bool is_dsd;
+ bool monitor_spdif;
+ bool monitor_spdif_start;
+ int gpr_idx;
int pcm_dl_cfg_cnt;
int dsd_dl_cfg_cnt;
struct fsl_sai_dl_cfg *pcm_dl_cfg;
@@ -286,6 +290,8 @@ struct fsl_sai {
struct fsl_sai_param param;
};
+const struct attribute_group *fsl_sai_get_dev_attribute_group(bool monitor_spdif);
+
#define TX 1
#define RX 0