Files
android_kernel_samsung_sm86…/soundwire/btfm_swr_slave.c
Satish Kumar Kodishala d638487f10 Add support for BT/FM SoundWire slave driver
Added support for BT/FM SoundWire slave driver.
The driver registers as a codec driver with ALSA.
Slave port configuration is sent to master driver.
Master driver takes care of programming master and
slave registers at once when BT audio usecase is
started/stopped.

Change-Id: I3a4de9872323c470f2ec73218601be94a768d726
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2023-09-25 12:28:49 +05:30

45 řádky
892 B
C

// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include "btfm_swr.h"
#include "btfm_swr_slave.h"
struct soc_port_mapping slave_port[] = {
// Evros
{
.ea = EVROS_EA,
.port_info[0].dai_id = FMAUDIO_TX,
.port_info[0].port = 5,
.port_info[1].dai_id = BTAUDIO_TX,
.port_info[1].port = 3,
.port_info[2].dai_id = BTAUDIO_RX,
.port_info[2].port = 1,
.port_info[3].dai_id = BTAUDIO_A2DP_SINK_TX,
.port_info[3].port = 4,
},
// Ganges
{
.ea = GANGES_EA,
// FM is not supported on Ganges. populate with invalid port number
.port_info[0].dai_id = FMAUDIO_TX,
.port_info[0].port = BTFM_INVALID_PORT,
.port_info[1].dai_id = BTAUDIO_TX,
.port_info[1].port = 4,
.port_info[2].dai_id = BTAUDIO_RX,
.port_info[2].port = 1,
.port_info[3].dai_id = BTAUDIO_A2DP_SINK_TX,
.port_info[3].port = 5,
},
};