diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-10-30 06:49:22 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:13 -0500 |
commit | 224a033252bba46c5c8b5df625f5e781ca138f48 (patch) | |
tree | 11bb0ad9a3bab736091c73bb46b79d42ee0ff34d /include/sound/asound_fm.h | |
parent | ceac4bf34e14d9040d16b35fd97a92d6e951ccf4 (diff) |
[ALSA] opl3 - Use hwdep for patch loading
Use the hwdep device for loading OPL2/3 patch data instead of the
messy sequencer instrument layer.
Due to this change, the sbiload program should be updated, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include/sound/asound_fm.h')
-rw-r--r-- | include/sound/asound_fm.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sound/asound_fm.h b/include/sound/asound_fm.h index 8fbcab7cc73b..c2a4b967d5be 100644 --- a/include/sound/asound_fm.h +++ b/include/sound/asound_fm.h | |||
@@ -104,6 +104,8 @@ struct snd_dm_fm_params { | |||
104 | #define SNDRV_DM_FM_IOCTL_SET_MODE _IOW('H', 0x25, int) | 104 | #define SNDRV_DM_FM_IOCTL_SET_MODE _IOW('H', 0x25, int) |
105 | /* for OPL3 only */ | 105 | /* for OPL3 only */ |
106 | #define SNDRV_DM_FM_IOCTL_SET_CONNECTION _IOW('H', 0x26, int) | 106 | #define SNDRV_DM_FM_IOCTL_SET_CONNECTION _IOW('H', 0x26, int) |
107 | /* SBI patch management */ | ||
108 | #define SNDRV_DM_FM_IOCTL_CLEAR_PATCHES _IO ('H', 0x40) | ||
107 | 109 | ||
108 | #define SNDRV_DM_FM_OSS_IOCTL_RESET 0x20 | 110 | #define SNDRV_DM_FM_OSS_IOCTL_RESET 0x20 |
109 | #define SNDRV_DM_FM_OSS_IOCTL_PLAY_NOTE 0x21 | 111 | #define SNDRV_DM_FM_OSS_IOCTL_PLAY_NOTE 0x21 |
@@ -112,4 +114,21 @@ struct snd_dm_fm_params { | |||
112 | #define SNDRV_DM_FM_OSS_IOCTL_SET_MODE 0x24 | 114 | #define SNDRV_DM_FM_OSS_IOCTL_SET_MODE 0x24 |
113 | #define SNDRV_DM_FM_OSS_IOCTL_SET_OPL 0x25 | 115 | #define SNDRV_DM_FM_OSS_IOCTL_SET_OPL 0x25 |
114 | 116 | ||
117 | /* | ||
118 | * Patch Record - fixed size for write | ||
119 | */ | ||
120 | |||
121 | #define FM_KEY_SBI "SBI\032" | ||
122 | #define FM_KEY_2OP "2OP\032" | ||
123 | #define FM_KEY_4OP "4OP\032" | ||
124 | |||
125 | struct sbi_patch { | ||
126 | unsigned char prog; | ||
127 | unsigned char bank; | ||
128 | char key[4]; | ||
129 | char name[25]; | ||
130 | char extension[7]; | ||
131 | unsigned char data[32]; | ||
132 | }; | ||
133 | |||
115 | #endif /* __SOUND_ASOUND_FM_H */ | 134 | #endif /* __SOUND_ASOUND_FM_H */ |