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_out.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'audio_out.c') diff --git a/audio_out.c b/audio_out.c index 13a71a5..40226c3 100644 --- a/audio_out.c +++ b/audio_out.c @@ -211,7 +211,7 @@ static int audio_out_standby(struct audio_stream *stream) #ifdef YAMAHA_MC1N2_AUDIO if(!stream_out->standby) { - rc = yamaha_mc1n2_audio_routine_route_stop(stream_out->device->mc1n2_pdata); + rc = yamaha_mc1n2_audio_output_stop(stream_out->device->mc1n2_pdata); if(rc < 0) { LOGE("Failed to set Yamaha-MC1N2-Audio route"); } @@ -322,7 +322,7 @@ static ssize_t audio_out_write(struct audio_stream_out *stream, if(stream_out->standby) { #ifdef YAMAHA_MC1N2_AUDIO - rc = yamaha_mc1n2_audio_routine_route_start(stream_out->device->mc1n2_pdata); + rc = yamaha_mc1n2_audio_output_start(stream_out->device->mc1n2_pdata); if(rc < 0) { LOGE("Failed to set Yamaha-MC1N2-Audio route"); } @@ -464,13 +464,6 @@ int audio_hw_open_output_stream(struct audio_hw_device *dev, goto error_stream; } -#ifdef YAMAHA_MC1N2_AUDIO - rc = yamaha_mc1n2_audio_routine_postopen(tinyalsa_audio_device->mc1n2_pdata); - if(rc < 0) { - LOGE("Failed to init Yamaha-MC1N2-Audio route"); - } -#endif - audio_out_pcm_close(tinyalsa_audio_stream_out); tinyalsa_audio_stream_out->standby = 1; -- cgit v1.1