X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0388-staging-bcm2835-audio-Add-10ms-period-constraint.patch;fp=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0388-staging-bcm2835-audio-Add-10ms-period-constraint.patch;h=0000000000000000000000000000000000000000;hb=7d7aa2fd924c27829ec25f825481554dd81bce97;hp=07e96f61eddd85f5b2186cecca9d9b3571fb05fe;hpb=e7bfda2c243e66a75ff966ba04c28b1590b5d24c;p=openwrt%2Fstaging%2Fchunkeey.git diff --git a/target/linux/brcm2708/patches-4.19/950-0388-staging-bcm2835-audio-Add-10ms-period-constraint.patch b/target/linux/brcm2708/patches-4.19/950-0388-staging-bcm2835-audio-Add-10ms-period-constraint.patch deleted file mode 100644 index 07e96f61ed..0000000000 --- a/target/linux/brcm2708/patches-4.19/950-0388-staging-bcm2835-audio-Add-10ms-period-constraint.patch +++ /dev/null @@ -1,33 +0,0 @@ -From daa78c198ece1ec901ee565c869ee1a60a95061d Mon Sep 17 00:00:00 2001 -From: Takashi Iwai -Date: Tue, 4 Sep 2018 17:58:46 +0200 -Subject: [PATCH] staging: bcm2835-audio: Add 10ms period constraint - -commit 93c66acaf68b5247c3121a46a71ff6a70fc1d492 upstream. - -It seems that the resolution of vc04 callback is in 10 msec; i.e. the -minimal period size is also 10 msec. - -This patch adds the corresponding hw constraint. - -Signed-off-by: Takashi Iwai -Tested-by: Stefan Wahren -Signed-off-by: Greg Kroah-Hartman ---- - drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 5 +++++ - 1 file changed, 5 insertions(+) - ---- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c -+++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c -@@ -145,6 +145,11 @@ static int snd_bcm2835_playback_open_gen - SNDRV_PCM_HW_PARAM_PERIOD_BYTES, - 16); - -+ /* position update is in 10ms order */ -+ snd_pcm_hw_constraint_minmax(runtime, -+ SNDRV_PCM_HW_PARAM_PERIOD_TIME, -+ 10 * 1000, UINT_MAX); -+ - chip->alsa_stream[idx] = alsa_stream; - - chip->opened |= (1 << idx);