| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * da7219.h - DA7219 ALSA SoC Codec Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2015 Dialog Semiconductor |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #ifndef __DA7219_H |
|---|
| .. | .. |
|---|
| 809 | 805 | |
|---|
| 810 | 806 | /* Private data */ |
|---|
| 811 | 807 | struct da7219_priv { |
|---|
| 808 | + struct snd_soc_component *component; |
|---|
| 812 | 809 | struct da7219_aad_priv *aad; |
|---|
| 813 | 810 | struct da7219_pdata *pdata; |
|---|
| 814 | 811 | |
|---|
| .. | .. |
|---|
| 819 | 816 | struct mutex pll_lock; |
|---|
| 820 | 817 | |
|---|
| 821 | 818 | #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; |
|---|
| 823 | 821 | #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]; |
|---|
| 826 | 824 | |
|---|
| 827 | 825 | struct clk *mclk; |
|---|
| 828 | 826 | unsigned int mclk_rate; |
|---|
| 829 | 827 | int clk_src; |
|---|
| 830 | 828 | |
|---|
| 831 | 829 | bool master; |
|---|
| 830 | + bool tdm_en; |
|---|
| 832 | 831 | bool alc_en; |
|---|
| 833 | 832 | bool micbias_on_event; |
|---|
| 834 | 833 | unsigned int mic_pga_delay; |
|---|