提交 f2606a80 编写于 作者: T Takashi Iwai

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: NTakashi Iwai <tiwai@suse.de>
上级 4e76a883
...@@ -166,7 +166,7 @@ static int snd_hda_do_attach(struct hda_beep *beep) ...@@ -166,7 +166,7 @@ static int snd_hda_do_attach(struct hda_beep *beep)
input_dev->evbit[0] = BIT_MASK(EV_SND); input_dev->evbit[0] = BIT_MASK(EV_SND);
input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE); input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE);
input_dev->event = snd_hda_beep_event; 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); input_set_drvdata(input_dev, beep);
err = input_register_device(input_dev); err = input_register_device(input_dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册