Loading Documentation/devicetree/bindings/sound/qcom-audio-dev.txt +2 −0 Original line number Diff line number Diff line Loading @@ -455,6 +455,8 @@ Optional properties: - qcom,headset-jack-type-NO: Adjust GPIO level based on the headset jack type. - qcom,tapan-codec-9302: Indicates that this device node is for WCD9302 audio codec. - qcom,mbhc-bias-internal: Flag to indicate if internal micbias should be used for headset detection. * APQ8074 ASoC Machine driver Loading sound/soc/msm/msm8x10.c +3 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ static struct wcd9xxx_mbhc_config mbhc_cfg = { .detect_extn_cable = false, .insert_detect = true, .swap_gnd_mic = NULL, .use_int_rbias = false, }; /* Loading Loading @@ -1042,6 +1043,8 @@ static int msm8x10_asoc_machine_probe(struct platform_device *pdev) prcgr = ioremap(MSM8X10_DINO_LPASS_DIGCODEC_CMD_RCGR, 4); mbhc_cfg.gpio_level_insert = of_property_read_bool(pdev->dev.of_node, "qcom,headset-jack-type-NC"); mbhc_cfg.use_int_rbias = of_property_read_bool(pdev->dev.of_node, "qcom,mbhc-bias-internal"); spdev = pdev; mutex_init(&cdc_mclk_mutex); Loading Loading
Documentation/devicetree/bindings/sound/qcom-audio-dev.txt +2 −0 Original line number Diff line number Diff line Loading @@ -455,6 +455,8 @@ Optional properties: - qcom,headset-jack-type-NO: Adjust GPIO level based on the headset jack type. - qcom,tapan-codec-9302: Indicates that this device node is for WCD9302 audio codec. - qcom,mbhc-bias-internal: Flag to indicate if internal micbias should be used for headset detection. * APQ8074 ASoC Machine driver Loading
sound/soc/msm/msm8x10.c +3 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ static struct wcd9xxx_mbhc_config mbhc_cfg = { .detect_extn_cable = false, .insert_detect = true, .swap_gnd_mic = NULL, .use_int_rbias = false, }; /* Loading Loading @@ -1042,6 +1043,8 @@ static int msm8x10_asoc_machine_probe(struct platform_device *pdev) prcgr = ioremap(MSM8X10_DINO_LPASS_DIGCODEC_CMD_RCGR, 4); mbhc_cfg.gpio_level_insert = of_property_read_bool(pdev->dev.of_node, "qcom,headset-jack-type-NC"); mbhc_cfg.use_int_rbias = of_property_read_bool(pdev->dev.of_node, "qcom,mbhc-bias-internal"); spdev = pdev; mutex_init(&cdc_mclk_mutex); Loading