alsa-util: Perform format and rate detection before setting HW params

Perform detection of supported sample format and rates just after device is opened, before snd_pcm_hw_params() is called for the first time.

This fixes a problem where device restricts available sample rates after HW params are set preventing sample rate detection (seen with UAC2 devices and kernel 6.1.9)

Closes: #1414 (closed)


Edited by Igor Kovalenko

Merge request reports