Re: ALSA: bebob: Use common error handling code in snd_bebob_stream_start_duplex()

From: SF Markus Elfring
Date: Sun Sep 24 2017 - 03:07:20 EST


> 668ÂÂÂÂ if (!amdtp_stream_wait_callback(&bebob->tx_stream,
> 669ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ CALLBACK_TIMEOUT)) {
> 670ÂÂÂÂÂÂÂÂ amdtp_stream_stop(&bebob->tx_stream);
> 671ÂÂÂÂÂÂÂÂ amdtp_stream_stop(&bebob->rx_stream);
> 672ÂÂÂÂÂÂÂÂ break_both_connections(bebob);
> 673ÂÂÂÂÂÂÂÂ err = -ETIMEDOUT;
> 674ÂÂÂÂ }
> 675 }
>
> I think it better to apply your solution too in the above to keep code consistency.

How do you think about to adjust this function implementation after the other two
update steps from the patch series would be integrated?


> For the other patches, I can find no merit to apply except for reduction
> of the number of characters included in the file.

Would you like to refer to any specific update suggestions for further clarification?

Regards,
Markus