You have to send email to the author
define stac92xx_clfe_switch_info snd_ctl_boolean_mono_info - -static int stac92xx_clfe_switch_get(struct snd_kcontrol *kcontrol, - struct snd_ctl_elem_value *ucontrol) -{ - struct hda_codec *codec = snd_kcontrol_chip(kcontrol); - struct sigmatel_spec *spec = codec->spec; - - ucontrol->value.integer.value[0] = spec->clfe_swap; - return 0; -} - -static int stac92xx_clfe_switch_put(struct snd_kcontrol *kcontrol, - struct snd_ctl_elem_value *ucontrol) -{ - struct hda_codec *codec = snd_kcontrol_chip(kcontrol); - struct sigmatel_spec *spec = codec->spec; - hda_nid_t nid = kcontrol->private_value & 0xff; - unsigned int val = !!ucontrol->value.integer.value[0]; - - if (spec->clfe_swap == val) - return 0; - - spec->clfe_swap = val; - - snd_hda_codec_write_cache(codec, nid, 0, AC_VERB_SET_EAPD_BTLENABLE, - spec->clfe_swap ? 0x4 : 0x0); - - return 1; -} -
You have to send email to the author
define stac92xx_ clfe_switch_ info snd_ctl_ boolean_ mono_info clfe_switch_ get(struct snd_kcontrol *kcontrol, chip(kcontrol) ; >value. integer. value[0] = spec->clfe_swap; clfe_switch_ put(struct snd_kcontrol *kcontrol, chip(kcontrol) ; >private_ value & 0xff; >value. integer. value[0] ; codec_write_ cache(codec, nid, 0, AC_VERB_ SET_EAPD_ BTLENABLE,
-
-static int stac92xx_
- struct snd_ctl_elem_value *ucontrol)
-{
- struct hda_codec *codec = snd_kcontrol_
- struct sigmatel_spec *spec = codec->spec;
-
- ucontrol-
- return 0;
-}
-
-static int stac92xx_
- struct snd_ctl_elem_value *ucontrol)
-{
- struct hda_codec *codec = snd_kcontrol_
- struct sigmatel_spec *spec = codec->spec;
- hda_nid_t nid = kcontrol-
- unsigned int val = !!ucontrol-
-
- if (spec->clfe_swap == val)
- return 0;
-
- spec->clfe_swap = val;
-
- snd_hda_
- spec->clfe_swap ? 0x4 : 0x0);
-
- return 1;
-}
-