summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/pcm-alsa.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-10-01 16:13:54 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-10-01 17:23:43 +0200
commita82ebac53a23867452a62e3bd6c2516679ac95d8 (patch)
treea03b0986f141e882f12d66b0fc05825b2008e40b /firmware/target/hosted/pcm-alsa.c
parent50e93d56874dec894b81fa6fcfecc6d46525ee2a (diff)
downloadrockbox-a82ebac53a23867452a62e3bd6c2516679ac95d8.tar.gz
rockbox-a82ebac53a23867452a62e3bd6c2516679ac95d8.zip
sonynwza10/a20: enable pcm frequency selection
Change-Id: I335fcdbb652253e777d0d7406545d0d44d98f4f0
Diffstat (limited to 'firmware/target/hosted/pcm-alsa.c')
-rw-r--r--firmware/target/hosted/pcm-alsa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/hosted/pcm-alsa.c b/firmware/target/hosted/pcm-alsa.c
index c84679e9f3..f6a3ffce71 100644
--- a/firmware/target/hosted/pcm-alsa.c
+++ b/firmware/target/hosted/pcm-alsa.c
@@ -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)