OSDN Git Service

[FM] Add FM_TUNER audio source to support L version FM radio app
authorBenson Huang <benson.huang@mediatek.com>
Wed, 17 Sep 2014 09:21:02 +0000 (17:21 +0800)
committerLeo Wang <leozwang@google.com>
Mon, 6 Oct 2014 18:50:12 +0000 (18:50 +0000)
commitce4483cb83afb3a42a32ef2cb00cf04d6f9018fd
treef2a1672ad49a7e05bbd2b2034de302b328ee015a
parent937d6a6476be3ce06f3c9c10836a4399b7514231
[FM] Add FM_TUNER audio source to support L version FM radio app

    1.MediaRecorder.java: Add FM_TUNER audio source type for FM record.
    2.AudioRecord.java: For FM output to the other device,
     (except the headset case), record the FM tuner signal to a track
      and playback the recorded signal by a track.
    3.AudioAttributes.java: Thus we use AudioRecord, need to modify
      setCapturePreset to support MediaRecorder.AudioSource.FM_TUNER.

    Review: https://partner-android-review.git.corp.google.com/#/c/182071

Signed-off-by: Benson Huang <benson.huang@mediatek.com>
Change-Id: If068d0bbbffb4848887004396a8a8d9bcba1334e
media/java/android/media/AudioAttributes.java
media/java/android/media/AudioRecord.java
media/java/android/media/MediaRecorder.java