aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dsp.c
diff options
context:
space:
mode:
authorMisael Lopez Cruz <misael.lopez@ti.com>2011-06-06 19:54:42 -0500
committerSimon Wilson <simonwilson@google.com>2011-06-17 13:50:29 -0700
commit704d0571523f47d02088a3a837f9edf2fda79996 (patch)
tree7d7312284e72e9862e4839f945e219b0212b0ce8 /sound/soc/soc-dsp.c
parent00bc9b2bede715bf2606f6f2b8710de3f6c94647 (diff)
downloadkernel_samsung_tuna-704d0571523f47d02088a3a837f9edf2fda79996.zip
kernel_samsung_tuna-704d0571523f47d02088a3a837f9edf2fda79996.tar.gz
kernel_samsung_tuna-704d0571523f47d02088a3a837f9edf2fda79996.tar.bz2
ASoC: DSP: Set correct widget type for capture FE/BE
For capture stream direction, the FE type is AIF_OUT and BE type is AIF_IN. This will allow to search the correct type of widgets for audio capture. Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'sound/soc/soc-dsp.c')
-rw-r--r--sound/soc/soc-dsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dsp.c b/sound/soc/soc-dsp.c
index 0dd90d11..1770ee8 100644
--- a/sound/soc/soc-dsp.c
+++ b/sound/soc/soc-dsp.c
@@ -158,8 +158,8 @@ static int dsp_add_new_paths(struct snd_soc_pcm_runtime *fe,
fe_type = snd_soc_dapm_aif_in;
be_type = snd_soc_dapm_aif_out;
} else {
- fe_type = snd_soc_dapm_aif_in;
- be_type = snd_soc_dapm_aif_out;
+ fe_type = snd_soc_dapm_aif_out;
+ be_type = snd_soc_dapm_aif_in;
}
/* get number of valid playback paths and their widgets */