path: root/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
diff options
authorOleksandr Suvorov <>2019-09-09 15:04:37 +0300
committerOleksandr Suvorov <>2019-09-09 15:04:37 +0300
commitbabaf479582f7697fbfd4c001945fbfb766d914d (patch)
tree076e1b1edfa8c2497e67dcc9c0ebc2764dae5aef /drivers/net/wireless/iwlwifi/iwl-agn-tx.c
parentd26e03d1e61da1ba12f0fb84d5ee13a8810c0d59 (diff)
apalis/colibri t30: fix record/playback for sgtl5000 codec
Backported commit f997df18c0e4c988de49e984329cefdf6e13ed86 According to the manual [1], SYS_MCLK should base on SYS_FS, not on sample rate. Calculating SYS_MCLK using sample rate only prevents playing/recording samples with rate < 16 kHz: --------------------------------------------------------------- root@apalis-t30:~# aplay test-8k-sample.wav Playing WAVE 'test-8k-sample.wav' : Signed 16 bit [...] tegra-snd-apalis-tk1-sgtl5000 tegra-snd-apalis-tk1-sgtl5000.0: ASoC: machine hw_params failed: -22 Little Endian, Rate 8000 Hz, Stereo aplay: set_params:1403: Unable to install hw params: ... --------------------------------------------------------------- Using the helper from sgtl5000.h fixes this issue. To keep determination of sys_fs solid, use a helper in device driver. [1] Signed-off-by: Oleksandr Suvorov <>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-tx.c')
0 files changed, 0 insertions, 0 deletions