some verbs use a 16 bits payload

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37114 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2010-06-12 14:16:30 +00:00
parent 9a0a4979d5
commit b14ae02b95
2 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ void hda_hw_stop(hda_controller* controller);
void hda_hw_uninit(hda_controller* controller);
status_t hda_send_verbs(hda_codec* codec, corb_t* verbs, uint32* responses,
uint32 count);
status_t hda_verb_write(hda_codec* codec, uint32 nid, uint32 vid, uint8 payload);
status_t hda_verb_write(hda_codec* codec, uint32 nid, uint32 vid, uint16 payload);
status_t hda_verb_read(hda_codec* codec, uint32 nid, uint32 vid, uint32 *response);
/* hda_controller.c: Stream support */

View File

@ -775,7 +775,7 @@ hda_send_verbs(hda_codec* codec, corb_t* verbs, uint32* responses, uint32 count)
status_t
hda_verb_write(hda_codec* codec, uint32 nid, uint32 vid, uint8 payload)
hda_verb_write(hda_codec* codec, uint32 nid, uint32 vid, uint16 payload)
{
corb_t verb = MAKE_VERB(codec->addr, nid, vid, payload);
return hda_send_verbs(codec, &verb, NULL, 1);