summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/tegra/tegra_i2s.c4
-rw-r--r--sound/soc/tegra/tegra_soc_max98088.c48
2 files changed, 5 insertions, 47 deletions
diff --git a/sound/soc/tegra/tegra_i2s.c b/sound/soc/tegra/tegra_i2s.c
index e909359fbdc0..93d84ba39337 100644
--- a/sound/soc/tegra/tegra_i2s.c
+++ b/sound/soc/tegra/tegra_i2s.c
@@ -163,9 +163,13 @@ static int tegra_i2s_hw_params(struct snd_pcm_substream *substream,
switch (params_rate(params)) {
case 8000:
+ case 11025:
+ case 16000:
+ case 22050:
case 32000:
case 44100:
case 48000:
+ case 64000:
case 88200:
case 96000:
val = params_rate(params);
diff --git a/sound/soc/tegra/tegra_soc_max98088.c b/sound/soc/tegra/tegra_soc_max98088.c
index 03b1f466359b..1243c7dc6407 100644
--- a/sound/soc/tegra/tegra_soc_max98088.c
+++ b/sound/soc/tegra/tegra_soc_max98088.c
@@ -241,12 +241,7 @@ void tegra_ext_control(struct snd_soc_codec *codec, int new_con)
else
snd_soc_dapm_disable_pin(codec, "Headphone");
- if (new_con & (TEGRA_LINEOUT | TEGRA_EAR_SPK))
- snd_soc_dapm_enable_pin(codec, "Lineout");
- else
- snd_soc_dapm_disable_pin(codec, "Lineout");
-
- if (new_con & TEGRA_SPK)
+ if (new_con & (TEGRA_SPK | TEGRA_EAR_SPK))
snd_soc_dapm_enable_pin(codec, "Int Spk");
else
snd_soc_dapm_disable_pin(codec, "Int Spk");
@@ -361,52 +356,11 @@ static const struct snd_soc_dapm_route audio_map[] = {
{"Int Spk", NULL, "SPKL"},
{"Int Spk", NULL, "SPKR"},
- /* Receiver connected to RECL and RECR */
- {"Lineout", NULL, "RECL"},
- {"Lineout", NULL, "RECR"},
-
/*
* To be complete, add remained in/out devices such as built-in mic
* and headset mic.
*/
};
-#if 0
-/* Tegra machine audio map (connections to the codec pins) */
-static const struct snd_soc_dapm_route audio_map[] = {
-
- /* headphone connected to LHPOUT1, RHPOUT1 */
- {"Headphone", NULL, "HPOUTR"},
- {"Headphone", NULL, "HPOUTL"},
-
- /* headset Jack - in = micin, out = HPOUT*/
- {"Headset", NULL, "HPOUTR"},
- {"Headset", NULL, "HPOUTL"},
- {"IN1L", NULL, "Headset"},
- {"IN1R", NULL, "Headset"},
-
- /* lineout connected to LINEOUTR and LINEOUTL */
- {"Lineout", NULL, "LINEOUTR"},
- {"Lineout", NULL, "LINEOUTL"},
-
- /* build-in speaker connected to LON/P RON/P */
- {"Int Spk", NULL, "RON"},
- {"Int Spk", NULL, "ROP"},
- {"Int Spk", NULL, "LON"},
- {"Int Spk", NULL, "LOP"},
-
- /* internal mic is mono */
- {"IN1R", NULL, "Int Mic"},
-
- /* external mic is stero */
- {"IN1L", NULL, "Ext Mic"},
- {"IN1R", NULL, "Ext Mic"},
-
- /* Line In */
- {"IN3L", NULL, "Linein"},
- {"IN3R", NULL, "Linein"},
-};
-#endif
-
static int tegra_codec_init(struct snd_soc_codec *codec)
{