staging: bcm2835-audio: Drop unnecessary pcm indirect setup
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:41 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:14:59 +0000 (11:14 +0200)
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 <tiwai@suse.de>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c

index a3605505cc20bd6c8d58b6e1c870be0257272138..c935c6e99633cc5288f8587fd4d97f831a0dca98 100644 (file)
@@ -280,7 +280,6 @@ static int snd_bcm2835_pcm_ack(struct snd_pcm_substream *substream)
        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);
 }