From 81d2b42d0f501aa0fa34ced8e7a5164dd4dafcab Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sat, 20 Oct 2012 15:28:15 +0200 Subject: Yamaha-MC1N2-Audio: Follow API changes Signed-off-by: Paul Kocialkowski --- audio_hw.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'audio_hw.c') diff --git a/audio_hw.c b/audio_hw.c index abe6b76..38acef4 100644 --- a/audio_hw.c +++ b/audio_hw.c @@ -295,7 +295,7 @@ int audio_hw_open(const hw_module_t *module, const char *name, goto error_device; } - rc = yamaha_mc1n2_audio_routine_init(tinyalsa_audio_device->mc1n2_pdata); + rc = yamaha_mc1n2_audio_init(tinyalsa_audio_device->mc1n2_pdata); if(rc < 0) { LOGE("Failed to init Yamaha-MC1N2-Audio"); } @@ -312,13 +312,6 @@ int audio_hw_open(const hw_module_t *module, const char *name, LOGE("Failed to set default mixer route"); } -#ifdef YAMAHA_MC1N2_AUDIO - rc = yamaha_mc1n2_audio_routine_route_init(tinyalsa_audio_device->mc1n2_pdata); - if(rc < 0) { - LOGE("Failed to init Yamaha-MC1N2-Audio route"); - } -#endif - tinyalsa_audio_device->mixer = tinyalsa_mixer; *device = &(dev->common); -- cgit v1.1