@@ -511,12 +511,7 @@ static int bcm2835_audio_set_ctls_chan(bcm2835_alsa_stream_t * alsa_stream,
511
511
}
512
512
513
513
/* We are expecting a reply from the videocore */
514
- ret = wait_for_completion_interruptible (& instance -> msg_avail_comp );
515
- if (ret ) {
516
- LOG_DBG ("%s: failed on waiting for event (status=%d)\n" ,
517
- __func__ , success );
518
- goto unlock ;
519
- }
514
+ wait_for_completion (& instance -> msg_avail_comp );
520
515
521
516
if (instance -> result != 0 ) {
522
517
LOG_ERR ("%s: result=%d\n" , __func__ , instance -> result );
@@ -615,12 +610,7 @@ int bcm2835_audio_set_params(bcm2835_alsa_stream_t * alsa_stream,
615
610
}
616
611
617
612
/* We are expecting a reply from the videocore */
618
- ret = wait_for_completion_interruptible (& instance -> msg_avail_comp );
619
- if (ret ) {
620
- LOG_DBG ("%s: failed on waiting for event (status=%d)\n" ,
621
- __func__ , success );
622
- goto unlock ;
623
- }
613
+ wait_for_completion (& instance -> msg_avail_comp );
624
614
625
615
if (instance -> result != 0 ) {
626
616
LOG_ERR ("%s: result=%d" , __func__ , instance -> result );
@@ -761,14 +751,11 @@ int bcm2835_audio_close(bcm2835_alsa_stream_t * alsa_stream)
761
751
goto unlock ;
762
752
}
763
753
764
- ret = wait_for_completion_interruptible (& instance -> msg_avail_comp );
765
- if (ret ) {
766
- LOG_DBG ("%s: failed on waiting for event (status=%d)\n" ,
767
- __func__ , success );
768
- goto unlock ;
769
- }
754
+ /* We are expecting a reply from the videocore */
755
+ wait_for_completion (& instance -> msg_avail_comp );
756
+
770
757
if (instance -> result != 0 ) {
771
- LOG_ERR ("%s: failed result (status =%d)\n" ,
758
+ LOG_ERR ("%s: failed result (result =%d)\n" ,
772
759
__func__ , instance -> result );
773
760
774
761
ret = -1 ;
0 commit comments