author | Zhenggang Luo <zhenggang.luo@amlogic.com> | 2015-07-17 05:36:56 (GMT) |
---|---|---|
committer | Zhenggang Luo <zhenggang.luo@amlogic.com> | 2015-07-17 05:46:27 (GMT) |
commit | e891f0fb2527a54865cb3e7fd4425fd71d981c90 (patch) | |
tree | cebe0cb5195cf76fa11e3301ab1c447e1c150a40 | |
parent | 6c039392cad2c396122cb279b110a09cec820071 (diff) | |
download | audio-e891f0fb2527a54865cb3e7fd4425fd71d981c90.zip audio-e891f0fb2527a54865cb3e7fd4425fd71d981c90.tar.gz audio-e891f0fb2527a54865cb3e7fd4425fd71d981c90.tar.bz2 |
PD #109299: forbiden do_out_standby() when change
system samplerate, otherwise,this may block audiofliner
writing data to hal, and after switch to next video,
the raw output data of last video could not be consume
over,and this may result in creating new raw_audiotrack
faild;
Change-Id: I76ea47c1116b813dd03b563a7a125fab7cc5c34d
-rw-r--r-- | hdmi_audio_hw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hdmi_audio_hw.c b/hdmi_audio_hw.c index e1a6cfd..d13c2a2 100644 --- a/hdmi_audio_hw.c +++ b/hdmi_audio_hw.c @@ -1015,9 +1015,9 @@ out_set_parameters (struct audio_stream *stream, const char *kvpairs) pthread_mutex_lock (&out->lock); if (!out->standby && (out == adev->active_output)) { - do_output_standby (out); - start_output_stream (out); - out->standby = 0; + //do_output_standby (out); + //start_output_stream (out); + //out->standby = 0; } pthread_mutex_unlock (&adev->lock); pthread_mutex_unlock (&out->lock); @@ -1042,9 +1042,9 @@ out_set_parameters (struct audio_stream *stream, const char *kvpairs) pthread_mutex_lock (&out->lock); if (!out->standby && (out == adev->active_output)) { - do_output_standby (out); - start_output_stream (out); - out->standby = 0; + //do_output_standby (out); + //start_output_stream (out); + //out->standby = 0; } pthread_mutex_unlock (&adev->lock); pthread_mutex_unlock (&out->lock); |