summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2012-10-13 20:05:22 +0200
committerPaul Kocialkowski <contact@paulk.fr>2012-10-13 20:05:22 +0200
commita0c0eedb1ea3d1bc3a058b45b5c7d2b7a36729ac (patch)
tree56f1ebc77ee063b66b981172f248e5bf9de18d77
parent6a2edf8f42c9fe4533d583938362f5c183fcd887 (diff)
downloadhardware_tinyalsa-audio-a0c0eedb1ea3d1bc3a058b45b5c7d2b7a36729ac.zip
hardware_tinyalsa-audio-a0c0eedb1ea3d1bc3a058b45b5c7d2b7a36729ac.tar.gz
hardware_tinyalsa-audio-a0c0eedb1ea3d1bc3a058b45b5c7d2b7a36729ac.tar.bz2
Change Yamaha-MC1N2-Audio route when output route is changed
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--audio_out.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio_out.c b/audio_out.c
index 47f4dfa..a0bad83 100644
--- a/audio_out.c
+++ b/audio_out.c
@@ -98,6 +98,11 @@ int audio_out_set_route(struct tinyalsa_audio_stream_out *stream_out,
tinyalsa_mixer_set_route(stream_out->device->mixer,
stream_out->device_current, stream_out->device->mode);
+#ifdef YAMAHA_MC1N2_AUDIO
+ yamaha_mc1n2_audio_set_route(stream_out->device->mc1n2_pdata, device,
+ stream_out->device->mode);
+#endif
+
return 0;
}