audio HAL: fix echo reference.

The number of frames written to the echo reference buffer in out_write() was wrong.
As we write frames at the audioflinger sampling rate we should write the number of
frames passed to out_write(), not the number of frames passed to tynialsa after resamopling.

Change-Id: Ia6a1c7e090c73e1566634a17b720e1e6049b22fe
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 744edbc..9f5bff9 100755
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1325,7 +1325,7 @@
     if (out->echo_reference != NULL) {
         struct echo_reference_buffer b;
         b.raw = (void *)buffer;
-        b.frame_count = out_frames;
+        b.frame_count = in_frames;
 
         get_playback_delay(out, out_frames, &b);
         out->echo_reference->write(out->echo_reference, &b);