Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * HWDEP Interface for HD-audio codec
0004  *
0005  * Copyright (c) 2007 Takashi Iwai <tiwai@suse.de>
0006  */
0007 
0008 #ifndef __SOUND_HDA_HWDEP_H
0009 #define __SOUND_HDA_HWDEP_H
0010 
0011 #define HDA_HWDEP_VERSION   ((1 << 16) | (0 << 8) | (0 << 0)) /* 1.0.0 */
0012 
0013 /* verb */
0014 #define HDA_REG_NID_SHIFT   24
0015 #define HDA_REG_VERB_SHIFT  8
0016 #define HDA_REG_VAL_SHIFT   0
0017 #define HDA_VERB(nid,verb,param)    ((nid)<<24 | (verb)<<8 | (param))
0018 
0019 struct hda_verb_ioctl {
0020     u32 verb;   /* HDA_VERB() */
0021     u32 res;    /* response */
0022 };
0023 
0024 /*
0025  * ioctls
0026  */
0027 #define HDA_IOCTL_PVERSION      _IOR('H', 0x10, int)
0028 #define HDA_IOCTL_VERB_WRITE        _IOWR('H', 0x11, struct hda_verb_ioctl)
0029 #define HDA_IOCTL_GET_WCAP      _IOWR('H', 0x12, struct hda_verb_ioctl)
0030 
0031 #endif