lkml.org 
[lkml]   [2018]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.15 015/122] ALSA: x86: Fix missing spinlock and mutex initializations
    Date
    4.15-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Takashi Iwai <tiwai@suse.de>

    commit 350144069abf351c743d766b2fba9cb9b7cd32a1 upstream.

    The commit change for supporting the multiple ports moved involved
    some code shuffling, and there the initializations of spinlock and
    mutex in snd_intelhad object were dropped mistakenly.

    This patch adds the missing initializations again for each port.

    Fixes: b4eb0d522fcb ("ALSA: x86: Split snd_intelhad into card and PCM specific structures")
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    sound/x86/intel_hdmi_audio.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/sound/x86/intel_hdmi_audio.c
    +++ b/sound/x86/intel_hdmi_audio.c
    @@ -1827,6 +1827,8 @@ static int hdmi_lpe_audio_probe(struct p
    ctx->port = port;
    ctx->pipe = -1;

    + spin_lock_init(&ctx->had_spinlock);
    + mutex_init(&ctx->mutex);
    INIT_WORK(&ctx->hdmi_audio_wq, had_audio_wq);

    ret = snd_pcm_new(card, INTEL_HAD, port, MAX_PB_STREAMS,

    \
     
     \ /
      Last update: 2018-03-07 21:54    [W:4.186 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site