Home
last modified time | relevance | path

Searched refs:octave (Results 1 – 7 of 7) sorted by relevance

/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-driver-hid-prodikeys20 What: /sys/bus/hid/drivers/prodikeys/.../octave
25 Controls the octave shift modifier in the pc-midi driver.
26 The octave can be shifted via software up/down 2 octaves.
/linux-4.1.27/drivers/hid/
Dhid-prodikeys.c198 int octave = 0; in store_octave() local
200 if (sscanf(buf, "%d", &octave) > 0 && in store_octave()
201 octave >= PCMIDI_OCTAVE_MIN && octave <= PCMIDI_OCTAVE_MAX) { in store_octave()
202 dbg_hid("pcmidi sysfs write octave=%d\n", octave); in store_octave()
203 pk->pm->midi_octave = octave; in store_octave()
209 static DEVICE_ATTR(octave, S_IRUGO | S_IWUSR | S_IWGRP, show_octave,
/linux-4.1.27/sound/oss/
Dopl3.c679 int f, octave; in freq_to_fnum() local
690 octave = 5; in freq_to_fnum()
693 octave = 0; in freq_to_fnum()
698 octave--; in freq_to_fnum()
706 octave++; in freq_to_fnum()
711 if (octave > 7) in freq_to_fnum()
712 octave = 7; in freq_to_fnum()
714 *fnum = freq * (1 << (20 - octave)) / 49716; in freq_to_fnum()
715 *block = octave; in freq_to_fnum()
Dsequencer.c1556 int note, octave, note_freq; in note_to_freq() local
1565 octave = note_num / 12; in note_to_freq()
1570 if (octave < BASE_OCTAVE) in note_to_freq()
1571 note_freq >>= (BASE_OCTAVE - octave); in note_to_freq()
1572 else if (octave > BASE_OCTAVE) in note_to_freq()
1573 note_freq <<= (octave - BASE_OCTAVE); in note_to_freq()
/linux-4.1.27/include/uapi/sound/
Dasound_fm.h72 unsigned char octave; /* 3 bits: what octave to play */ member
/linux-4.1.27/sound/drivers/opl4/
Dopl4_synth.c423 int note, pitch, octave; in snd_opl4_update_pitch() local
440 octave = pitch / 0x600 - 8; in snd_opl4_update_pitch()
444 (octave << 4) | ((pitch >> 7) & OPL4_F_NUMBER_HIGH_MASK)); in snd_opl4_update_pitch()
/linux-4.1.27/sound/drivers/opl3/
Dopl3_synth.c435 reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK; in snd_opl3_play_note()