hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/da7219.h
....@@ -1,14 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * da7219.h - DA7219 ALSA SoC Codec Driver
34 *
45 * Copyright (c) 2015 Dialog Semiconductor
56 *
67 * Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 */
139
1410 #ifndef __DA7219_H
....@@ -809,6 +805,7 @@
809805
810806 /* Private data */
811807 struct da7219_priv {
808
+ struct snd_soc_component *component;
812809 struct da7219_aad_priv *aad;
813810 struct da7219_pdata *pdata;
814811
....@@ -819,16 +816,18 @@
819816 struct mutex pll_lock;
820817
821818 #ifdef CONFIG_COMMON_CLK
822
- struct clk_hw dai_clks_hw;
819
+ struct clk_hw dai_clks_hw[DA7219_DAI_NUM_CLKS];
820
+ struct clk_hw_onecell_data *clk_hw_data;
823821 #endif
824
- struct clk_lookup *dai_clks_lookup;
825
- struct clk *dai_clks;
822
+ struct clk_lookup *dai_clks_lookup[DA7219_DAI_NUM_CLKS];
823
+ struct clk *dai_clks[DA7219_DAI_NUM_CLKS];
826824
827825 struct clk *mclk;
828826 unsigned int mclk_rate;
829827 int clk_src;
830828
831829 bool master;
830
+ bool tdm_en;
832831 bool alc_en;
833832 bool micbias_on_event;
834833 unsigned int mic_pga_delay;