Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: tas2764: Add control concerning overcurrent events

Add control to expose the option of autoretry behavior on overcurrent
events in the codec.

Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Link: https://patch.msgid.link/20250227-apple-codec-changes-v3-4-cbb130030acf@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Martin Povišer and committed by
Mark Brown
f8d5f28e ad183929

+13
+9
sound/soc/codecs/tas2764.c
··· 634 634 tas2764_hpf_enum, TAS2764_DC_BLK0, 635 635 TAS2764_DC_BLK0_HPF_FREQ_PB_SHIFT, tas2764_hpf_texts); 636 636 637 + static const char * const tas2764_oce_texts[] = { 638 + "Disable", "Retry", 639 + }; 640 + 641 + static SOC_ENUM_SINGLE_DECL( 642 + tas2764_oce_enum, TAS2764_MISC_CFG1, 643 + TAS2764_MISC_CFG1_OCE_RETRY_SHIFT, tas2764_oce_texts); 644 + 637 645 static const struct snd_kcontrol_new tas2764_snd_controls[] = { 638 646 SOC_SINGLE_TLV("Speaker Volume", TAS2764_DVC, 0, 639 647 TAS2764_DVC_MAX, 1, tas2764_playback_volume), 640 648 SOC_SINGLE_TLV("Amp Gain Volume", TAS2764_CHNL_0, 1, 0x14, 0, 641 649 tas2764_digital_tlv), 642 650 SOC_ENUM("HPF Corner Frequency", tas2764_hpf_enum), 651 + SOC_ENUM("OCE Handling", tas2764_oce_enum), 643 652 }; 644 653 645 654 static const struct snd_soc_component_driver soc_component_driver_tas2764 = {
+4
sound/soc/codecs/tas2764.h
··· 44 44 45 45 #define TAS2764_CHNL_0 TAS2764_REG(0X0, 0x03) 46 46 47 + /* Miscellaneous */ 48 + #define TAS2764_MISC_CFG1 TAS2764_REG(0x0, 0x06) 49 + #define TAS2764_MISC_CFG1_OCE_RETRY_SHIFT 5 50 + 47 51 /* TDM Configuration Reg0 */ 48 52 #define TAS2764_TDM_CFG0 TAS2764_REG(0X0, 0x08) 49 53 #define TAS2764_TDM_CFG0_SMP_MASK BIT(5)