diff options
author | Daniel Mack <daniel@zonque.org> | 2022-06-29 08:06:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-29 13:58:44 +0300 |
commit | d29e0a6e3631724c0b36786c6d9616b6e4ebeaa4 (patch) | |
tree | 11d90b6d711cc7bb909e59ae8d0c48d7b02f2154 /sound/soc/codecs/max98396.h | |
parent | 48620f17e071060092197a09663a1c1fe6207829 (diff) | |
download | linux-d29e0a6e3631724c0b36786c6d9616b6e4ebeaa4.tar.xz |
ASoC: max98396: Fix TDM mode BSEL settings
In TDM mode, the BSEL register value must be set according to table 5 in the
datasheet. This patch adds a lookup function and uses it in
max98396_dai_tdm_slot().
As the first 3 entries can also be used for non-TDM setups, the code re-uses
the same table for such scenarios.
Signed-off-by: Daniel Mack <daniel@zonque.org>
Link: https://lore.kernel.org/r/20220629050630.2848317-1-daniel@zonque.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98396.h')
-rw-r--r-- | sound/soc/codecs/max98396.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98396.h b/sound/soc/codecs/max98396.h index ff330ef61568..7278c779989a 100644 --- a/sound/soc/codecs/max98396.h +++ b/sound/soc/codecs/max98396.h @@ -306,8 +306,8 @@ struct max98396_priv { unsigned int spkfb_slot; unsigned int bypass_slot; bool interleave_mode; - unsigned int ch_size; bool tdm_mode; + int tdm_max_samplerate; int device_id; }; #endif |