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

Commit c99f9328 authored by Ben Romberger's avatar Ben Romberger Committed by Banajit Goswami
Browse files

ASoC: msm: qdsp6v2: Add TrueHD to compressed open



Add TrueHD format selection to ASM compressed
open and remove it from non-compressed open.

Change-Id: I94b61958e71d3a0d3aec2aa0206cf35698399d34
Signed-off-by: default avatarBen Romberger <bromberg@codeaurora.org>
parent 04540527
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -2627,7 +2627,9 @@ int q6asm_open_write_compressed(struct audio_client *ac, uint32_t format,
	case FORMAT_GEN_COMPR:
		open.fmt_id = ASM_MEDIA_FMT_GENERIC_COMPRESSED;
		break;

	case FORMAT_TRUEHD:
		open.fmt_id = ASM_MEDIA_FMT_TRUEHD;
		break;
	default:
		pr_err("%s: Invalid format[%d]\n", __func__, format);
		rc = -EINVAL;
@@ -2801,9 +2803,6 @@ static int __q6asm_open_write(struct audio_client *ac, uint32_t format,
	case FORMAT_GEN_COMPR:
		open.dec_fmt_id = ASM_MEDIA_FMT_GENERIC_COMPRESSED;
		break;
	case FORMAT_TRUEHD:
		open.dec_fmt_id = ASM_MEDIA_FMT_TRUEHD;
		break;
	default:
		pr_err("%s: Invalid format 0x%x\n", __func__, format);
		rc = -EINVAL;