Bladeren bron

asoc: msm: Add 32bit support for mi2s

Add support to handle 32 bit mi2s use cases in
dai driver hw params.

Change-Id: Id4b709f95fab8aaf8f7b63ae416b6da1ab213c89
Signed-off-by: Karthikeyan Mani <[email protected]>
Karthikeyan Mani 5 jaren geleden
bovenliggende
commit
ab093ac1b3
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 4 0
      asoc/msm-dai-q6-v2.c

+ 4 - 0
asoc/msm-dai-q6-v2.c

@@ -5510,6 +5510,10 @@ static int msm_dai_q6_mi2s_hw_params(struct snd_pcm_substream *substream,
 		dai_data->port_config.i2s.bit_width = 24;
 		dai_data->bitwidth = 24;
 		break;
+	case SNDRV_PCM_FORMAT_S32_LE:
+		dai_data->port_config.i2s.bit_width = 32;
+		dai_data->bitwidth = 32;
+		break;
 	default:
 		pr_err("%s: format %d\n",
 			__func__, params_format(params));