From 1508f7aa5850b1ac02d9876eb5dac34356c86244 Mon Sep 17 00:00:00 2001 From: Ravindra Lokhande Date: Wed, 8 Dec 2010 18:54:09 +0530 Subject: [tegra ALSA] set mode and i/o device. Set mode and input, output device for newly created device 1. Needed for bug 738770 Change-Id: I01ef4efb018a32cca8b1a0ff1e63f2a8de63dbfe Reviewed-on: http://git-master/r/12314 Reviewed-by: Bharat Nihalani Tested-by: Bharat Nihalani Reviewed-by: Ravindra Lokhande Tested-by: Ravindra Lokhande --- sound/soc/tegra/tegra_transport.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sound/soc/tegra/tegra_transport.h') diff --git a/sound/soc/tegra/tegra_transport.h b/sound/soc/tegra/tegra_transport.h index 7863efbee64d..16a2f2977e6c 100644 --- a/sound/soc/tegra/tegra_transport.h +++ b/sound/soc/tegra/tegra_transport.h @@ -420,7 +420,6 @@ struct tegra_audio_data { NvAudioFxObjectHandle i2s1_rec_split; NvAudioFxObjectHandle i2s2_rec_split; NvAudioFxObjectHandle mroute; - NvAudioFxIoDevice mi2s1_device_available; NvAudioFxIoDevice mspdif_device_available; int spdif_plugin; int i2s1volume; @@ -428,6 +427,12 @@ struct tegra_audio_data { struct mutex lock; }; +struct tegra_audio_state_t { + NvAudioFxIoDevice devices_available; + NvAudioFxMode audio_mode; + struct mutex mutex_lock; +}; + int tegra_audiofx_init(struct tegra_audio_data* tegra_snd_cx); NvError tegra_audiofx_createfx(struct tegra_audio_data *audio_context); void tegra_audiofx_destroyfx(struct tegra_audio_data *audio_context); -- cgit v1.2.3