diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2012-10-20 15:39:01 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-10-20 15:39:01 +0200 |
commit | 4d1f4e9cad4800bac513c0c49f3ea4d0a72697e7 (patch) | |
tree | 626dfd88062b4a8101c63968d240026c759316a3 | |
parent | 81d2b42d0f501aa0fa34ced8e7a5164dd4dafcab (diff) | |
download | hardware_tinyalsa-audio-4d1f4e9cad4800bac513c0c49f3ea4d0a72697e7.zip hardware_tinyalsa-audio-4d1f4e9cad4800bac513c0c49f3ea4d0a72697e7.tar.gz hardware_tinyalsa-audio-4d1f4e9cad4800bac513c0c49f3ea4d0a72697e7.tar.bz2 |
Output: Stop Yamaha-MC1N2-Audio output route when closing output
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r-- | audio_out.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/audio_out.c b/audio_out.c index 40226c3..573fbdc 100644 --- a/audio_out.c +++ b/audio_out.c @@ -380,10 +380,18 @@ static int audio_out_remove_audio_effect(const struct audio_stream *stream, effe void audio_hw_close_output_stream(struct audio_hw_device *dev, struct audio_stream_out *stream) { + struct tinyalsa_audio_stream_out *stream_out; struct tinyalsa_audio_device *tinyalsa_audio_device; LOGD("%s(%p)", __func__, stream); + stream_out = (struct tinyalsa_audio_stream_out *) stream; + +#ifdef YAMAHA_MC1N2_AUDIO + if(stream_out != NULL && !stream_out->standby) + yamaha_mc1n2_audio_output_stop(stream_out->device->mc1n2_pdata); +#endif + if(stream != NULL) free(stream); |