#endif
#define DRV_NAME "tegra-snd-max98090"
+#ifndef __devinit
+#define __devinit
+#endif
+#ifndef __devexit
+#define __devexit
+#endif
+#ifndef __devexit_p
+#define __devexit_p(x) (x)
+#endif
+
#define GPIO_SPKR_EN BIT(0)
#define GPIO_HP_MUTE BIT(1)
#define GPIO_INT_MIC_EN BIT(2)
tegra30_dam_enable_clock(i2s->dam_ifc);
tegra30_ahub_set_rx_cif_source(TEGRA30_AHUB_RXCIF_DAM0_RX1 +
- (i2s->dam_ifc*2), i2s->txcif);
+ (i2s->dam_ifc*2), i2s->playback_fifo_cif);
/*
*make the dam tx to i2s rx connection if this is the only
tegra30_dam_enable_clock(i2s->call_record_dam_ifc);
/* setup the connections for voice call record */
- tegra30_ahub_unset_rx_cif_source(i2s->rxcif);
+ tegra30_ahub_unset_rx_cif_source(i2s->capture_fifo_cif);
#if defined(CONFIG_ARCH_TEGRA_14x_SOC)
/* configure the dam */
tegra_max98090_set_dam_cif(i2s->call_record_dam_ifc,
tegra30_ahub_set_rx_cif_source(TEGRA30_AHUB_RXCIF_DAM0_RX1 +
(i2s->call_record_dam_ifc*2),
TEGRA30_AHUB_TXCIF_I2S0_TX0 + codec_info->i2s_id);
- tegra30_ahub_set_rx_cif_source(i2s->rxcif,
+ tegra30_ahub_set_rx_cif_source(i2s->capture_fifo_cif,
TEGRA30_AHUB_TXCIF_DAM0_TX0 +
i2s->call_record_dam_ifc);
TEGRA30_DAM_DISABLE, TEGRA30_DAM_CHIN0_SRC);
/* disconnect the ahub connections*/
- tegra30_ahub_unset_rx_cif_source(i2s->rxcif);
+ tegra30_ahub_unset_rx_cif_source(i2s->capture_fifo_cif);
tegra30_ahub_unset_rx_cif_source(TEGRA30_AHUB_RXCIF_DAM0_RX0 +
(i2s->call_record_dam_ifc*2));
tegra30_ahub_unset_rx_cif_source(TEGRA30_AHUB_RXCIF_DAM0_RX1 +
struct snd_soc_jack_gpio *gpio = &tegra_max98090_hp_jack_gpio;
struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card);
int i, suspend_allowed = 1;
+ int ret;
for (i = 0; i < machine->pcard->num_links; i++) {
if (machine->pcard->dai_link[i].ignore_suspend) {
}
if (machine->avdd_aud_reg)
- regulator_enable(machine->avdd_aud_reg);
+ ret = regulator_enable(machine->avdd_aud_reg);
if (machine->vdd_sw_1v8_reg)
- regulator_enable(machine->vdd_sw_1v8_reg);
+ ret = regulator_enable(machine->vdd_sw_1v8_reg);
}
return 0;
}
if (machine->vdd_sw_1v8_reg)
- regulator_enable(machine->vdd_sw_1v8_reg);
+ ret = regulator_enable(machine->vdd_sw_1v8_reg);
if (machine->avdd_aud_reg)
- regulator_enable(machine->avdd_aud_reg);
+ ret = regulator_enable(machine->avdd_aud_reg);
#ifdef CONFIG_SWITCH
tegra_max98090_dai[DAI_LINK_HIFI].cpu_dai_name =
tegra_max98090_i2s_dai_name[machine->codec_info[HIFI_CODEC].i2s_id];
+ tegra_max98090_dai[DAI_LINK_HIFI].platform_name =
+ tegra_max98090_i2s_dai_name[machine->codec_info[HIFI_CODEC].i2s_id];
tegra_max98090_dai[DAI_LINK_HIFI_MAX97236].cpu_dai_name =
tegra_max98090_i2s_dai_name[machine->codec_info[HIFI_CODEC].i2s_id];
+ tegra_max98090_dai[DAI_LINK_HIFI_MAX97236].platform_name =
+ tegra_max98090_i2s_dai_name[machine->codec_info[HIFI_CODEC].i2s_id];
tegra_max98090_dai[DAI_LINK_BTSCO].cpu_dai_name =
tegra_max98090_i2s_dai_name[machine->codec_info[BT_SCO].i2s_id];
+ tegra_max98090_dai[DAI_LINK_BTSCO].platform_name =
+ tegra_max98090_i2s_dai_name[machine->codec_info[BT_SCO].i2s_id];
card->dapm.idle_bias_off = 1;
ret = snd_soc_register_card(card);