Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec44062d authored by Asish Bhattacharya's avatar Asish Bhattacharya Committed by Aravind Kumar
Browse files

ASoC: msm8x16: split sound card based on target flavor



The device configuration are different in case of MTP
and other device like QRD/CDP.
To differentiate based on target we need to register
different sound cards.

Change-Id: Ic6da013170c1e382c8229059643df605dc1ab56c
CRs-Fixed: 643801
Signed-off-by: default avatarAsish Bhattacharya <asishb@codeaurora.org>
parent 7ab1b9a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@

	sound {
		compatible = "qcom,msm8x16-audio-codec";
		qcom,model = "msm8x16-snd-card";
		qcom,model = "msm8x16-snd-card-mtp";
		qcom,msm-snd-card-id = <0>;
		qcom,msm-codec-type = "internal";
		qcom,msm-mbhc-hphl-swh = <0>;
+1 −0
Original line number Diff line number Diff line
@@ -1124,6 +1124,7 @@ static int msm8x16_asoc_machine_probe(struct platform_device *pdev)
		dev_info(&pdev->dev, "external codec is configured\n");
		pdata->codec_type = 1;
	} else {
		bear_cards[pdev->id].name = dev_name(&pdev->dev);
		dev_info(&pdev->dev, "default codec configured\n");
		pdata->codec_type = 0;
	}