techpack: audio: Add _3LE formats to msm-dai-fe.c for munch
Fixes distortion problems on munch Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/7470 Change-Id: Idba02e864dfe954e967b92fcb65ff8a1ac3feb95
This commit is contained in:
committed by
Sebastiano Barezzi
parent
fcedce48bf
commit
e05f3d14f6
@@ -854,8 +854,14 @@ static struct snd_soc_dai_driver msm_fe_dais[] = {
|
||||
.stream_name = "Primary MI2S_TX Hostless Capture",
|
||||
.aif_name = "PRI_MI2S_UL_HL",
|
||||
.rates = SNDRV_PCM_RATE_8000_48000,
|
||||
#if defined(CONFIG_MACH_XIAOMI_MUNCH)
|
||||
.formats = (SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_3LE),
|
||||
#else
|
||||
.formats = (SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE),
|
||||
#endif
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rate_min = 8000,
|
||||
@@ -870,8 +876,14 @@ static struct snd_soc_dai_driver msm_fe_dais[] = {
|
||||
.stream_name = "Primary MI2S_RX Hostless Playback",
|
||||
.aif_name = "PRI_MI2S_DL_HL",
|
||||
.rates = SNDRV_PCM_RATE_8000_384000,
|
||||
#if defined(CONFIG_MACH_XIAOMI_MUNCH)
|
||||
.formats = (SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_3LE),
|
||||
#else
|
||||
.formats = (SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE),
|
||||
#endif
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rate_min = 8000,
|
||||
@@ -886,8 +898,14 @@ static struct snd_soc_dai_driver msm_fe_dais[] = {
|
||||
.stream_name = "Secondary MI2S_TX Hostless Capture",
|
||||
.aif_name = "SEC_MI2S_UL_HL",
|
||||
.rates = SNDRV_PCM_RATE_8000_48000,
|
||||
#if defined(CONFIG_MACH_XIAOMI_MUNCH)
|
||||
.formats = (SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_3LE),
|
||||
#else
|
||||
.formats = (SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE),
|
||||
#endif
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rate_min = 8000,
|
||||
@@ -902,8 +920,14 @@ static struct snd_soc_dai_driver msm_fe_dais[] = {
|
||||
.stream_name = "Secondary MI2S_RX Hostless Playback",
|
||||
.aif_name = "SEC_MI2S_DL_HL",
|
||||
.rates = SNDRV_PCM_RATE_8000_384000,
|
||||
#if defined(CONFIG_MACH_XIAOMI_MUNCH)
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_3LE,
|
||||
#else
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE,
|
||||
#endif
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rate_min = 8000,
|
||||
@@ -918,8 +942,14 @@ static struct snd_soc_dai_driver msm_fe_dais[] = {
|
||||
.stream_name = "Tertiary MI2S_TX Hostless Capture",
|
||||
.aif_name = "TERT_MI2S_UL_HL",
|
||||
.rates = SNDRV_PCM_RATE_8000_48000,
|
||||
#if defined(CONFIG_MACH_XIAOMI_MUNCH)
|
||||
.formats = (SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_3LE),
|
||||
#else
|
||||
.formats = (SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE),
|
||||
#endif
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rate_min = 8000,
|
||||
@@ -934,8 +964,14 @@ static struct snd_soc_dai_driver msm_fe_dais[] = {
|
||||
.stream_name = "Tertiary MI2S_RX Hostless Playback",
|
||||
.aif_name = "TERT_MI2S_DL_HL",
|
||||
.rates = SNDRV_PCM_RATE_8000_384000,
|
||||
#if defined(CONFIG_MACH_XIAOMI_MUNCH)
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_3LE,
|
||||
#else
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE |
|
||||
SNDRV_PCM_FMTBIT_S24_LE,
|
||||
#endif
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rate_min = 8000,
|
||||
|
||||
Reference in New Issue
Block a user