diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-27 17:29:45 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-28 10:36:27 +0200 |
commit | 745c447579326d26a239676173854065fae1a197 (patch) | |
tree | e24a7dc47314abc0689ec251569272832121bf70 /target/linux/bcm27xx/patches-4.19/950-0387-staging-bcm2835-audio-Drop-superfluous-mutex-lock-du.patch | |
parent | ad84c095028f6ddef95a92e028760cce23d32f6c (diff) | |
download | upstream-745c447579326d26a239676173854065fae1a197.tar.gz upstream-745c447579326d26a239676173854065fae1a197.tar.bz2 upstream-745c447579326d26a239676173854065fae1a197.zip |
bcm27xx: remove linux 4.19 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-4.19/950-0387-staging-bcm2835-audio-Drop-superfluous-mutex-lock-du.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-4.19/950-0387-staging-bcm2835-audio-Drop-superfluous-mutex-lock-du.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/target/linux/bcm27xx/patches-4.19/950-0387-staging-bcm2835-audio-Drop-superfluous-mutex-lock-du.patch b/target/linux/bcm27xx/patches-4.19/950-0387-staging-bcm2835-audio-Drop-superfluous-mutex-lock-du.patch deleted file mode 100644 index a70081159f..0000000000 --- a/target/linux/bcm27xx/patches-4.19/950-0387-staging-bcm2835-audio-Drop-superfluous-mutex-lock-du.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 3c7663a9b1763f64250db4b975a3ce246ef32e0f Mon Sep 17 00:00:00 2001 -From: Takashi Iwai <tiwai@suse.de> -Date: Tue, 4 Sep 2018 17:58:45 +0200 -Subject: [PATCH] staging: bcm2835-audio: Drop superfluous mutex lock - during prepare - -commit f0eb15d055380ff127e5f12c8fad2b36bdb3c006 upstream. - -The chip->audio_mutex is used basically for protecting the opened -stream assignment, and the prepare callback is irrelevant with it. - -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 | 8 ++------ - 1 file changed, 2 insertions(+), 6 deletions(-) - ---- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c -+++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c -@@ -218,8 +218,6 @@ static int snd_bcm2835_pcm_prepare(struc - int channels; - int err; - -- mutex_lock(&chip->audio_mutex); -- - /* notify the vchiq that it should enter spdif passthrough mode by - * setting channels=0 (see - * https://github.com/raspberrypi/linux/issues/528) -@@ -233,7 +231,7 @@ static int snd_bcm2835_pcm_prepare(struc - runtime->rate, - snd_pcm_format_width(runtime->format)); - if (err < 0) -- goto out; -+ return err; - - memset(&alsa_stream->pcm_indirect, 0, sizeof(alsa_stream->pcm_indirect)); - -@@ -246,9 +244,7 @@ static int snd_bcm2835_pcm_prepare(struc - alsa_stream->pos = 0; - alsa_stream->draining = false; - -- out: -- mutex_unlock(&chip->audio_mutex); -- return err; -+ return 0; - } - - static void snd_bcm2835_pcm_transfer(struct snd_pcm_substream *substream, |