diff options
Diffstat (limited to 'sound/drivers/vx/vx_hwdep.c')
-rw-r--r-- | sound/drivers/vx/vx_hwdep.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/sound/drivers/vx/vx_hwdep.c b/sound/drivers/vx/vx_hwdep.c index c4993b004c42..d837783fb538 100644 --- a/sound/drivers/vx/vx_hwdep.c +++ b/sound/drivers/vx/vx_hwdep.c | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | #ifdef SND_VX_FW_LOADER | 31 | #ifdef SND_VX_FW_LOADER |
32 | 32 | ||
33 | int snd_vx_setup_firmware(vx_core_t *chip) | 33 | int snd_vx_setup_firmware(struct vx_core *chip) |
34 | { | 34 | { |
35 | static char *fw_files[VX_TYPE_NUMS][4] = { | 35 | static char *fw_files[VX_TYPE_NUMS][4] = { |
36 | [VX_TYPE_BOARD] = { | 36 | [VX_TYPE_BOARD] = { |
@@ -95,7 +95,7 @@ int snd_vx_setup_firmware(vx_core_t *chip) | |||
95 | } | 95 | } |
96 | 96 | ||
97 | /* exported */ | 97 | /* exported */ |
98 | void snd_vx_free_firmware(vx_core_t *chip) | 98 | void snd_vx_free_firmware(struct vx_core *chip) |
99 | { | 99 | { |
100 | #ifdef CONFIG_PM | 100 | #ifdef CONFIG_PM |
101 | int i; | 101 | int i; |
@@ -106,17 +106,18 @@ void snd_vx_free_firmware(vx_core_t *chip) | |||
106 | 106 | ||
107 | #else /* old style firmware loading */ | 107 | #else /* old style firmware loading */ |
108 | 108 | ||
109 | static int vx_hwdep_open(snd_hwdep_t *hw, struct file *file) | 109 | static int vx_hwdep_open(struct snd_hwdep *hw, struct file *file) |
110 | { | 110 | { |
111 | return 0; | 111 | return 0; |
112 | } | 112 | } |
113 | 113 | ||
114 | static int vx_hwdep_release(snd_hwdep_t *hw, struct file *file) | 114 | static int vx_hwdep_release(struct snd_hwdep *hw, struct file *file) |
115 | { | 115 | { |
116 | return 0; | 116 | return 0; |
117 | } | 117 | } |
118 | 118 | ||
119 | static int vx_hwdep_dsp_status(snd_hwdep_t *hw, snd_hwdep_dsp_status_t *info) | 119 | static int vx_hwdep_dsp_status(struct snd_hwdep *hw, |
120 | struct snd_hwdep_dsp_status *info) | ||
120 | { | 121 | { |
121 | static char *type_ids[VX_TYPE_NUMS] = { | 122 | static char *type_ids[VX_TYPE_NUMS] = { |
122 | [VX_TYPE_BOARD] = "vxboard", | 123 | [VX_TYPE_BOARD] = "vxboard", |
@@ -125,7 +126,7 @@ static int vx_hwdep_dsp_status(snd_hwdep_t *hw, snd_hwdep_dsp_status_t *info) | |||
125 | [VX_TYPE_VXPOCKET] = "vxpocket", | 126 | [VX_TYPE_VXPOCKET] = "vxpocket", |
126 | [VX_TYPE_VXP440] = "vxp440", | 127 | [VX_TYPE_VXP440] = "vxp440", |
127 | }; | 128 | }; |
128 | vx_core_t *vx = hw->private_data; | 129 | struct vx_core *vx = hw->private_data; |
129 | 130 | ||
130 | snd_assert(type_ids[vx->type], return -EINVAL); | 131 | snd_assert(type_ids[vx->type], return -EINVAL); |
131 | strcpy(info->id, type_ids[vx->type]); | 132 | strcpy(info->id, type_ids[vx->type]); |
@@ -147,9 +148,10 @@ static void free_fw(const struct firmware *fw) | |||
147 | } | 148 | } |
148 | } | 149 | } |
149 | 150 | ||
150 | static int vx_hwdep_dsp_load(snd_hwdep_t *hw, snd_hwdep_dsp_image_t *dsp) | 151 | static int vx_hwdep_dsp_load(struct snd_hwdep *hw, |
152 | struct snd_hwdep_dsp_image *dsp) | ||
151 | { | 153 | { |
152 | vx_core_t *vx = hw->private_data; | 154 | struct vx_core *vx = hw->private_data; |
153 | int index, err; | 155 | int index, err; |
154 | struct firmware *fw; | 156 | struct firmware *fw; |
155 | 157 | ||
@@ -216,10 +218,10 @@ static int vx_hwdep_dsp_load(snd_hwdep_t *hw, snd_hwdep_dsp_image_t *dsp) | |||
216 | 218 | ||
217 | 219 | ||
218 | /* exported */ | 220 | /* exported */ |
219 | int snd_vx_setup_firmware(vx_core_t *chip) | 221 | int snd_vx_setup_firmware(struct vx_core *chip) |
220 | { | 222 | { |
221 | int err; | 223 | int err; |
222 | snd_hwdep_t *hw; | 224 | struct snd_hwdep *hw; |
223 | 225 | ||
224 | if ((err = snd_hwdep_new(chip->card, SND_VX_HWDEP_ID, 0, &hw)) < 0) | 226 | if ((err = snd_hwdep_new(chip->card, SND_VX_HWDEP_ID, 0, &hw)) < 0) |
225 | return err; | 227 | return err; |
@@ -238,7 +240,7 @@ int snd_vx_setup_firmware(vx_core_t *chip) | |||
238 | } | 240 | } |
239 | 241 | ||
240 | /* exported */ | 242 | /* exported */ |
241 | void snd_vx_free_firmware(vx_core_t *chip) | 243 | void snd_vx_free_firmware(struct vx_core *chip) |
242 | { | 244 | { |
243 | #ifdef CONFIG_PM | 245 | #ifdef CONFIG_PM |
244 | int i; | 246 | int i; |