Преглед изворни кода

Add support for 192KHz sample rate

Add support for 192KHz sample rate for Aptx Adaptive R3

CRs-Fixed: 3105454
Change-Id: Idfc5fd79e4cc3c1dfd5dffa9f3808ee53b481706
Signed-off-by: Satish Kumar Kodishala <[email protected]>
Satish Kumar Kodishala пре 3 година
родитељ
комит
e30db52d58
1 измењених фајлова са 8 додато и 6 уклоњено
  1. 8 6
      slimbus/btfm_slim_codec.c

+ 8 - 6
slimbus/btfm_slim_codec.c

@@ -378,7 +378,7 @@ static struct snd_soc_dai_driver btfmslim_dai[] = {
 		},
 		.ops = &btfmslim_dai_ops,
 	},
-	{	/* Bluetooth SCO voice uplink: bt -> modem */
+	{	/* Bluetooth SCO voice uplink: bt -> lpass */
 		.name = "btfm_bt_sco_slim_tx",
 		.id = BTFM_BT_SCO_SLIM_TX,
 		.capture = {
@@ -386,16 +386,17 @@ static struct snd_soc_dai_driver btfmslim_dai[] = {
 			/* 8 KHz or 16 KHz */
 			.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000
 				| SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000
-				| SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000,
+				| SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000
+				| SNDRV_PCM_RATE_192000,
 			.formats = SNDRV_PCM_FMTBIT_S16_LE, /* 16 bits */
-			.rate_max = 96000,
+			.rate_max = 192000,
 			.rate_min = 8000,
 			.channels_min = 1,
 			.channels_max = 1,
 		},
 		.ops = &btfmslim_dai_ops,
 	},
-	{	/* Bluetooth SCO voice downlink: modem -> bt or A2DP Playback */
+	{	/* Bluetooth SCO voice downlink: lpass -> bt or A2DP Playback */
 		.name = "btfm_bt_sco_a2dp_slim_rx",
 		.id = BTFM_BT_SCO_A2DP_SLIM_RX,
 		.playback = {
@@ -403,9 +404,10 @@ static struct snd_soc_dai_driver btfmslim_dai[] = {
 			/* 8/16/44.1/48/88.2/96 Khz */
 			.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000
 				| SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000
-				| SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000,
+				| SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000
+				| SNDRV_PCM_RATE_192000,
 			.formats = SNDRV_PCM_FMTBIT_S16_LE, /* 16 bits */
-			.rate_max = 96000,
+			.rate_max = 192000,
 			.rate_min = 8000,
 			.channels_min = 1,
 			.channels_max = 1,