diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-06-18 16:18:08 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-06-18 16:18:08 +0200 |
commit | 11c907a83c9081d587b27db32fafafe912812563 (patch) | |
tree | 68306d4608f38ac352e188f1470ba45f9901fa36 /firmware/target/arm | |
parent | d997dafb6ca1644fdb07fa9850b72eb178ba45d4 (diff) |
zenxfi2: drop audio routing driver in favor of the generic one
Change-Id: I8186f4b8e7cdc5abc549dffb033178921f447998
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/imx233/creative-zenxfi2/audio-target.h (renamed from firmware/target/arm/imx233/creative-zenxfi2/audio-zenxfi2.c) | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/firmware/target/arm/imx233/creative-zenxfi2/audio-zenxfi2.c b/firmware/target/arm/imx233/creative-zenxfi2/audio-target.h index 810f1c156f..afa3d9649b 100644 --- a/firmware/target/arm/imx233/creative-zenxfi2/audio-zenxfi2.c +++ b/firmware/target/arm/imx233/creative-zenxfi2/audio-target.h @@ -7,7 +7,7 @@ * \/ \/ \/ \/ \/ * $Id$ * - * Copyright (C) 2012 by Amaury Pouly + * Copyright (C) 2013 by Amaury Pouly * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -18,38 +18,7 @@ * KIND, either express or implied. * ****************************************************************************/ -#include "config.h" -#include "system.h" -#include "audiohw.h" -#include "audio.h" -#include "audioout-imx233.h" -#include "audioin-imx233.h" - -static int input_source = AUDIO_SRC_PLAYBACK; -static unsigned input_flags = 0; -static int output_source = AUDIO_SRC_PLAYBACK; - -static void select_audio_path(void) -{ - if(input_source == AUDIO_SRC_PLAYBACK) - imx233_audioout_select_hp_input(false); - else - imx233_audioout_select_hp_input(true); -} - -void audio_input_mux(int source, unsigned flags) -{ - (void) source; - (void) flags; - input_source = source; - input_flags = flags; - select_audio_path(); -} - -void audio_set_output_source(int source) -{ - (void) source; - output_source = source; - select_audio_path(); -} +#ifndef __audio_target__ +#define __audio_target__ +#endif /* __audio_target__ */ |