From: Takashi Iwai Date: Thu, 27 Feb 2014 08:33:00 +0000 (+0100) Subject: ALSA: hda - Make codec object as a parent for input beep devices X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f2606a807935fab0d5a2806673dcc4ce4f1f40e4;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git ALSA: hda - Make codec object as a parent for input beep devices Instead of the controller, the new codec object is assigned as a parent for the hd-audio beep input devices, just like already done for PCM and hwdep. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c index d403981346d0..88bb08486f77 100644 --- a/sound/pci/hda/hda_beep.c +++ b/sound/pci/hda/hda_beep.c @@ -166,7 +166,7 @@ static int snd_hda_do_attach(struct hda_beep *beep) input_dev->evbit[0] = BIT_MASK(EV_SND); input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); input_dev->event = snd_hda_beep_event; - input_dev->dev.parent = codec->bus->card->dev; + input_dev->dev.parent = &codec->dev; input_set_drvdata(input_dev, beep); err = input_register_device(input_dev);