[05/18] ALSA: hda: move hda_hwdep to use hdac helpers
diff mbox

Message ID 1444144075-28963-6-git-send-email-vinod.koul@intel.com
State New
Headers show

Commit Message

Vinod Koul Oct. 6, 2015, 3:07 p.m. UTC
Move hda_hwdep to use newly moved snd_hdac_read_codec() API

This was done using coccinelle script

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 sound/pci/hda/hda_hwdep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/sound/pci/hda/hda_hwdep.c b/sound/pci/hda/hda_hwdep.c
index 57df06e76968..359d4e54d672 100644
--- a/sound/pci/hda/hda_hwdep.c
+++ b/sound/pci/hda/hda_hwdep.c
@@ -37,8 +37,8 @@  static int verb_write_ioctl(struct hda_codec *codec,
 
 	if (get_user(verb, &arg->verb))
 		return -EFAULT;
-	res = snd_hda_codec_read(codec, verb >> 24, 0,
-				 (verb >> 8) & 0xffff, verb & 0xff);
+	res = snd_hdac_codec_read(&codec->core, verb >> 24, 0,
+				  (verb >> 8) & 0xffff, verb & 0xff);
 	if (put_user(res, &arg->res))
 		return -EFAULT;
 	return 0;