亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hda_local.h

?? linux 內核源代碼
?? H
字號:
/* * Universal Interface for Intel High Definition Audio Codec * * Local helper functions * * Copyright (c) 2004 Takashi Iwai <tiwai@suse.de> * *  This program is free software; you can redistribute it and/or modify it *  under the terms of the GNU General Public License as published by the Free *  Software Foundation; either version 2 of the License, or (at your option) *  any later version. * *  This program is distributed in the hope that it will be useful, but WITHOUT *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for *  more details. * *  You should have received a copy of the GNU General Public License along with *  this program; if not, write to the Free Software Foundation, Inc., 59 *  Temple Place - Suite 330, Boston, MA  02111-1307, USA. */#ifndef __SOUND_HDA_LOCAL_H#define __SOUND_HDA_LOCAL_H/* * for mixer controls */#define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \	((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19))/* mono volume with index (index=0,1,...) (channel=1,2) */#define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \	{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xcidx,  \	  .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | \	  	    SNDRV_CTL_ELEM_ACCESS_TLV_READ | \	  	    SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK, \	  .info = snd_hda_mixer_amp_volume_info, \	  .get = snd_hda_mixer_amp_volume_get, \	  .put = snd_hda_mixer_amp_volume_put, \	  .tlv = { .c = snd_hda_mixer_amp_tlv },		\	  .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }/* stereo volume with index */#define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \	HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction)/* mono volume */#define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \	HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction)/* stereo volume */#define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \	HDA_CODEC_VOLUME_MONO(xname, nid, 3, xindex, direction)/* mono mute switch with index (index=0,1,...) (channel=1,2) */#define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \	{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xcidx, \	  .info = snd_hda_mixer_amp_switch_info, \	  .get = snd_hda_mixer_amp_switch_get, \	  .put = snd_hda_mixer_amp_switch_put, \	  .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }/* stereo mute switch with index */#define HDA_CODEC_MUTE_IDX(xname, xcidx, nid, xindex, direction) \	HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, 3, xindex, direction)/* mono mute switch */#define HDA_CODEC_MUTE_MONO(xname, nid, channel, xindex, direction) \	HDA_CODEC_MUTE_MONO_IDX(xname, 0, nid, channel, xindex, direction)/* stereo mute switch */#define HDA_CODEC_MUTE(xname, nid, xindex, direction) \	HDA_CODEC_MUTE_MONO(xname, nid, 3, xindex, direction)int snd_hda_mixer_amp_volume_info(struct snd_kcontrol *kcontrol,				  struct snd_ctl_elem_info *uinfo);int snd_hda_mixer_amp_volume_get(struct snd_kcontrol *kcontrol,				 struct snd_ctl_elem_value *ucontrol);int snd_hda_mixer_amp_volume_put(struct snd_kcontrol *kcontrol,				 struct snd_ctl_elem_value *ucontrol);int snd_hda_mixer_amp_tlv(struct snd_kcontrol *kcontrol, int op_flag,			  unsigned int size, unsigned int __user *tlv);int snd_hda_mixer_amp_switch_info(struct snd_kcontrol *kcontrol,				  struct snd_ctl_elem_info *uinfo);int snd_hda_mixer_amp_switch_get(struct snd_kcontrol *kcontrol,				 struct snd_ctl_elem_value *ucontrol);int snd_hda_mixer_amp_switch_put(struct snd_kcontrol *kcontrol,				 struct snd_ctl_elem_value *ucontrol);/* lowlevel accessor with caching; use carefully */int snd_hda_codec_amp_read(struct hda_codec *codec, hda_nid_t nid, int ch,			   int direction, int index);int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int ch,			     int direction, int idx, int mask, int val);int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid,			     int dir, int idx, int mask, int val);#ifdef SND_HDA_NEEDS_RESUMEvoid snd_hda_codec_resume_amp(struct hda_codec *codec);#endif/* amp value bits */#define HDA_AMP_MUTE	0x80#define HDA_AMP_UNMUTE	0x00#define HDA_AMP_VOLMASK	0x7f/* mono switch binding multiple inputs */#define HDA_BIND_MUTE_MONO(xname, nid, channel, indices, direction) \	{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = 0,  \	  .info = snd_hda_mixer_amp_switch_info, \	  .get = snd_hda_mixer_bind_switch_get, \	  .put = snd_hda_mixer_bind_switch_put, \	  .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, indices, direction) }/* stereo switch binding multiple inputs */#define HDA_BIND_MUTE(xname,nid,indices,dir) \	HDA_BIND_MUTE_MONO(xname,nid,3,indices,dir)int snd_hda_mixer_bind_switch_get(struct snd_kcontrol *kcontrol,				  struct snd_ctl_elem_value *ucontrol);int snd_hda_mixer_bind_switch_put(struct snd_kcontrol *kcontrol,				  struct snd_ctl_elem_value *ucontrol);/* more generic bound controls */struct hda_ctl_ops {	snd_kcontrol_info_t *info;	snd_kcontrol_get_t *get;	snd_kcontrol_put_t *put;	snd_kcontrol_tlv_rw_t *tlv;};extern struct hda_ctl_ops snd_hda_bind_vol;	/* for bind-volume with TLV */extern struct hda_ctl_ops snd_hda_bind_sw;	/* for bind-switch */struct hda_bind_ctls {	struct hda_ctl_ops *ops;	long values[];};int snd_hda_mixer_bind_ctls_info(struct snd_kcontrol *kcontrol,				 struct snd_ctl_elem_info *uinfo);int snd_hda_mixer_bind_ctls_get(struct snd_kcontrol *kcontrol,				struct snd_ctl_elem_value *ucontrol);int snd_hda_mixer_bind_ctls_put(struct snd_kcontrol *kcontrol,				struct snd_ctl_elem_value *ucontrol);int snd_hda_mixer_bind_tlv(struct snd_kcontrol *kcontrol, int op_flag,			   unsigned int size, unsigned int __user *tlv);#define HDA_BIND_VOL(xname, bindrec) \	{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \	  .name = xname, \	  .access = SNDRV_CTL_ELEM_ACCESS_READWRITE |\			  SNDRV_CTL_ELEM_ACCESS_TLV_READ |\			  SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,\	  .info = snd_hda_mixer_bind_ctls_info,\	  .get =  snd_hda_mixer_bind_ctls_get,\	  .put = snd_hda_mixer_bind_ctls_put,\	  .tlv = { .c = snd_hda_mixer_bind_tlv },\	  .private_value = (long) (bindrec) }#define HDA_BIND_SW(xname, bindrec) \	{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER,\	  .name = xname, \	  .info = snd_hda_mixer_bind_ctls_info,\	  .get =  snd_hda_mixer_bind_ctls_get,\	  .put = snd_hda_mixer_bind_ctls_put,\	  .private_value = (long) (bindrec) }/* * SPDIF I/O */int snd_hda_create_spdif_out_ctls(struct hda_codec *codec, hda_nid_t nid);int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid);/* * input MUX helper */#define HDA_MAX_NUM_INPUTS	16struct hda_input_mux_item {	const char *label;	unsigned int index;};struct hda_input_mux {	unsigned int num_items;	struct hda_input_mux_item items[HDA_MAX_NUM_INPUTS];};int snd_hda_input_mux_info(const struct hda_input_mux *imux,			   struct snd_ctl_elem_info *uinfo);int snd_hda_input_mux_put(struct hda_codec *codec,			  const struct hda_input_mux *imux,			  struct snd_ctl_elem_value *ucontrol, hda_nid_t nid,			  unsigned int *cur_val);/* * Channel mode helper */struct hda_channel_mode {	int channels;	const struct hda_verb *sequence;};int snd_hda_ch_mode_info(struct hda_codec *codec,			 struct snd_ctl_elem_info *uinfo,			 const struct hda_channel_mode *chmode,			 int num_chmodes);int snd_hda_ch_mode_get(struct hda_codec *codec,			struct snd_ctl_elem_value *ucontrol,			const struct hda_channel_mode *chmode,			int num_chmodes,			int max_channels);int snd_hda_ch_mode_put(struct hda_codec *codec,			struct snd_ctl_elem_value *ucontrol,			const struct hda_channel_mode *chmode,			int num_chmodes,			int *max_channelsp);/* * Multi-channel / digital-out PCM helper */enum { HDA_FRONT, HDA_REAR, HDA_CLFE, HDA_SIDE }; /* index for dac_nidx */enum { HDA_DIG_NONE, HDA_DIG_EXCLUSIVE, HDA_DIG_ANALOG_DUP }; /* dig_out_used */struct hda_multi_out {	int num_dacs;		/* # of DACs, must be more than 1 */	hda_nid_t *dac_nids;	/* DAC list */	hda_nid_t hp_nid;	/* optional DAC for HP, 0 when not exists */	hda_nid_t extra_out_nid[3];	/* optional DACs, 0 when not exists */	hda_nid_t dig_out_nid;	/* digital out audio widget */	int max_channels;	/* currently supported analog channels */	int dig_out_used;	/* current usage of digital out (HDA_DIG_XXX) */	int no_share_stream;	/* don't share a stream with multiple pins */};int snd_hda_multi_out_dig_open(struct hda_codec *codec,			       struct hda_multi_out *mout);int snd_hda_multi_out_dig_close(struct hda_codec *codec,				struct hda_multi_out *mout);int snd_hda_multi_out_dig_prepare(struct hda_codec *codec,				  struct hda_multi_out *mout,				  unsigned int stream_tag,				  unsigned int format,				  struct snd_pcm_substream *substream);int snd_hda_multi_out_analog_open(struct hda_codec *codec,				  struct hda_multi_out *mout,				  struct snd_pcm_substream *substream);int snd_hda_multi_out_analog_prepare(struct hda_codec *codec,				     struct hda_multi_out *mout,				     unsigned int stream_tag,				     unsigned int format,				     struct snd_pcm_substream *substream);int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec,				     struct hda_multi_out *mout);/* * generic codec parser */#ifdef CONFIG_SND_HDA_GENERICint snd_hda_parse_generic_codec(struct hda_codec *codec);#elsestatic inline int snd_hda_parse_generic_codec(struct hda_codec *codec){	return -ENODEV;}#endif/* * generic proc interface */#ifdef CONFIG_PROC_FSint snd_hda_codec_proc_new(struct hda_codec *codec);#elsestatic inline int snd_hda_codec_proc_new(struct hda_codec *codec) { return 0; }#endif/* * Misc */int snd_hda_check_board_config(struct hda_codec *codec, int num_configs,			       const char **modelnames,			       const struct snd_pci_quirk *pci_list);int snd_hda_add_new_ctls(struct hda_codec *codec,			 struct snd_kcontrol_new *knew);/* * unsolicited event handler */#define HDA_UNSOL_QUEUE_SIZE	64struct hda_bus_unsolicited {	/* ring buffer */	u32 queue[HDA_UNSOL_QUEUE_SIZE * 2];	unsigned int rp, wp;	/* workqueue */	struct work_struct work;	struct hda_bus *bus;};/* * Helper for automatic ping configuration */enum {	AUTO_PIN_MIC,	AUTO_PIN_FRONT_MIC,	AUTO_PIN_LINE,	AUTO_PIN_FRONT_LINE,	AUTO_PIN_CD,	AUTO_PIN_AUX,	AUTO_PIN_LAST};enum {	AUTO_PIN_LINE_OUT,	AUTO_PIN_SPEAKER_OUT,	AUTO_PIN_HP_OUT};extern const char *auto_pin_cfg_labels[AUTO_PIN_LAST];#define AUTO_CFG_MAX_OUTS	5struct auto_pin_cfg {	int line_outs;	/* sorted in the order of Front/Surr/CLFE/Side */	hda_nid_t line_out_pins[AUTO_CFG_MAX_OUTS];	int speaker_outs;	hda_nid_t speaker_pins[AUTO_CFG_MAX_OUTS];	int hp_outs;	int line_out_type;	/* AUTO_PIN_XXX_OUT */	hda_nid_t hp_pins[AUTO_CFG_MAX_OUTS];	hda_nid_t input_pins[AUTO_PIN_LAST];	hda_nid_t dig_out_pin;	hda_nid_t dig_in_pin;};#define get_defcfg_connect(cfg) \	((cfg & AC_DEFCFG_PORT_CONN) >> AC_DEFCFG_PORT_CONN_SHIFT)#define get_defcfg_association(cfg) \	((cfg & AC_DEFCFG_DEF_ASSOC) >> AC_DEFCFG_ASSOC_SHIFT)#define get_defcfg_location(cfg) \	((cfg & AC_DEFCFG_LOCATION) >> AC_DEFCFG_LOCATION_SHIFT)#define get_defcfg_sequence(cfg) \	(cfg & AC_DEFCFG_SEQUENCE)#define get_defcfg_device(cfg) \	((cfg & AC_DEFCFG_DEVICE) >> AC_DEFCFG_DEVICE_SHIFT)int snd_hda_parse_pin_def_config(struct hda_codec *codec,				 struct auto_pin_cfg *cfg,				 hda_nid_t *ignore_nids);/* amp values */#define AMP_IN_MUTE(idx)	(0x7080 | ((idx)<<8))#define AMP_IN_UNMUTE(idx)	(0x7000 | ((idx)<<8))#define AMP_OUT_MUTE	0xb080#define AMP_OUT_UNMUTE	0xb000#define AMP_OUT_ZERO	0xb000/* pinctl values */#define PIN_IN		0x20#define PIN_VREF80	0x24#define PIN_VREF50	0x21#define PIN_OUT		0x40#define PIN_HP		0xc0#define PIN_HP_AMP	0x80/* * get widget capabilities */static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid){	if (nid < codec->start_nid ||	    nid >= codec->start_nid + codec->num_nodes)		return snd_hda_param_read(codec, nid, AC_PAR_AUDIO_WIDGET_CAP);	return codec->wcaps[nid - codec->start_nid];}int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir,			      unsigned int caps);/* * hwdep interface */int snd_hda_create_hwdep(struct hda_codec *codec);/* * power-management */#ifdef CONFIG_SND_HDA_POWER_SAVEvoid snd_hda_schedule_power_save(struct hda_codec *codec);struct hda_amp_list {	hda_nid_t nid;	unsigned char dir;	unsigned char idx;};struct hda_loopback_check {	struct hda_amp_list *amplist;	int power_on;};int snd_hda_check_amp_list_power(struct hda_codec *codec,				 struct hda_loopback_check *check,				 hda_nid_t nid);#endif /* CONFIG_SND_HDA_POWER_SAVE */#endif /* __SOUND_HDA_LOCAL_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
另类综合日韩欧美亚洲| 一本一道久久a久久精品综合蜜臀| 欧美经典一区二区| 日韩欧美国产一区二区在线播放 | 91亚洲国产成人精品一区二区三| 美国十次综合导航| 久久99精品久久久久久久久久久久 | 国产综合久久久久影院| 蜜臀91精品一区二区三区| 视频一区欧美日韩| 日韩二区在线观看| 人禽交欧美网站| 裸体在线国模精品偷拍| 国产一区二区三区黄视频| 国产一区二区三区黄视频| 成人免费看视频| 91麻豆精品秘密| 欧美理论电影在线| 欧美日韩中文另类| 精品99一区二区| 国产精品色噜噜| 亚洲同性同志一二三专区| 亚洲一区二区综合| 蜜臀久久久久久久| 国产成人免费视频| 日本乱人伦一区| 日韩欧美一二三区| 国产精品久久三| 26uuu另类欧美| 国产三区在线成人av| 亚洲视频 欧洲视频| 一区二区三区中文字幕精品精品| 综合av第一页| 欧美96一区二区免费视频| 蜜臂av日日欢夜夜爽一区| 国产乱码字幕精品高清av| 国产另类ts人妖一区二区| 成人性生交大片| 在线看日韩精品电影| 欧美疯狂做受xxxx富婆| 日韩一级高清毛片| 国产日韩欧美精品综合| 国产精品国产三级国产aⅴ无密码| 亚洲日本一区二区| 日日夜夜精品免费视频| 国产一区二区视频在线播放| 成人网页在线观看| 欧美日韩色一区| 久久久久综合网| 日韩欧美综合一区| 精品播放一区二区| 亚洲欧美日本韩国| 日韩电影在线一区二区| 国产一区二区伦理| 91福利社在线观看| 欧美精品一区二区三区蜜臀| 国产精品每日更新在线播放网址| 一区二区三区四区在线播放| 久久99国产精品免费网站| 成人综合婷婷国产精品久久蜜臀 | 99精品热视频| 777xxx欧美| 中文字幕精品一区二区精品绿巨人| 亚洲精品久久久久久国产精华液| 日本成人在线一区| 91麻豆国产精品久久| 日韩三级视频在线观看| 亚洲女人****多毛耸耸8| 久久www免费人成看片高清| 色综合激情久久| 欧美韩国一区二区| 男女男精品视频| 欧美精品久久一区二区三区| 亚洲乱码国产乱码精品精小说| 日本在线观看不卡视频| 在线免费观看日本欧美| 国产精品国产三级国产aⅴ中文| 蜜桃av一区二区三区电影| 欧美综合欧美视频| 亚洲免费三区一区二区| 国产成人精品亚洲日本在线桃色| 欧美理论片在线| 亚洲香蕉伊在人在线观| 成人av免费在线观看| 久久久久久一级片| 美女被吸乳得到大胸91| 在线不卡免费欧美| 亚洲精品精品亚洲| 91小视频免费观看| 蜜桃av一区二区在线观看| 国产精品69毛片高清亚洲| 欧美性大战xxxxx久久久| 国产精品123区| 午夜久久久影院| 麻豆精品新av中文字幕| 欧美性欧美巨大黑白大战| 亚洲最大的成人av| 91片黄在线观看| 午夜激情一区二区| 欧美色图12p| 亚洲成人av免费| 日韩一区二区三区免费看| 麻豆久久久久久| 日本一二三不卡| www.综合网.com| 亚洲成人自拍一区| 欧美日韩中文另类| 国产成人在线免费| 国产精品久久三| 色8久久人人97超碰香蕉987| 亚洲一区日韩精品中文字幕| 欧美在线999| 国产精品国产三级国产普通话99| 成人做爰69片免费看网站| 国产精品理伦片| 色哟哟一区二区在线观看| 亚洲一区二区三区四区在线免费观看| 欧美性xxxxx极品少妇| 三级一区在线视频先锋| 精品91自产拍在线观看一区| 成人av动漫网站| 亚洲第一成人在线| 久久夜色精品一区| 午夜精品一区二区三区免费视频 | 欧美一区二区女人| 国产一区999| 一区二区三区四区中文字幕| 91精品国产丝袜白色高跟鞋| 国产成人午夜99999| 一区二区三区高清| 欧美视频一区二区三区| 精品一区二区三区不卡| 中文天堂在线一区| 欧美日韩成人在线| 成人午夜激情影院| 精品无人码麻豆乱码1区2区| 国产精品久久久久久久浪潮网站| 欧美日韩一区不卡| 国产精品456露脸| 日韩国产成人精品| 国产精品视频你懂的| 在线观看亚洲精品视频| 不卡视频在线看| 国产亚洲欧美日韩俺去了| 91免费国产视频网站| 蜜臀精品一区二区三区在线观看 | 欧美美女喷水视频| 国产老妇另类xxxxx| 亚洲成年人影院| 中文字幕中文字幕中文字幕亚洲无线| 欧美女孩性生活视频| 91在线观看视频| 国产精品一区二区男女羞羞无遮挡| 椎名由奈av一区二区三区| 欧美一级一级性生活免费录像| 成人av资源在线| 国产一区二区三区精品欧美日韩一区二区三区| 亚洲综合久久av| 一区在线观看免费| 欧美成人精品1314www| 国内欧美视频一区二区| 美女视频网站黄色亚洲| 亚洲大片在线观看| 亚洲第一精品在线| 亚洲国产综合91精品麻豆| 成人免费一区二区三区视频| 精品毛片乱码1区2区3区| 欧美日韩一区三区四区| 日本韩国精品在线| 91小视频免费观看| 99热精品国产| 色菇凉天天综合网| 成人一区二区三区在线观看| 国产69精品久久久久毛片| 国产一区二区三区精品欧美日韩一区二区三区 | 亚洲一区二区视频| 自拍偷拍亚洲激情| 亚洲女性喷水在线观看一区| 一区二区三区鲁丝不卡| 亚洲精品ww久久久久久p站| 亚洲精品日日夜夜| 亚洲一区二区三区四区不卡| 亚洲超碰97人人做人人爱| 午夜视频一区二区三区| 午夜精品福利一区二区三区av| 亚洲综合视频网| 视频在线观看国产精品| 亚洲在线视频网站| 国产伦理精品不卡| 高清久久久久久| 欧美中文字幕亚洲一区二区va在线| 欧美视频日韩视频在线观看| 91蜜桃网址入口| 欧美日韩国产影片| 精品国产乱码久久| 欧美激情一二三区| 一区二区三区美女| 国产馆精品极品| 在线免费一区三区| 日韩视频在线永久播放|