@@ -280,15 +280,13 @@ static uint32_t mux_calc_frames_without_wrap_s32(struct comp_dev *dev,
280280 * sink buffer (mux has one sink buffer), so dest min_frames
281281 * calculation based only on lookup table first element is sufficient.
282282 */
283- ptr = (int32_t * )lookup -> copy_elem [0 ].dest -
284- lookup -> copy_elem [0 ].out_ch ;
283+ ptr = (int32_t * )lookup -> copy_elem [0 ].dest - lookup -> copy_elem [0 ].out_ch ;
285284 min_frames = audio_stream_frames_without_wrap (sink , ptr );
286285
287286 for (elem = 0 ; elem < lookup -> num_elems ; elem ++ ) {
288287 source = sources [lookup -> copy_elem [elem ].stream_id ];
289288
290- ptr = (int32_t * )lookup -> copy_elem [elem ].src -
291- lookup -> copy_elem [elem ].in_ch ;
289+ ptr = (int32_t * )lookup -> copy_elem [elem ].src - lookup -> copy_elem [elem ].in_ch ;
292290 frames = audio_stream_frames_without_wrap (source , ptr );
293291
294292 min_frames = (frames < min_frames ) ? frames : min_frames ;
@@ -311,12 +309,10 @@ static uint32_t demux_calc_frames_without_wrap_s32(struct comp_dev *dev,
311309 * each copy_elem refers to the same sink/source buffer, so min_frames
312310 * calculation based only on lookup table first element is sufficient.
313311 */
314- ptr = (int32_t * )lookup -> copy_elem [0 ].dest -
315- lookup -> copy_elem [0 ].out_ch ;
312+ ptr = (int32_t * )lookup -> copy_elem [0 ].dest - lookup -> copy_elem [0 ].out_ch ;
316313 min_frames = audio_stream_frames_without_wrap (sink , ptr );
317314
318- ptr = (int32_t * )lookup -> copy_elem [0 ].src -
319- lookup -> copy_elem [0 ].in_ch ;
315+ ptr = (int32_t * )lookup -> copy_elem [0 ].src - lookup -> copy_elem [0 ].in_ch ;
320316 frames = audio_stream_frames_without_wrap (source , ptr );
321317
322318 min_frames = (frames < min_frames ) ? frames : min_frames ;
@@ -503,8 +499,7 @@ void mux_prepare_look_up_table(struct comp_dev *dev)
503499 /* MUX component has only one sink */
504500 cd -> lookup [0 ].copy_elem [idx ].in_ch = j ;
505501 cd -> lookup [0 ].copy_elem [idx ].out_ch = k ;
506- cd -> lookup [0 ].copy_elem [idx ].stream_id =
507- i ;
502+ cd -> lookup [0 ].copy_elem [idx ].stream_id = i ;
508503 cd -> lookup [0 ].num_elems = ++ idx ;
509504 }
510505 }
@@ -529,8 +524,7 @@ void demux_prepare_look_up_table(struct comp_dev *dev)
529524 /* DEMUX component has only one source */
530525 cd -> lookup [i ].copy_elem [idx ].in_ch = k ;
531526 cd -> lookup [i ].copy_elem [idx ].out_ch = j ;
532- cd -> lookup [i ].copy_elem [idx ].stream_id =
533- i ;
527+ cd -> lookup [i ].copy_elem [idx ].stream_id = i ;
534528 cd -> lookup [i ].num_elems = ++ idx ;
535529 }
536530 }
0 commit comments