sonynwza10/a20: enable pcm frequency selection

Change-Id: I335fcdbb652253e777d0d7406545d0d44d98f4f0
This commit is contained in:
Amaury Pouly 2017-10-01 16:13:54 +02:00
parent 50e93d5687
commit a82ebac53a
5 changed files with 41 additions and 1 deletions

View file

@ -479,6 +479,10 @@ static void pcm_dma_apply_settings_nolock(void)
{
snd_pcm_drop(handle);
set_hwparams(handle, pcm_sampr);
#if defined(HAVE_NWZ_LINUX_CODEC)
/* Sony NWZ linux driver uses a nonstandard mecanism to set the sampling rate */
audiohw_set_frequency(pcm_sampr);
#endif
}
void pcm_dma_apply_settings(void)