mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "asoc: Add TRUEHD format to list of codes"
This commit is contained in:
commit
572dec3fcd
1 changed files with 7 additions and 1 deletions
|
|
@ -178,10 +178,11 @@ static void populate_codec_list(struct msm_transcode_loopback *trans,
|
|||
|
||||
if (cstream->direction == SND_COMPRESS_CAPTURE) {
|
||||
compr_cap.direction = SND_COMPRESS_CAPTURE;
|
||||
compr_cap.num_codecs = 3;
|
||||
compr_cap.num_codecs = 4;
|
||||
compr_cap.codecs[0] = SND_AUDIOCODEC_PCM;
|
||||
compr_cap.codecs[1] = SND_AUDIOCODEC_AC3;
|
||||
compr_cap.codecs[2] = SND_AUDIOCODEC_EAC3;
|
||||
compr_cap.codecs[3] = SND_AUDIOCODEC_TRUEHD;
|
||||
memcpy(&trans->source_compr_cap, &compr_cap,
|
||||
sizeof(struct snd_compr_caps));
|
||||
}
|
||||
|
|
@ -482,6 +483,11 @@ static int msm_transcode_loopback_set_params(struct snd_compr_stream *cstream,
|
|||
trans->source.codec_format =
|
||||
FORMAT_EAC3;
|
||||
break;
|
||||
case SND_AUDIOCODEC_TRUEHD:
|
||||
pr_debug("Source SND_AUDIOCODEC_TRUEHD\n");
|
||||
trans->source.codec_format =
|
||||
FORMAT_TRUEHD;
|
||||
break;
|
||||
default:
|
||||
pr_debug("%s: unknown source codec\n", __func__);
|
||||
ret = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue