Revert "sound/soc/auge: fix HD audio passthrough"

This reverts commit a200d22a27.

Change-Id: I3ffe6a1df69f7e6747425a7c77087d7dc8053ca2
This commit is contained in:
Chris
2021-03-24 16:49:37 +09:00
parent 1a65cbed5a
commit 48c86e1b98
2 changed files with 2 additions and 7 deletions

View File

@@ -1515,7 +1515,7 @@ static struct snd_soc_dai_driver aml_spdif_dai[] = {
.remove = aml_dai_spdif_remove,
.playback = {
.channels_min = 1,
.channels_max = 8,
.channels_max = 2,
.rates = AML_DAI_SPDIF_RATES,
.formats = AML_DAI_SPDIF_FORMATS,
},

View File

@@ -61,6 +61,7 @@ void spdif_get_channel_status_info(
pr_err("Unsupport sample rate\n");
return;
}
if (IEC958_mode_codec && IEC958_mode_codec != 9) {
if (IEC958_mode_codec == 1) {
/* dts, use raw sync-word mode */
@@ -83,12 +84,6 @@ void spdif_get_channel_status_info(
chsts->chstat1_l = 0Xe00;
chsts->chstat1_r = 0Xe00;
}
} else if (IEC958_mode_codec == 8 || IEC958_mode_codec == 7) {
/* DTS-HD MA, TrueHD */
chsts->chstat0_l = 0x8206;
chsts->chstat0_r = 0x8206;
chsts->chstat1_l = 0x900;
chsts->chstat1_r = 0x900;
} else {
/* DTS,DD */
if (rate_bit == SNDRV_PCM_RATE_32000) {