*参照元 [#aaac68d4] #backlinks *説明 [#e5e96075] -パス: [[linux-4.4.1/include/sound/soc.h]] -FIXME: これは何? --説明 **引数 [#yd86d431] -const unsigned char *xname -- -reg -int reg -- -shift -unsigned int shift -- -max -int max -- -invert -unsigned int invert -- -const unsigned int *tlv_array -- **返り値 [#t01713d1] -struct snd_kcontrol_new --[[linux-4.4.1/snd_kcontrol_new]] **参考 [#w82f11f0] *実装 [#q80861f2] #define SOC_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\ SNDRV_CTL_ELEM_ACCESS_READWRITE,\ .tlv.p = (tlv_array), \ .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\ .put = snd_soc_put_volsw, \ .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) } - --[[linux-4.4.1/snd_soc_info_volsw()]] --[[linux-4.4.1/snd_soc_get_volsw()]] --[[linux-4.4.1/snd_soc_put_volsw()]] --[[linux-4.4.1/SOC_SINGLE_VALUE()]] *コメント [#n532fc79]