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

Commit fb149b15 authored by Krishnankutty Kolathappilly's avatar Krishnankutty Kolathappilly
Browse files

ASoC: msm: Update the correct channel count for dolby configuration



Wfd supports both 5.1 and stereo pcm playback. Add the dolby
configuration for 5.1 playback on wfd.

CRs-Fixed: 609429
Change-Id: I6727ca1a4825bf64e48f211ca9d270f661ceedf0
Signed-off-by: default avatarKrishnankutty Kolathappilly <kkolat@codeaurora.org>
parent 2d37de8c
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -211,6 +211,14 @@ const struct dolby_dap_endp_params_s
		 DOLBY_ENDDEP_PARAM_VMB_OFFSET},
		{-320, -320, 144}
	},
	{PROXY,	6, DOLBY_ENDP_EXT_SPEAKERS,
		{DOLBY_PARAM_ID_DVLO, DOLBY_PARAM_ID_DVLI, DOLBY_PARAM_ID_VMB},
		{DOLBY_ENDDEP_PARAM_DVLO_LENGTH, DOLBY_ENDDEP_PARAM_DVLI_LENGTH,
		 DOLBY_ENDDEP_PARAM_VMB_LENGTH},
		{DOLBY_ENDDEP_PARAM_DVLO_OFFSET, DOLBY_ENDDEP_PARAM_DVLI_OFFSET,
		 DOLBY_ENDDEP_PARAM_VMB_OFFSET},
		{-320, -320, 144}
	},
	{FM, 2, DOLBY_ENDP_EXT_SPEAKERS,
		{DOLBY_PARAM_ID_DVLO, DOLBY_PARAM_ID_DVLI, DOLBY_PARAM_ID_VMB},
		{DOLBY_ENDDEP_PARAM_DVLO_LENGTH, DOLBY_ENDDEP_PARAM_DVLI_LENGTH,
@@ -409,7 +417,8 @@ static int dolby_dap_send_enddep_params(int port_id, int device_channels)
	for (idx = 0; idx < NUM_DOLBY_ENDP_DEVICE; idx++) {
		if (dolby_dap_endp_params[idx].device ==
			dolby_dap_params_states.device) {
			if (dolby_dap_params_states.device == AUX_DIGITAL) {
			if (dolby_dap_params_states.device == AUX_DIGITAL ||
			    dolby_dap_params_states.device == PROXY) {
				if (dolby_dap_endp_params[idx].device_ch_caps ==
					device_channels)
					break;
+1 −1
Original line number Diff line number Diff line
@@ -249,7 +249,7 @@
#define DOLBY_AUTO_ENDDEP_IDX			(MAX_DOLBY_PARAMS+4)

#define TOTAL_LENGTH_DOLBY_PARAM		745
#define NUM_DOLBY_ENDP_DEVICE			23
#define NUM_DOLBY_ENDP_DEVICE			24
#define DOLBY_VIS_PARAM_HEADER_SIZE		 25

#define DOLBY_INVALID_PORT_ID			-1