Lines Matching refs:sustain
140 /* Output routine for the sysfs sustain file */
147 dbg_hid("pcmidi sysfs read sustain=%u\n", pk->pm->midi_sustain);
153 /* Input routine for the sysfs sustain file */
160 unsigned sustain = 0;
162 if (sscanf(buf, "%u", &sustain) > 0 && sustain <= PCMIDI_SUSTAIN_MAX) {
163 dbg_hid("pcmidi sysfs write sustain=%u\n", sustain);
164 pk->pm->midi_sustain = sustain;
166 (0 == sustain || !pk->pm->midi_mode) ? 0 : 1;
172 static DEVICE_ATTR(sustain, S_IRUGO | S_IWUGO, show_sustain,
332 /*KEY_WWW or sustain*/
334 /* sustain on/off*/
677 pk_error("failed to create sysfs attribute sustain: error %d\n",