diff options
| author | Takashi Iwai <[email protected]> | 2018-09-04 17:58:41 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-10 11:14:59 +0200 |
| commit | af19edf7ca2b1a44d36f3c8dbfca06a97aa9d032 (patch) | |
| tree | c2714da014020352e12ac1bb041b7c003779f845 | |
| parent | 5d0be6da7f9080cc9eed1e179015b134568565cd (diff) | |
staging: bcm2835-audio: Drop unnecessary pcm indirect setup
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 <[email protected]>
Tested-by: Stefan Wahren <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c index a3605505cc20..c935c6e99633 100644 --- 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 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); } |