[alsa-devel] [PATCH 05/18] ALSA: hda: move hda_hwdep to use hdac helpers
Vinod Koul
vinod.koul at intel.com
Tue Oct 6 17:07:42 CEST 2015
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 at intel.com>
---
sound/pci/hda/hda_hwdep.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
--
2.4.3
More information about the Alsa-devel
mailing list