ASoC: max98390: Add controls for tx path
PATCH 1/1 ASoC: max98390: Add controls for tx path
Add controls for tx source.
--- sound/soc/codecs/max98390.c | 6 ++++++ 1 file changed, 6 insertions(+)
sound/soc/codecs/max98390.c +6 -0
@@ -656,6 +656,12 @@ static const struct snd_kcontrol_new max98390_snd_controls[] = { MAX98390_AMP_DSP_CFG_RMP_DN_SHIFT, 1, 0),SOC_SINGLE ("Boost Clock Phase" ,MAX98390_BOOST_CTRL3 ,MAX98390_BOOST_CLK_PHASE_CFG_SHIFT ,3 ,0 ), +SOC_SINGLE ("Tx Enable Selection" ,MAX98390_PCM_TX_EN_A , +0 ,255 ,0 ), +SOC_SINGLE ("Tx Hiz Selection" ,MAX98390_PCM_TX_HIZ_CTRL_A , +0 ,255 ,0 ), +SOC_SINGLE ("Tx Source Selection" ,MAX98390_PCM_CH_SRC_2 , +0 ,255 ,0 ),SOC_ENUM ("Boost Output Voltage" , max98390_boost_voltage),SOC_ENUM ("Current Limit" , max98390_current_limit), SOC_SINGLE_EXT("DSM Rdc", SND_SOC_NOPM, 0, 0xffffff, 0,
Signature · 1 line
2.17.1
Mark Brown
maintainerReview
Quoted 2 lines · Steve Lee
(quoted diff) +2
-0+ SOC_SINGLE("Tx Enable Selection", MAX98390_PCM_TX_EN_A, + 0, 255, 0),
I'm not clear what this is (especially given the source selection below) but it looks like it should be a mute control?
Review
Quoted 2 lines
(quoted diff) +2
-0+ SOC_SINGLE("Tx Hiz Selection", MAX98390_PCM_TX_HIZ_CTRL_A, + 0, 255, 0),
This I'd expect to be tied into machine driver configuration, either DT properties or TDM slot configuration - it's not something that looks like it's something you'd want to control at runtime.
sound/soc/codecs/max98390.c static const struct snd_kcontrol_new max98390_snd_controls[] = { · line 664
Quoted 2 lines
sound/soc/codecs/max98390.c +2
-0+SOC_SINGLE ("Tx Source Selection" ,MAX98390_PCM_CH_SRC_2 , + 0, 255, 0),
This looks like it should be a DAPM control or possibly a TDM slot configuration - look at how the Arizona devices handle routing from multiple TDM slots for the DAPM version.
Quoted 13 lines
-----Original Message-----
From: Mark Brown <[email protected]>
Sent: Saturday, April 3, 2021 12:23 AM
To: Steve Lee <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [EXTERNAL] Re: [PATCH] ASoC: max98390: Add controls for tx path
Quoted 7 lines
Review
Quoted 2 lines · Steve Lee
(quoted diff) +2
-0+ SOC_SINGLE("Tx Enable Selection", MAX98390_PCM_TX_EN_A, + 0, 255, 0),I'm not clear what this is (especially given the source selection below) but it looks like it should be a mute control?
Yes, each channel of enable and disable control.
I will update this also configured by TDM slot configuration.
Quoted 7 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ SOC_SINGLE("Tx Hiz Selection", MAX98390_PCM_TX_HIZ_CTRL_A, + 0, 255, 0),This I'd expect to be tied into machine driver configuration, either DT properties or TDM slot configuration - it's not something that looks like it's something you'd want to control at runtime.
I will update this with either TDM slot configuration and DT properties.
Quoted 7 lines
sound/soc/codecs/max98390.c static const struct snd_kcontrol_new max98390_snd_controls[] = { · line 664
Quoted 3 lines
sound/soc/codecs/max98390.c +2
-0+SOC_SINGLE ("Tx Source Selection" ,MAX98390_PCM_CH_SRC_2 , + 0, 255, 0),This looks like it should be a DAPM control or possibly a TDM slot configuration - look at how the Arizona devices handle routing from multiple TDM slots for the DAPM version.
This is for Current Sensing and Voltage sensing slot selection. I will update this as DT properties.