Revert "ASoC: msm: Add support for voice over HDMI"

This reverts commit 38c3c968733fd4a458957173909a8d638ce1d4dd.

Conflicts:

	sound/soc/msm/msm-pcm-routing.h

Change-Id: I14993fcc1c25e499ef22b54c58ddfc7c41458f53
This commit is contained in:
ehgrace.kim 2012-06-19 07:16:38 -07:00 committed by Iliyan Malchev
parent 1b0d298471
commit a7297ab4b5
8 changed files with 12 additions and 78 deletions

View file

@ -2257,7 +2257,6 @@ static struct platform_device *common_devices[] __initdata = {
&apq_cpudai_slimbus_2_rx, &apq_cpudai_slimbus_2_rx,
&apq_cpudai_slimbus_2_tx, &apq_cpudai_slimbus_2_tx,
&apq_cpudai_slimbus_3_rx, &apq_cpudai_slimbus_3_rx,
&apq_cpudai_slimbus_3_tx,
&apq8064_rpm_device, &apq8064_rpm_device,
&apq8064_rpm_log_device, &apq8064_rpm_log_device,
&apq8064_rpm_stat_device, &apq8064_rpm_stat_device,

View file

@ -832,11 +832,6 @@ struct platform_device apq_cpudai_slimbus_3_rx = {
.id = 0x4006, .id = 0x4006,
}; };
struct platform_device apq_cpudai_slimbus_3_tx = {
.name = "msm-dai-q6",
.id = 0x4007,
};
static struct resource resources_ssbi_pmic1[] = { static struct resource resources_ssbi_pmic1[] = {
{ {
.start = MSM_PMIC1_SSBI_CMD_PHYS, .start = MSM_PMIC1_SSBI_CMD_PHYS,

View file

@ -284,7 +284,6 @@ extern struct platform_device apq_cpudai_slimbus_1_tx;
extern struct platform_device apq_cpudai_slimbus_2_rx; extern struct platform_device apq_cpudai_slimbus_2_rx;
extern struct platform_device apq_cpudai_slimbus_2_tx; extern struct platform_device apq_cpudai_slimbus_2_tx;
extern struct platform_device apq_cpudai_slimbus_3_rx; extern struct platform_device apq_cpudai_slimbus_3_rx;
extern struct platform_device apq_cpudai_slimbus_3_tx;
extern struct platform_device apq_cpudai_slim_4_rx; extern struct platform_device apq_cpudai_slim_4_rx;
extern struct platform_device apq_cpudai_slim_4_tx; extern struct platform_device apq_cpudai_slim_4_tx;

View file

@ -73,8 +73,7 @@ enum {
SLIM_1_TX_1 = 146, /* BT-SCO and USB RX */ SLIM_1_TX_1 = 146, /* BT-SCO and USB RX */
SLIM_3_RX_1 = 151, /* External echo-cancellation ref */ SLIM_3_RX_1 = 151, /* External echo-cancellation ref */
SLIM_3_RX_2 = 152, /* External echo-cancellation ref */ SLIM_3_RX_2 = 152, /* External echo-cancellation ref */
SLIM_3_TX_1 = 153, /* HDMI RX */ SLIM_3_TX_1 = 147, /* HDMI RX */
SLIM_3_TX_2 = 154, /* HDMI RX */
SLIM_4_TX_1 = 148, /* In-call recording RX */ SLIM_4_TX_1 = 148, /* In-call recording RX */
SLIM_4_TX_2 = 149, /* In-call recording RX */ SLIM_4_TX_2 = 149, /* In-call recording RX */
SLIM_4_RX_1 = 150, /* In-call music delivery TX */ SLIM_4_RX_1 = 150, /* In-call music delivery TX */
@ -1077,7 +1076,6 @@ static int msm_slimbus_3_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_dai *cpu_dai = rtd->cpu_dai; struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
int ret = 0; int ret = 0;
unsigned int rx_ch[2] = {SLIM_3_RX_1, SLIM_3_RX_2}; unsigned int rx_ch[2] = {SLIM_3_RX_1, SLIM_3_RX_2};
unsigned int tx_ch[2] = {SLIM_3_TX_1, SLIM_3_TX_2};
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
pr_debug("%s: slim_3_rx_ch %d, sch %d %d\n", pr_debug("%s: slim_3_rx_ch %d, sch %d %d\n",
@ -1093,16 +1091,7 @@ static int msm_slimbus_3_hw_params(struct snd_pcm_substream *substream,
goto end; goto end;
} }
} else { } else {
pr_debug("%s: MDM RX -> SLIMBUS_3_TX -> APQ HDMI ch: %d, %d\n", pr_err("%s: SLIMBUS_3_TX not defined for this DAI\n", __func__);
__func__, tx_ch[0], tx_ch[1]);
ret = snd_soc_dai_set_channel_map(cpu_dai, 2, tx_ch, 0, 0);
if (ret < 0) {
pr_err("%s: Erorr %d setting SLIM_3 TX channel map\n",
__func__, ret);
goto end;
}
} }
end: end:
@ -1304,22 +1293,6 @@ static int msm_slim_3_rx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
return 0; return 0;
} }
static int msm_slim_3_tx_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
struct snd_pcm_hw_params *params)
{
struct snd_interval *rate = hw_param_interval(params,
SNDRV_PCM_HW_PARAM_RATE);
struct snd_interval *channels = hw_param_interval(params,
SNDRV_PCM_HW_PARAM_CHANNELS);
pr_debug("%s()\n", __func__);
rate->min = rate->max = 48000;
channels->min = channels->max = 2;
return 0;
}
static int msm_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, static int msm_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
struct snd_pcm_hw_params *params) struct snd_pcm_hw_params *params)
{ {
@ -2024,18 +1997,6 @@ static struct snd_soc_dai_link msm_dai[] = {
.ops = &msm_slimbus_3_be_ops, .ops = &msm_slimbus_3_be_ops,
.ignore_pmdown_time = 1, /* this dainlink has playback support */ .ignore_pmdown_time = 1, /* this dainlink has playback support */
}, },
{
.name = LPASS_BE_SLIMBUS_3_TX,
.stream_name = "Slimbus3 Capture",
.cpu_dai_name = "msm-dai-q6.16391",
.platform_name = "msm-pcm-routing",
.codec_name = "msm-stub-codec.1",
.codec_dai_name = "msm-stub-tx",
.no_pcm = 1,
.be_id = MSM_BACKEND_DAI_SLIMBUS_3_TX,
.be_hw_params_fixup = msm_slim_3_tx_be_hw_params_fixup,
.ops = &msm_slimbus_3_be_ops,
},
}; };
struct snd_soc_card snd_soc_card_msm = { struct snd_soc_card snd_soc_card_msm = {

View file

@ -681,7 +681,6 @@ static int msm_dai_q6_hw_params(struct snd_pcm_substream *substream,
case SLIMBUS_1_TX: case SLIMBUS_1_TX:
case SLIMBUS_2_RX: case SLIMBUS_2_RX:
case SLIMBUS_2_TX: case SLIMBUS_2_TX:
case SLIMBUS_3_TX:
case SLIMBUS_4_RX: case SLIMBUS_4_RX:
case SLIMBUS_4_TX: case SLIMBUS_4_TX:
rc = msm_dai_q6_slim_bus_hw_params(params, dai, rc = msm_dai_q6_slim_bus_hw_params(params, dai,
@ -1426,7 +1425,6 @@ static int msm_dai_q6_set_channel_map(struct snd_soc_dai *dai,
case SLIMBUS_0_TX: case SLIMBUS_0_TX:
case SLIMBUS_1_TX: case SLIMBUS_1_TX:
case SLIMBUS_2_TX: case SLIMBUS_2_TX:
case SLIMBUS_3_TX:
case SLIMBUS_4_TX: case SLIMBUS_4_TX:
/* channel number to be between 128 and 255. For RX port /* channel number to be between 128 and 255. For RX port
* use channel numbers from 138 to 144, for TX port * use channel numbers from 138 to 144, for TX port
@ -1854,7 +1852,6 @@ static __devinit int msm_dai_q6_dev_probe(struct platform_device *pdev)
break; break;
case SLIMBUS_0_TX: case SLIMBUS_0_TX:
case SLIMBUS_4_TX: case SLIMBUS_4_TX:
case SLIMBUS_3_TX:
rc = snd_soc_register_dai(&pdev->dev, rc = snd_soc_register_dai(&pdev->dev,
&msm_dai_q6_slimbus_tx_dai); &msm_dai_q6_slimbus_tx_dai);
break; break;

View file

@ -184,7 +184,6 @@ static struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
{ SLIMBUS_4_RX, 0, 0, 0, 0, 0}, { SLIMBUS_4_RX, 0, 0, 0, 0, 0},
{ SLIMBUS_4_TX, 0, 0, 0, 0, 0}, { SLIMBUS_4_TX, 0, 0, 0, 0, 0},
{ SLIMBUS_3_RX, 0, 0, 0, 0, 0}, { SLIMBUS_3_RX, 0, 0, 0, 0, 0},
{ SLIMBUS_3_TX, 0, 0, 0, 0, 0},
{ SLIMBUS_EXTPROC_RX, 0, 0, 0, 0, 0}, { SLIMBUS_EXTPROC_RX, 0, 0, 0, 0, 0},
{ SLIMBUS_EXTPROC_RX, 0, 0, 0, 0, 0}, { SLIMBUS_EXTPROC_RX, 0, 0, 0, 0, 0},
{ SLIMBUS_EXTPROC_RX, 0, 0, 0, 0, 0}, { SLIMBUS_EXTPROC_RX, 0, 0, 0, 0, 0},
@ -1689,9 +1688,6 @@ static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX, SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer, MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
msm_routing_put_voice_stub_mixer), msm_routing_put_voice_stub_mixer),
SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_SLIMBUS_3_TX,
MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
msm_routing_put_voice_stub_mixer),
}; };
static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = { static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
@ -1749,9 +1745,6 @@ static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX, SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_HDMI_RX,
MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer, MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
msm_routing_put_port_mixer), msm_routing_put_port_mixer),
SOC_SINGLE_EXT("SLIM_3_TX", MSM_BACKEND_DAI_HDMI_RX,
MSM_BACKEND_DAI_SLIMBUS_3_TX, 1, 0, msm_routing_get_port_mixer,
msm_routing_put_port_mixer),
}; };
static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = { static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
@ -2133,7 +2126,6 @@ static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0), SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0), SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0), SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
/* Switch Definitions */ /* Switch Definitions */
SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0, SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
@ -2479,7 +2471,6 @@ static const struct snd_soc_dapm_route intercon[] = {
{"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"}, {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
{"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"}, {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
{"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"}, {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
{"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
{"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"}, {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
{"STUB_RX Mixer", "Voice Stub", "VOICE_STUB_DL"}, {"STUB_RX Mixer", "Voice Stub", "VOICE_STUB_DL"},
@ -2489,7 +2480,6 @@ static const struct snd_soc_dapm_route intercon[] = {
{"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"}, {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
{"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"}, {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
{"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"}, {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
{"HDMI_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
{"SLIMBUS_3_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"}, {"SLIMBUS_3_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
{"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"}, {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
@ -2504,7 +2494,6 @@ static const struct snd_soc_dapm_route intercon[] = {
{"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"}, {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
{"HDMI_RX Port Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
{"HDMI", NULL, "HDMI_RX Port Mixer"}, {"HDMI", NULL, "HDMI_RX Port Mixer"},
{"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"}, {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},

View file

@ -33,17 +33,16 @@
#define LPASS_BE_INCALL_RECORD_TX "INCALL_RECORD_RX" #define LPASS_BE_INCALL_RECORD_TX "INCALL_RECORD_RX"
#define LPASS_BE_SEC_I2S_RX "SECONDARY_I2S_RX" #define LPASS_BE_SEC_I2S_RX "SECONDARY_I2S_RX"
#define LPASS_BE_MI2S_RX "MI2S_RX" #define LPASS_BE_MI2S_RX "(Backend) MI2S_RX"
#define LPASS_BE_MI2S_TX "MI2S_TX" #define LPASS_BE_MI2S_TX "(Backend) MI2S_TX"
#define LPASS_BE_STUB_RX "STUB_RX" #define LPASS_BE_STUB_RX "(Backend) STUB_RX"
#define LPASS_BE_STUB_TX "STUB_TX" #define LPASS_BE_STUB_TX "(Backend) STUB_TX"
#define LPASS_BE_SLIMBUS_1_RX "SLIMBUS_1_RX" #define LPASS_BE_SLIMBUS_1_RX "(Backend) SLIMBUS_1_RX"
#define LPASS_BE_SLIMBUS_1_TX "SLIMBUS_1_TX" #define LPASS_BE_SLIMBUS_1_TX "(Backend) SLIMBUS_1_TX"
#define LPASS_BE_STUB_1_TX "STUB_1_TX" #define LPASS_BE_STUB_1_TX "(Backend) STUB_1_TX"
#define LPASS_BE_SLIMBUS_3_RX "SLIMBUS_3_RX" #define LPASS_BE_SLIMBUS_3_RX "(Backend) SLIMBUS_3_RX"
#define LPASS_BE_SLIMBUS_3_TX "SLIMBUS_3_TX" #define LPASS_BE_SLIMBUS_4_RX "(Backend) SLIMBUS_4_RX"
#define LPASS_BE_SLIMBUS_4_RX "SLIMBUS_4_RX" #define LPASS_BE_SLIMBUS_4_TX "(Backend) SLIMBUS_4_TX"
#define LPASS_BE_SLIMBUS_4_TX "SLIMBUS_4_TX"
/* For multimedia front-ends, asm session is allocated dynamically. /* For multimedia front-ends, asm session is allocated dynamically.
* Hence, asm session/multimedia front-end mapping has to be maintained. * Hence, asm session/multimedia front-end mapping has to be maintained.
@ -98,7 +97,6 @@ enum {
MSM_BACKEND_DAI_SLIMBUS_4_RX, MSM_BACKEND_DAI_SLIMBUS_4_RX,
MSM_BACKEND_DAI_SLIMBUS_4_TX, MSM_BACKEND_DAI_SLIMBUS_4_TX,
MSM_BACKEND_DAI_SLIMBUS_3_RX, MSM_BACKEND_DAI_SLIMBUS_3_RX,
MSM_BACKEND_DAI_SLIMBUS_3_TX,
MSM_BACKEND_DAI_EXTPROC_RX, MSM_BACKEND_DAI_EXTPROC_RX,
MSM_BACKEND_DAI_EXTPROC_TX, MSM_BACKEND_DAI_EXTPROC_TX,
MSM_BACKEND_DAI_EXTPROC_EC_TX, MSM_BACKEND_DAI_EXTPROC_EC_TX,

View file

@ -169,7 +169,6 @@ int afe_get_port_type(u16 port_id)
case SLIMBUS_0_TX: case SLIMBUS_0_TX:
case SLIMBUS_1_TX: case SLIMBUS_1_TX:
case SLIMBUS_2_TX: case SLIMBUS_2_TX:
case SLIMBUS_3_TX:
case INT_FM_TX: case INT_FM_TX:
case VOICE_RECORD_RX: case VOICE_RECORD_RX:
case INT_BT_SCO_TX: case INT_BT_SCO_TX:
@ -215,7 +214,6 @@ int afe_validate_port(u16 port_id)
case SLIMBUS_2_RX: case SLIMBUS_2_RX:
case SLIMBUS_2_TX: case SLIMBUS_2_TX:
case SLIMBUS_3_RX: case SLIMBUS_3_RX:
case SLIMBUS_3_TX:
case INT_BT_SCO_RX: case INT_BT_SCO_RX:
case INT_BT_SCO_TX: case INT_BT_SCO_TX:
case INT_BT_A2DP_RX: case INT_BT_A2DP_RX:
@ -285,7 +283,6 @@ int afe_get_port_index(u16 port_id)
case SLIMBUS_2_RX: return IDX_SLIMBUS_2_RX; case SLIMBUS_2_RX: return IDX_SLIMBUS_2_RX;
case SLIMBUS_2_TX: return IDX_SLIMBUS_2_TX; case SLIMBUS_2_TX: return IDX_SLIMBUS_2_TX;
case SLIMBUS_3_RX: return IDX_SLIMBUS_3_RX; case SLIMBUS_3_RX: return IDX_SLIMBUS_3_RX;
case SLIMBUS_3_TX: return IDX_SLIMBUS_3_TX;
case INT_BT_SCO_RX: return IDX_INT_BT_SCO_RX; case INT_BT_SCO_RX: return IDX_INT_BT_SCO_RX;
case INT_BT_SCO_TX: return IDX_INT_BT_SCO_TX; case INT_BT_SCO_TX: return IDX_INT_BT_SCO_TX;
case INT_BT_A2DP_RX: return IDX_INT_BT_A2DP_RX; case INT_BT_A2DP_RX: return IDX_INT_BT_A2DP_RX;
@ -322,7 +319,6 @@ int afe_sizeof_cfg_cmd(u16 port_id)
case SLIMBUS_2_RX: case SLIMBUS_2_RX:
case SLIMBUS_2_TX: case SLIMBUS_2_TX:
case SLIMBUS_3_RX: case SLIMBUS_3_RX:
case SLIMBUS_3_TX:
case SLIMBUS_4_RX: case SLIMBUS_4_RX:
case SLIMBUS_4_TX: case SLIMBUS_4_TX:
ret_size = SIZEOF_CFG_CMD(afe_port_slimbus_sch_cfg); ret_size = SIZEOF_CFG_CMD(afe_port_slimbus_sch_cfg);