ASoC: msm8998: Add 88.2 and 176.4 khz support for MI2S Interface
Extend MI2S supported sampling rates to support HDMI In feature requirements using DSP HW transcode loopback. CRs-Fixed: 2091424 Change-Id: Ic73cbec2473ab509f6a85bd7f6f60869b7986d7b Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
This commit is contained in:
parent
a49bb61510
commit
9aa8e1cd38
1 changed files with 17 additions and 4 deletions
|
@ -434,7 +434,8 @@ static char const *tdm_sample_rate_text[] = {"KHZ_8", "KHZ_16", "KHZ_32",
|
|||
static const char *const auxpcm_rate_text[] = {"KHZ_8", "KHZ_16"};
|
||||
static char const *mi2s_rate_text[] = {"KHZ_8", "KHZ_16",
|
||||
"KHZ_32", "KHZ_44P1", "KHZ_48",
|
||||
"KHZ_96", "KHZ_192"};
|
||||
"KHZ_88P2", "KHZ_96", "KHZ_176P4",
|
||||
"KHZ_192"};
|
||||
static const char *const mi2s_ch_text[] = {"One", "Two", "Three", "Four",
|
||||
"Five", "Six", "Seven",
|
||||
"Eight"};
|
||||
|
@ -2228,12 +2229,18 @@ static int mi2s_get_sample_rate_val(int sample_rate)
|
|||
case SAMPLING_RATE_48KHZ:
|
||||
sample_rate_val = 4;
|
||||
break;
|
||||
case SAMPLING_RATE_96KHZ:
|
||||
case SAMPLING_RATE_88P2KHZ:
|
||||
sample_rate_val = 5;
|
||||
break;
|
||||
case SAMPLING_RATE_192KHZ:
|
||||
case SAMPLING_RATE_96KHZ:
|
||||
sample_rate_val = 6;
|
||||
break;
|
||||
case SAMPLING_RATE_176P4KHZ:
|
||||
sample_rate_val = 7;
|
||||
break;
|
||||
case SAMPLING_RATE_192KHZ:
|
||||
sample_rate_val = 8;
|
||||
break;
|
||||
default:
|
||||
sample_rate_val = 4;
|
||||
break;
|
||||
|
@ -2262,9 +2269,15 @@ static int mi2s_get_sample_rate(int value)
|
|||
sample_rate = SAMPLING_RATE_48KHZ;
|
||||
break;
|
||||
case 5:
|
||||
sample_rate = SAMPLING_RATE_96KHZ;
|
||||
sample_rate = SAMPLING_RATE_88P2KHZ;
|
||||
break;
|
||||
case 6:
|
||||
sample_rate = SAMPLING_RATE_96KHZ;
|
||||
break;
|
||||
case 7:
|
||||
sample_rate = SAMPLING_RATE_176P4KHZ;
|
||||
break;
|
||||
case 8:
|
||||
sample_rate = SAMPLING_RATE_192KHZ;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue