Loading drivers/bluetooth/btfm_slim.c +2 −1 Original line number Diff line number Diff line Loading @@ -132,7 +132,8 @@ int btfm_slim_enable_ch(struct btfmslim *btfmslim, struct btfmslim_ch *ch, /* Define the channel with below parameters */ prop.prot = SLIM_AUTO_ISO; prop.baser = SLIM_RATE_4000HZ; prop.dataf = SLIM_CH_DATAF_LPCM_AUDIO; prop.dataf = (rates == 48000) ? SLIM_CH_DATAF_NOT_DEFINED : SLIM_CH_DATAF_LPCM_AUDIO; prop.auxf = SLIM_CH_AUXF_NOT_APPLICABLE; prop.ratem = (rates/4000); prop.sampleszbits = 16; Loading drivers/bluetooth/btfm_slim.h +1 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ enum { BTFM_FM_SLIM_TX = 0, BTFM_BT_SCO_SLIM_TX, BTFM_BT_SCO_SLIM_RX, BTFM_BT_SCO_A2DP_SLIM_RX, BTFM_BT_SPLIT_A2DP_SLIM_RX, BTFM_SLIM_NUM_CODEC_DAIS }; Loading drivers/bluetooth/btfm_slim_codec.c +11 −11 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ int btfm_slim_dai_prepare(struct snd_pcm_substream *substream, ch = btfmslim->tx_chs; rxport = 0; break; case BTFM_BT_SCO_SLIM_RX: case BTFM_BT_SCO_A2DP_SLIM_RX: case BTFM_BT_SPLIT_A2DP_SLIM_RX: ch = btfmslim->rx_chs; rxport = 1; Loading Loading @@ -150,7 +150,7 @@ int btfm_slim_dai_hw_free(struct snd_pcm_substream *substream, ch = btfmslim->tx_chs; rxport = 0; break; case BTFM_BT_SCO_SLIM_RX: case BTFM_BT_SCO_A2DP_SLIM_RX: case BTFM_BT_SPLIT_A2DP_SLIM_RX: ch = btfmslim->rx_chs; rxport = 1; Loading Loading @@ -267,7 +267,7 @@ static int btfm_slim_dai_get_channel_map(struct snd_soc_dai *dai, *tx_num = num; *rx_num = 0; break; case BTFM_BT_SCO_SLIM_RX: case BTFM_BT_SCO_A2DP_SLIM_RX: case BTFM_BT_SPLIT_A2DP_SLIM_RX: if (!rx_slot || !rx_num) { BTFMSLIM_ERR("Invalid rx_slot %p or rx_num %p", Loading Loading @@ -335,7 +335,7 @@ static struct snd_soc_dai_driver btfmslim_dai[] = { }, .ops = &btfmslim_dai_ops, }, { /* Bluetooth SCO NBS voice uplink: bt -> modem */ { /* Bluetooth SCO voice uplink: bt -> modem */ .name = "btfm_bt_sco_slim_tx", .id = BTFM_BT_SCO_SLIM_TX, .capture = { Loading @@ -350,15 +350,15 @@ static struct snd_soc_dai_driver btfmslim_dai[] = { }, .ops = &btfmslim_dai_ops, }, { /* Bluetooth SCO NBS voice downlink: modem -> bt */ .name = "btfm_bt_sco_slim_rx", .id = BTFM_BT_SCO_SLIM_RX, { /* Bluetooth SCO voice downlink: modem -> bt or A2DP Playback */ .name = "btfm_bt_sco_a2dp_slim_rx", .id = BTFM_BT_SCO_A2DP_SLIM_RX, .playback = { .stream_name = "SCO RX Playback", /* 8 KHz or 16 KHz */ .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000, .stream_name = "SCO A2DP RX Playback", .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_48000, /* 8 or 16 or 48 Khz*/ .formats = SNDRV_PCM_FMTBIT_S16_LE, /* 16 bits */ .rate_max = 16000, .rate_max = 48000, .rate_min = 8000, .channels_min = 1, .channels_max = 1, Loading drivers/bluetooth/btfm_slim_wcn3990.c +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ /* WCN3990 Port assignment */ struct btfmslim_ch wcn3990_rxport[] = { {.id = BTFM_BT_SCO_SLIM_RX, .name = "SCO_Rx", {.id = BTFM_BT_SCO_A2DP_SLIM_RX, .name = "SCO_A2P_Rx", .port = CHRK_SB_PGD_PORT_RX_SCO}, {.id = BTFM_BT_SPLIT_A2DP_SLIM_RX, .name = "A2P_Rx", .port = CHRK_SB_PGD_PORT_RX_A2P}, Loading Loading
drivers/bluetooth/btfm_slim.c +2 −1 Original line number Diff line number Diff line Loading @@ -132,7 +132,8 @@ int btfm_slim_enable_ch(struct btfmslim *btfmslim, struct btfmslim_ch *ch, /* Define the channel with below parameters */ prop.prot = SLIM_AUTO_ISO; prop.baser = SLIM_RATE_4000HZ; prop.dataf = SLIM_CH_DATAF_LPCM_AUDIO; prop.dataf = (rates == 48000) ? SLIM_CH_DATAF_NOT_DEFINED : SLIM_CH_DATAF_LPCM_AUDIO; prop.auxf = SLIM_CH_AUXF_NOT_APPLICABLE; prop.ratem = (rates/4000); prop.sampleszbits = 16; Loading
drivers/bluetooth/btfm_slim.h +1 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ enum { BTFM_FM_SLIM_TX = 0, BTFM_BT_SCO_SLIM_TX, BTFM_BT_SCO_SLIM_RX, BTFM_BT_SCO_A2DP_SLIM_RX, BTFM_BT_SPLIT_A2DP_SLIM_RX, BTFM_SLIM_NUM_CODEC_DAIS }; Loading
drivers/bluetooth/btfm_slim_codec.c +11 −11 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ int btfm_slim_dai_prepare(struct snd_pcm_substream *substream, ch = btfmslim->tx_chs; rxport = 0; break; case BTFM_BT_SCO_SLIM_RX: case BTFM_BT_SCO_A2DP_SLIM_RX: case BTFM_BT_SPLIT_A2DP_SLIM_RX: ch = btfmslim->rx_chs; rxport = 1; Loading Loading @@ -150,7 +150,7 @@ int btfm_slim_dai_hw_free(struct snd_pcm_substream *substream, ch = btfmslim->tx_chs; rxport = 0; break; case BTFM_BT_SCO_SLIM_RX: case BTFM_BT_SCO_A2DP_SLIM_RX: case BTFM_BT_SPLIT_A2DP_SLIM_RX: ch = btfmslim->rx_chs; rxport = 1; Loading Loading @@ -267,7 +267,7 @@ static int btfm_slim_dai_get_channel_map(struct snd_soc_dai *dai, *tx_num = num; *rx_num = 0; break; case BTFM_BT_SCO_SLIM_RX: case BTFM_BT_SCO_A2DP_SLIM_RX: case BTFM_BT_SPLIT_A2DP_SLIM_RX: if (!rx_slot || !rx_num) { BTFMSLIM_ERR("Invalid rx_slot %p or rx_num %p", Loading Loading @@ -335,7 +335,7 @@ static struct snd_soc_dai_driver btfmslim_dai[] = { }, .ops = &btfmslim_dai_ops, }, { /* Bluetooth SCO NBS voice uplink: bt -> modem */ { /* Bluetooth SCO voice uplink: bt -> modem */ .name = "btfm_bt_sco_slim_tx", .id = BTFM_BT_SCO_SLIM_TX, .capture = { Loading @@ -350,15 +350,15 @@ static struct snd_soc_dai_driver btfmslim_dai[] = { }, .ops = &btfmslim_dai_ops, }, { /* Bluetooth SCO NBS voice downlink: modem -> bt */ .name = "btfm_bt_sco_slim_rx", .id = BTFM_BT_SCO_SLIM_RX, { /* Bluetooth SCO voice downlink: modem -> bt or A2DP Playback */ .name = "btfm_bt_sco_a2dp_slim_rx", .id = BTFM_BT_SCO_A2DP_SLIM_RX, .playback = { .stream_name = "SCO RX Playback", /* 8 KHz or 16 KHz */ .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000, .stream_name = "SCO A2DP RX Playback", .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_48000, /* 8 or 16 or 48 Khz*/ .formats = SNDRV_PCM_FMTBIT_S16_LE, /* 16 bits */ .rate_max = 16000, .rate_max = 48000, .rate_min = 8000, .channels_min = 1, .channels_max = 1, Loading
drivers/bluetooth/btfm_slim_wcn3990.c +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ /* WCN3990 Port assignment */ struct btfmslim_ch wcn3990_rxport[] = { {.id = BTFM_BT_SCO_SLIM_RX, .name = "SCO_Rx", {.id = BTFM_BT_SCO_A2DP_SLIM_RX, .name = "SCO_A2P_Rx", .port = CHRK_SB_PGD_PORT_RX_SCO}, {.id = BTFM_BT_SPLIT_A2DP_SLIM_RX, .name = "A2P_Rx", .port = CHRK_SB_PGD_PORT_RX_A2P}, Loading