CirrusLogic / tinyhal

Configurable audio HAL for Android
Apache License 2.0
32 stars 17 forks source link

audio_hw: provide default in/out rates #4

Closed aleksander0m closed 7 years ago

aleksander0m commented 7 years ago

If no explicit rate is specified in the pcm_open() call, the kernel will end up returning -EINVAL, as the PCM HW config refine operation would not find a matching valid rate.

E.g. in snd_pcm_hw_refine(), for SNDRV_PCM_HW_PARAM_RATE: [ 416.096231] [0 0] -> empty

The default value should match a valid rate supported by the audio hardware setup.

rfvirgil commented 7 years ago

Please add a Signed-off-by to your commit message and I will merge this patch

aleksander0m commented 7 years ago

Done