diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-06 10:50:40 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-06 10:50:40 -0500 |
commit | 33fa35ed0d7e8996cc68cc2ffc21f12b38fa03c1 (patch) | |
tree | 06edbce704c6d99034f51ce591f1fbaf93fcc1b3 /sound/pci/hda/hda_codec.h | |
parent | c238b4f4038e0e49bb241640610584a088b268b1 (diff) |
ALSA: hda - simplify hda_bus ops callbacks
The hda_bus ops callback take struct hda_bus pointer.
Also, the command callback takes the composed command word, instead of
each small bits in arguments.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index c5f91c918d19..a73f0eb99283 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h | |||
@@ -556,17 +556,17 @@ typedef u16 hda_nid_t; | |||
556 | /* bus operators */ | 556 | /* bus operators */ |
557 | struct hda_bus_ops { | 557 | struct hda_bus_ops { |
558 | /* send a single command */ | 558 | /* send a single command */ |
559 | int (*command)(struct hda_codec *codec, hda_nid_t nid, int direct, | 559 | int (*command)(struct hda_bus *bus, unsigned int cmd); |
560 | unsigned int verb, unsigned int parm); | ||
561 | /* get a response from the last command */ | 560 | /* get a response from the last command */ |
562 | unsigned int (*get_response)(struct hda_codec *codec); | 561 | unsigned int (*get_response)(struct hda_bus *bus); |
563 | /* free the private data */ | 562 | /* free the private data */ |
564 | void (*private_free)(struct hda_bus *); | 563 | void (*private_free)(struct hda_bus *); |
565 | /* attach a PCM stream */ | 564 | /* attach a PCM stream */ |
566 | int (*attach_pcm)(struct hda_codec *codec, struct hda_pcm *pcm); | 565 | int (*attach_pcm)(struct hda_bus *bus, struct hda_codec *codec, |
566 | struct hda_pcm *pcm); | ||
567 | #ifdef CONFIG_SND_HDA_POWER_SAVE | 567 | #ifdef CONFIG_SND_HDA_POWER_SAVE |
568 | /* notify power-up/down from codec to controller */ | 568 | /* notify power-up/down from codec to controller */ |
569 | void (*pm_notify)(struct hda_codec *codec); | 569 | void (*pm_notify)(struct hda_bus *bus); |
570 | #endif | 570 | #endif |
571 | }; | 571 | }; |
572 | 572 | ||