Skip to content

Commit

Permalink
ALSA: hda - Make codec object as a parent for input beep devices
Browse files Browse the repository at this point in the history
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 <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Feb 27, 2014
1 parent 4e76a88 commit f2606a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_beep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f2606a8

Please sign in to comment.