@@ -87,10 +87,9 @@ class BpAudioFlinger : public BpInterface<IAudioFlinger>
8787 audio_format_t format,
8888 uint32_t channelMask,
8989 int frameCount,
90- uint32_t flags,
90+ track_flags_t flags,
9191 const sp<IMemory>& sharedBuffer,
9292 audio_io_handle_t output,
93- bool isTimed,
9493 int *sessionId,
9594 status_t *status)
9695 {
@@ -103,10 +102,9 @@ class BpAudioFlinger : public BpInterface<IAudioFlinger>
103102 data.writeInt32 (format);
104103 data.writeInt32 (channelMask);
105104 data.writeInt32 (frameCount);
106- data.writeInt32 (flags);
105+ data.writeInt32 (( int32_t ) flags);
107106 data.writeStrongBinder (sharedBuffer->asBinder ());
108107 data.writeInt32 ((int32_t ) output);
109- data.writeInt32 (isTimed);
110108 int lSessionId = 0 ;
111109 if (sessionId != NULL ) {
112110 lSessionId = *sessionId;
@@ -136,7 +134,7 @@ class BpAudioFlinger : public BpInterface<IAudioFlinger>
136134 audio_format_t format,
137135 uint32_t channelMask,
138136 int frameCount,
139- uint32_t flags,
137+ track_flags_t flags,
140138 int *sessionId,
141139 status_t *status)
142140 {
@@ -688,15 +686,14 @@ status_t BnAudioFlinger::onTransact(
688686 audio_format_t format = (audio_format_t ) data.readInt32 ();
689687 int channelCount = data.readInt32 ();
690688 size_t bufferCount = data.readInt32 ();
691- uint32_t flags = data.readInt32 ();
689+ track_flags_t flags = ( track_flags_t ) data.readInt32 ();
692690 sp<IMemory> buffer = interface_cast<IMemory>(data.readStrongBinder ());
693691 audio_io_handle_t output = (audio_io_handle_t ) data.readInt32 ();
694- bool isTimed = data.readInt32 ();
695692 int sessionId = data.readInt32 ();
696693 status_t status;
697694 sp<IAudioTrack> track = createTrack (pid,
698695 (audio_stream_type_t ) streamType, sampleRate, format,
699- channelCount, bufferCount, flags, buffer, output, isTimed, &sessionId, &status);
696+ channelCount, bufferCount, flags, buffer, output, &sessionId, &status);
700697 reply->writeInt32 (sessionId);
701698 reply->writeInt32 (status);
702699 reply->writeStrongBinder (track->asBinder ());
@@ -710,7 +707,7 @@ status_t BnAudioFlinger::onTransact(
710707 audio_format_t format = (audio_format_t ) data.readInt32 ();
711708 int channelCount = data.readInt32 ();
712709 size_t bufferCount = data.readInt32 ();
713- uint32_t flags = data.readInt32 ();
710+ track_flags_t flags = ( track_flags_t ) data.readInt32 ();
714711 int sessionId = data.readInt32 ();
715712 status_t status;
716713 sp<IAudioRecord> record = openRecord (pid, input,
0 commit comments