X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0385-staging-bcm2835-audio-Drop-unnecessary-pcm-indirect-.patch;fp=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0385-staging-bcm2835-audio-Drop-unnecessary-pcm-indirect-.patch;h=8012631bd44107c8f424f3dd7333083d1938ae84;hb=c2308a7e4adbb2acc8ff149f91d1ca46801c135e;hp=0000000000000000000000000000000000000000;hpb=67dcc43f3a22dc3a7ac07a7065971b426feeb043;p=openwrt%2Fstaging%2Fdedeckeh.git diff --git a/target/linux/brcm2708/patches-4.19/950-0385-staging-bcm2835-audio-Drop-unnecessary-pcm-indirect-.patch b/target/linux/brcm2708/patches-4.19/950-0385-staging-bcm2835-audio-Drop-unnecessary-pcm-indirect-.patch new file mode 100644 index 0000000000..8012631bd4 --- /dev/null +++ b/target/linux/brcm2708/patches-4.19/950-0385-staging-bcm2835-audio-Drop-unnecessary-pcm-indirect-.patch @@ -0,0 +1,29 @@ +From a08260154f88b0b97e3c8de6b3cdb7187e8c3d8a Mon Sep 17 00:00:00 2001 +From: Takashi Iwai +Date: Tue, 4 Sep 2018 17:58:41 +0200 +Subject: [PATCH] staging: bcm2835-audio: Drop unnecessary pcm indirect + setup + +commit 7318ec896f4856fae2bb013858e422fa078201e1 upstream. + +The hw_queue_size of PCM indirect helper doesn't need to be set up if +you use the whole given buffer size. Drop the useless +initialization, which just confuses readers. + +Signed-off-by: Takashi Iwai +Tested-by: Stefan Wahren +Signed-off-by: Greg Kroah-Hartman +--- + drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 1 - + 1 file changed, 1 deletion(-) + +--- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c ++++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c +@@ -280,7 +280,6 @@ static int snd_bcm2835_pcm_ack(struct sn + struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; + struct snd_pcm_indirect *pcm_indirect = &alsa_stream->pcm_indirect; + +- pcm_indirect->hw_queue_size = runtime->hw.buffer_bytes_max; + return snd_pcm_indirect_playback_transfer(substream, pcm_indirect, + snd_bcm2835_pcm_transfer); + }