Skip to content

Conversation

@bardliao
Copy link
Collaborator

@bardliao bardliao commented Nov 6, 2018

Currently we use snd_hdac_codec_read to set AC_VERB_SET_POWER_STATE
verb. Replace it with snd_hdac_codec_write.

Signed-off-by: Bard liao bard.liao@intel.com

*/
snd_hdac_codec_read(hdev, hdev->afg, 0, AC_VERB_SET_POWER_STATE,
AC_PWRST_D3);
snd_hdac_codec_write(hdev, hdev->afg, 0, AC_VERB_SET_POWER_STATE,
Copy link
Collaborator

@ranj063 ranj063 Nov 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bardliao the comment just above this line contradicts exactly what you're doing here. This commit explains why codec_read should be instead of codec_write() 1b377cc
Care to explain the reason for the change?

@bardliao
Copy link
Collaborator Author

bardliao commented Nov 6, 2018

Thanks @ranj063 Now I understand why it uses snd_hdac_codec_read instead of snd_hdac_codec_write. :)

@bardliao bardliao closed this Nov 6, 2018
Currently we use snd_hdac_codec_read to set AC_VERB_SET_POWER_STATE
verb. Replace it with snd_hdac_codec_write.

Signed-off-by: Bard liao <bard.liao@intel.com>
@jsarha jsarha mentioned this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants