mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
ASoC: msm8916-wcd-analog: add pm8953 codec
Add regs overrides for PM8953 codec. Signed-off-by: Vladimir Lypak <vladimir.lypak@gmail.com> [Adam: rename codec] Signed-off-by: Adam Skladowski <a39.skl@gmail.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Acayan <mailingradian@gmail.com> Link: https://patch.msgid.link/20260730174353.108023-15-mailingradian@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
a3e1181e12
commit
4583c12453
|
|
@ -755,6 +755,34 @@ static const struct wcd_reg_seq pm8950_data = {
|
|||
.seq_size = ARRAY_SIZE(wcd_reg_defaults_pm8950),
|
||||
};
|
||||
|
||||
static const struct reg_default wcd_reg_defaults_pm8953[] = {
|
||||
{CDC_A_RX_COM_OCP_CTL, 0xd1},
|
||||
{CDC_A_RX_COM_OCP_COUNT, 0xff},
|
||||
{CDC_D_SEC_ACCESS, 0xa5},
|
||||
{CDC_D_PERPH_RESET_CTL3, 0x0f},
|
||||
{CDC_A_TX_1_2_OPAMP_BIAS, 0x4c},
|
||||
{CDC_A_NCP_FBCTRL, 0xa8},
|
||||
{CDC_A_NCP_VCTRL, 0xa4},
|
||||
{CDC_A_SPKR_DRV_CTL, 0x69},
|
||||
{CDC_A_SPKR_DRV_DBG, 0x01},
|
||||
{CDC_A_SEC_ACCESS, 0xa5},
|
||||
{CDC_A_PERPH_RESET_CTL3, 0x0f},
|
||||
{CDC_A_CURRENT_LIMIT, 0xa2},
|
||||
{CDC_A_BYPASS_MODE, 0x18},
|
||||
{CDC_A_SPKR_ANA_BIAS_SET, 0x41},
|
||||
{CDC_A_SPKR_DAC_CTL, 0x03},
|
||||
{CDC_A_SPKR_OCP_CTL, 0xe1},
|
||||
{CDC_A_RX_HPH_BIAS_PA, 0xfa},
|
||||
{CDC_A_RX_EAR_STATUS, 0x10},
|
||||
{CDC_A_MASTER_BIAS_CTL, 0x30},
|
||||
{CDC_A_MICB_1_INT_RBIAS, 0x00},
|
||||
};
|
||||
|
||||
static const struct wcd_reg_seq pm8953_data = {
|
||||
.seq = wcd_reg_defaults_pm8953,
|
||||
.seq_size = ARRAY_SIZE(wcd_reg_defaults_pm8953),
|
||||
};
|
||||
|
||||
static int pm8916_wcd_analog_probe(struct snd_soc_component *component)
|
||||
{
|
||||
struct pm8916_wcd_analog_priv *priv = dev_get_drvdata(component->dev);
|
||||
|
|
@ -1304,6 +1332,7 @@ static int pm8916_wcd_analog_spmi_probe(struct platform_device *pdev)
|
|||
static const struct of_device_id pm8916_wcd_analog_spmi_match_table[] = {
|
||||
{ .compatible = "qcom,pm8916-wcd-analog-codec", .data = &pm8916_data },
|
||||
{ .compatible = "qcom,pm8950-wcd-analog-codec", .data = &pm8950_data },
|
||||
{ .compatible = "qcom,pm8953-wcd-analog-codec", .data = &pm8953_data },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user