int snd_hda_codec_amp_write(struct hda_codec *codec, hda_nid_t nid, int ch, int direction, int idx, int val)
static int snd_hda_codec_amp_write(struct hda_codec *codec, hda_nid_t nid, int ch, int direction, int idx, int val)
int snd_hda_codec_amp_write(struct hda_codec *codec, hda_nid_t nid, int ch, int direction, int idx, int val){	struct hda_amp_info *info = get_alloc_amp_hash(codec, HDA_HASH_KEY(nid, direction, idx));	if (! info)		return 0;	get_vol_mute(codec, info, nid, ch, direction, idx);	if (info->vol[ch] == val && ! codec->in_resume)		return 0;	put_vol_mute(codec, nid, ch, direction, idx, val);	info->vol[ch] = val;	return 1;}