Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ALSA] Remove xxx_t typedefs: SPARC DBRI

Modules: SPARC DBRI driver

Remove xxx_t typedefs from the SPARC DBRI driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Takashi Iwai and committed by
Jaroslav Kysela
475675d6 dcc94db7

+109 -109
+109 -109
sound/sparc/dbri.c
··· 299 299 }; 300 300 301 301 /* Per stream (playback or record) information */ 302 - typedef struct dbri_streaminfo { 303 - snd_pcm_substream_t *substream; 302 + struct dbri_streaminfo { 303 + struct snd_pcm_substream *substream; 304 304 u32 dvma_buffer; /* Device view of Alsa DMA buffer */ 305 305 int left; /* # of bytes left in DMA buffer */ 306 306 int size; /* Size of DMA buffer */ ··· 309 309 int left_gain; /* mixer elements */ 310 310 int right_gain; 311 311 int balance; 312 - } dbri_streaminfo_t; 312 + }; 313 313 314 314 /* This structure holds the information for both chips (DBRI & CS4215) */ 315 - typedef struct snd_dbri { 316 - snd_card_t *card; /* ALSA card */ 317 - snd_pcm_t *pcm; 315 + struct snd_dbri { 316 + struct snd_card *card; /* ALSA card */ 317 + struct snd_pcm *pcm; 318 318 319 319 int regs_size, irq; /* Needed for unload */ 320 320 struct sbus_dev *sdev; /* SBUS device info */ ··· 341 341 struct dbri_streaminfo stream_info[DBRI_NO_STREAMS]; 342 342 343 343 struct snd_dbri *next; 344 - } snd_dbri_t; 344 + }; 345 345 346 346 #define DBRI_MAX_VOLUME 63 /* Output volume */ 347 347 #define DBRI_MAX_GAIN 15 /* Input gain */ ··· 593 593 /* Return a pointer to dbri_streaminfo */ 594 594 #define DBRI_STREAM(dbri, substream) &dbri->stream_info[DBRI_STREAMNO(substream)] 595 595 596 - static snd_dbri_t *dbri_list = NULL; /* All DBRI devices */ 596 + static struct snd_dbri *dbri_list = NULL; /* All DBRI devices */ 597 597 598 598 /* 599 599 * Short data pipes transmit LSB first. The CS4215 receives MSB first. Grrr. ··· 652 652 653 653 */ 654 654 655 - static void dbri_process_interrupt_buffer(snd_dbri_t * dbri); 655 + static void dbri_process_interrupt_buffer(struct snd_dbri * dbri); 656 656 657 - enum dbri_lock_t { NoGetLock, GetLock }; 657 + enum dbri_lock { NoGetLock, GetLock }; 658 658 #define MAXLOOPS 10 659 659 660 - static volatile s32 *dbri_cmdlock(snd_dbri_t * dbri, enum dbri_lock_t get) 660 + static volatile s32 *dbri_cmdlock(struct snd_dbri * dbri, enum dbri_lock get) 661 661 { 662 662 int maxloops = MAXLOOPS; 663 663 ··· 687 687 return &dbri->dma->cmd[0]; 688 688 } 689 689 690 - static void dbri_cmdsend(snd_dbri_t * dbri, volatile s32 * cmd) 690 + static void dbri_cmdsend(struct snd_dbri * dbri, volatile s32 * cmd) 691 691 { 692 692 volatile s32 *ptr; 693 693 u32 reg; ··· 717 717 } 718 718 719 719 /* Lock must be held when calling this */ 720 - static void dbri_reset(snd_dbri_t * dbri) 720 + static void dbri_reset(struct snd_dbri * dbri) 721 721 { 722 722 int i; 723 723 ··· 732 732 } 733 733 734 734 /* Lock must not be held before calling this */ 735 - static void dbri_initialize(snd_dbri_t * dbri) 735 + static void dbri_initialize(struct snd_dbri * dbri) 736 736 { 737 737 volatile s32 *cmd; 738 738 u32 dma_addr, tmp; ··· 795 795 here interface closely with the transmit and receive interrupt code. 796 796 797 797 */ 798 - static int pipe_active(snd_dbri_t * dbri, int pipe) 798 + static int pipe_active(struct snd_dbri * dbri, int pipe) 799 799 { 800 800 return ((pipe >= 0) && (dbri->pipes[pipe].desc != -1)); 801 801 } ··· 805 805 * Called on an in-use pipe to clear anything being transmitted or received 806 806 * Lock must be held before calling this. 807 807 */ 808 - static void reset_pipe(snd_dbri_t * dbri, int pipe) 808 + static void reset_pipe(struct snd_dbri * dbri, int pipe) 809 809 { 810 810 int sdp; 811 811 int desc; ··· 838 838 } 839 839 840 840 /* FIXME: direction as an argument? */ 841 - static void setup_pipe(snd_dbri_t * dbri, int pipe, int sdp) 841 + static void setup_pipe(struct snd_dbri * dbri, int pipe, int sdp) 842 842 { 843 843 if (pipe < 0 || pipe > 31) { 844 844 printk(KERN_ERR "DBRI: setup_pipe called with illegal pipe number\n"); ··· 869 869 } 870 870 871 871 /* FIXME: direction not needed */ 872 - static void link_time_slot(snd_dbri_t * dbri, int pipe, 872 + static void link_time_slot(struct snd_dbri * dbri, int pipe, 873 873 enum in_or_out direction, int basepipe, 874 874 int length, int cycle) 875 875 { ··· 959 959 dbri_cmdsend(dbri, cmd); 960 960 } 961 961 962 - static void unlink_time_slot(snd_dbri_t * dbri, int pipe, 962 + static void unlink_time_slot(struct snd_dbri * dbri, int pipe, 963 963 enum in_or_out direction, int prevpipe, 964 964 int nextpipe) 965 965 { ··· 1003 1003 * in the low-order 8 bits, filled either MSB-first or LSB-first, 1004 1004 * depending on the settings passed to setup_pipe() 1005 1005 */ 1006 - static void xmit_fixed(snd_dbri_t * dbri, int pipe, unsigned int data) 1006 + static void xmit_fixed(struct snd_dbri * dbri, int pipe, unsigned int data) 1007 1007 { 1008 1008 volatile s32 *cmd; 1009 1009 ··· 1040 1040 dbri_cmdsend(dbri, cmd); 1041 1041 } 1042 1042 1043 - static void recv_fixed(snd_dbri_t * dbri, int pipe, volatile __u32 * ptr) 1043 + static void recv_fixed(struct snd_dbri * dbri, int pipe, volatile __u32 * ptr) 1044 1044 { 1045 1045 if (pipe < 16 || pipe > 31) { 1046 1046 printk(KERN_ERR "DBRI: recv_fixed called with illegal pipe number\n"); ··· 1072 1072 * data buffers. Buffers too large for a single descriptor will 1073 1073 * be spread across multiple descriptors. 1074 1074 */ 1075 - static int setup_descs(snd_dbri_t * dbri, int streamno, unsigned int period) 1075 + static int setup_descs(struct snd_dbri * dbri, int streamno, unsigned int period) 1076 1076 { 1077 - dbri_streaminfo_t *info = &dbri->stream_info[streamno]; 1077 + struct dbri_streaminfo *info = &dbri->stream_info[streamno]; 1078 1078 __u32 dvma_buffer; 1079 1079 int desc = 0; 1080 1080 int len; ··· 1207 1207 1208 1208 enum master_or_slave { CHImaster, CHIslave }; 1209 1209 1210 - static void reset_chi(snd_dbri_t * dbri, enum master_or_slave master_or_slave, 1210 + static void reset_chi(struct snd_dbri * dbri, enum master_or_slave master_or_slave, 1211 1211 int bits_per_frame) 1212 1212 { 1213 1213 volatile s32 *cmd; ··· 1308 1308 to the DBRI via the CHI interface and few of the DBRI's PIO pins. 1309 1309 1310 1310 */ 1311 - static void cs4215_setup_pipes(snd_dbri_t * dbri) 1311 + static void cs4215_setup_pipes(struct snd_dbri * dbri) 1312 1312 { 1313 1313 /* 1314 1314 * Data mode: ··· 1369 1369 return 0; 1370 1370 } 1371 1371 1372 - static void cs4215_setdata(snd_dbri_t * dbri, int muted) 1372 + static void cs4215_setdata(struct snd_dbri * dbri, int muted) 1373 1373 { 1374 1374 if (muted) { 1375 1375 dbri->mm.data[0] |= 63; ··· 1378 1378 dbri->mm.data[3] &= ~15; 1379 1379 } else { 1380 1380 /* Start by setting the playback attenuation. */ 1381 - dbri_streaminfo_t *info = &dbri->stream_info[DBRI_PLAY]; 1381 + struct dbri_streaminfo *info = &dbri->stream_info[DBRI_PLAY]; 1382 1382 int left_gain = info->left_gain % 64; 1383 1383 int right_gain = info->right_gain % 64; 1384 1384 ··· 1409 1409 /* 1410 1410 * Set the CS4215 to data mode. 1411 1411 */ 1412 - static void cs4215_open(snd_dbri_t * dbri) 1412 + static void cs4215_open(struct snd_dbri * dbri) 1413 1413 { 1414 1414 int data_width; 1415 1415 u32 tmp; ··· 1471 1471 /* 1472 1472 * Send the control information (i.e. audio format) 1473 1473 */ 1474 - static int cs4215_setctrl(snd_dbri_t * dbri) 1474 + static int cs4215_setctrl(struct snd_dbri * dbri) 1475 1475 { 1476 1476 int i, val; 1477 1477 u32 tmp; ··· 1570 1570 * As part of the process we resend the settings for the data 1571 1571 * timeslots as well. 1572 1572 */ 1573 - static int cs4215_prepare(snd_dbri_t * dbri, unsigned int rate, 1573 + static int cs4215_prepare(struct snd_dbri * dbri, unsigned int rate, 1574 1574 snd_pcm_format_t format, unsigned int channels) 1575 1575 { 1576 1576 int freq_idx; ··· 1628 1628 /* 1629 1629 * 1630 1630 */ 1631 - static int cs4215_init(snd_dbri_t * dbri) 1631 + static int cs4215_init(struct snd_dbri * dbri) 1632 1632 { 1633 1633 u32 reg2 = sbus_readl(dbri->regs + REG2); 1634 1634 dprintk(D_MM, "cs4215_init: reg2=0x%x\n", reg2); ··· 1697 1697 */ 1698 1698 static void xmit_descs(unsigned long data) 1699 1699 { 1700 - snd_dbri_t *dbri = (snd_dbri_t *) data; 1701 - dbri_streaminfo_t *info; 1700 + struct snd_dbri *dbri = (struct snd_dbri *) data; 1701 + struct dbri_streaminfo *info; 1702 1702 volatile s32 *cmd; 1703 1703 unsigned long flags; 1704 1704 int first_td; ··· 1780 1780 * done by the xmit_descs() tasklet above since that could take longer. 1781 1781 */ 1782 1782 1783 - static void transmission_complete_intr(snd_dbri_t * dbri, int pipe) 1783 + static void transmission_complete_intr(struct snd_dbri * dbri, int pipe) 1784 1784 { 1785 - dbri_streaminfo_t *info; 1785 + struct dbri_streaminfo *info; 1786 1786 int td; 1787 1787 int status; 1788 1788 ··· 1830 1830 snd_pcm_period_elapsed(info->substream); 1831 1831 } 1832 1832 1833 - static void reception_complete_intr(snd_dbri_t * dbri, int pipe) 1833 + static void reception_complete_intr(struct snd_dbri * dbri, int pipe) 1834 1834 { 1835 - dbri_streaminfo_t *info; 1835 + struct dbri_streaminfo *info; 1836 1836 int rd = dbri->pipes[pipe].desc; 1837 1837 s32 status; 1838 1838 ··· 1874 1874 snd_pcm_period_elapsed(info->substream); 1875 1875 } 1876 1876 1877 - static void dbri_process_one_interrupt(snd_dbri_t * dbri, int x) 1877 + static void dbri_process_one_interrupt(struct snd_dbri * dbri, int x) 1878 1878 { 1879 1879 int val = D_INTR_GETVAL(x); 1880 1880 int channel = D_INTR_GETCHAN(x); ··· 1950 1950 * order is important since we might recurse back into this function 1951 1951 * and need to make sure the pointer has been advanced first. 1952 1952 */ 1953 - static void dbri_process_interrupt_buffer(snd_dbri_t * dbri) 1953 + static void dbri_process_interrupt_buffer(struct snd_dbri * dbri) 1954 1954 { 1955 1955 s32 x; 1956 1956 ··· 1969 1969 static irqreturn_t snd_dbri_interrupt(int irq, void *dev_id, 1970 1970 struct pt_regs *regs) 1971 1971 { 1972 - snd_dbri_t *dbri = dev_id; 1972 + struct snd_dbri *dbri = dev_id; 1973 1973 static int errcnt = 0; 1974 1974 int x; 1975 1975 ··· 2030 2030 /**************************************************************************** 2031 2031 PCM Interface 2032 2032 ****************************************************************************/ 2033 - static snd_pcm_hardware_t snd_dbri_pcm_hw = { 2033 + static struct snd_pcm_hardware snd_dbri_pcm_hw = { 2034 2034 .info = (SNDRV_PCM_INFO_MMAP | 2035 2035 SNDRV_PCM_INFO_INTERLEAVED | 2036 2036 SNDRV_PCM_INFO_BLOCK_TRANSFER | ··· 2051 2051 .periods_max = 1024, 2052 2052 }; 2053 2053 2054 - static int snd_dbri_open(snd_pcm_substream_t * substream) 2054 + static int snd_dbri_open(struct snd_pcm_substream *substream) 2055 2055 { 2056 - snd_dbri_t *dbri = snd_pcm_substream_chip(substream); 2057 - snd_pcm_runtime_t *runtime = substream->runtime; 2058 - dbri_streaminfo_t *info = DBRI_STREAM(dbri, substream); 2056 + struct snd_dbri *dbri = snd_pcm_substream_chip(substream); 2057 + struct snd_pcm_runtime *runtime = substream->runtime; 2058 + struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); 2059 2059 unsigned long flags; 2060 2060 2061 2061 dprintk(D_USR, "open audio output.\n"); ··· 2074 2074 return 0; 2075 2075 } 2076 2076 2077 - static int snd_dbri_close(snd_pcm_substream_t * substream) 2077 + static int snd_dbri_close(struct snd_pcm_substream *substream) 2078 2078 { 2079 - snd_dbri_t *dbri = snd_pcm_substream_chip(substream); 2080 - dbri_streaminfo_t *info = DBRI_STREAM(dbri, substream); 2079 + struct snd_dbri *dbri = snd_pcm_substream_chip(substream); 2080 + struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); 2081 2081 2082 2082 dprintk(D_USR, "close audio output.\n"); 2083 2083 info->substream = NULL; ··· 2087 2087 return 0; 2088 2088 } 2089 2089 2090 - static int snd_dbri_hw_params(snd_pcm_substream_t * substream, 2091 - snd_pcm_hw_params_t * hw_params) 2090 + static int snd_dbri_hw_params(struct snd_pcm_substream *substream, 2091 + struct snd_pcm_hw_params *hw_params) 2092 2092 { 2093 - snd_pcm_runtime_t *runtime = substream->runtime; 2094 - snd_dbri_t *dbri = snd_pcm_substream_chip(substream); 2095 - dbri_streaminfo_t *info = DBRI_STREAM(dbri, substream); 2093 + struct snd_pcm_runtime *runtime = substream->runtime; 2094 + struct snd_dbri *dbri = snd_pcm_substream_chip(substream); 2095 + struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); 2096 2096 int direction; 2097 2097 int ret; 2098 2098 ··· 2129 2129 return 0; 2130 2130 } 2131 2131 2132 - static int snd_dbri_hw_free(snd_pcm_substream_t * substream) 2132 + static int snd_dbri_hw_free(struct snd_pcm_substream *substream) 2133 2133 { 2134 - snd_dbri_t *dbri = snd_pcm_substream_chip(substream); 2135 - dbri_streaminfo_t *info = DBRI_STREAM(dbri, substream); 2134 + struct snd_dbri *dbri = snd_pcm_substream_chip(substream); 2135 + struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); 2136 2136 int direction; 2137 2137 dprintk(D_USR, "hw_free.\n"); 2138 2138 ··· 2153 2153 return snd_pcm_lib_free_pages(substream); 2154 2154 } 2155 2155 2156 - static int snd_dbri_prepare(snd_pcm_substream_t * substream) 2156 + static int snd_dbri_prepare(struct snd_pcm_substream *substream) 2157 2157 { 2158 - snd_dbri_t *dbri = snd_pcm_substream_chip(substream); 2159 - dbri_streaminfo_t *info = DBRI_STREAM(dbri, substream); 2160 - snd_pcm_runtime_t *runtime = substream->runtime; 2158 + struct snd_dbri *dbri = snd_pcm_substream_chip(substream); 2159 + struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); 2160 + struct snd_pcm_runtime *runtime = substream->runtime; 2161 2161 int ret; 2162 2162 2163 2163 info->size = snd_pcm_lib_buffer_bytes(substream); ··· 2184 2184 return ret; 2185 2185 } 2186 2186 2187 - static int snd_dbri_trigger(snd_pcm_substream_t * substream, int cmd) 2187 + static int snd_dbri_trigger(struct snd_pcm_substream *substream, int cmd) 2188 2188 { 2189 - snd_dbri_t *dbri = snd_pcm_substream_chip(substream); 2190 - dbri_streaminfo_t *info = DBRI_STREAM(dbri, substream); 2189 + struct snd_dbri *dbri = snd_pcm_substream_chip(substream); 2190 + struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); 2191 2191 int ret = 0; 2192 2192 2193 2193 switch (cmd) { ··· 2211 2211 return ret; 2212 2212 } 2213 2213 2214 - static snd_pcm_uframes_t snd_dbri_pointer(snd_pcm_substream_t * substream) 2214 + static snd_pcm_uframes_t snd_dbri_pointer(struct snd_pcm_substream *substream) 2215 2215 { 2216 - snd_dbri_t *dbri = snd_pcm_substream_chip(substream); 2217 - dbri_streaminfo_t *info = DBRI_STREAM(dbri, substream); 2216 + struct snd_dbri *dbri = snd_pcm_substream_chip(substream); 2217 + struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); 2218 2218 snd_pcm_uframes_t ret; 2219 2219 2220 2220 ret = bytes_to_frames(substream->runtime, info->offset) ··· 2224 2224 return ret; 2225 2225 } 2226 2226 2227 - static snd_pcm_ops_t snd_dbri_ops = { 2227 + static struct snd_pcm_ops snd_dbri_ops = { 2228 2228 .open = snd_dbri_open, 2229 2229 .close = snd_dbri_close, 2230 2230 .ioctl = snd_pcm_lib_ioctl, ··· 2235 2235 .pointer = snd_dbri_pointer, 2236 2236 }; 2237 2237 2238 - static int __devinit snd_dbri_pcm(snd_dbri_t * dbri) 2238 + static int __devinit snd_dbri_pcm(struct snd_dbri * dbri) 2239 2239 { 2240 - snd_pcm_t *pcm; 2240 + struct snd_pcm *pcm; 2241 2241 int err; 2242 2242 2243 2243 if ((err = snd_pcm_new(dbri->card, ··· 2270 2270 Mixer interface 2271 2271 *****************************************************************************/ 2272 2272 2273 - static int snd_cs4215_info_volume(snd_kcontrol_t * kcontrol, 2274 - snd_ctl_elem_info_t * uinfo) 2273 + static int snd_cs4215_info_volume(struct snd_kcontrol *kcontrol, 2274 + struct snd_ctl_elem_info *uinfo) 2275 2275 { 2276 2276 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 2277 2277 uinfo->count = 2; ··· 2284 2284 return 0; 2285 2285 } 2286 2286 2287 - static int snd_cs4215_get_volume(snd_kcontrol_t * kcontrol, 2288 - snd_ctl_elem_value_t * ucontrol) 2287 + static int snd_cs4215_get_volume(struct snd_kcontrol *kcontrol, 2288 + struct snd_ctl_elem_value *ucontrol) 2289 2289 { 2290 - snd_dbri_t *dbri = snd_kcontrol_chip(kcontrol); 2291 - dbri_streaminfo_t *info; 2290 + struct snd_dbri *dbri = snd_kcontrol_chip(kcontrol); 2291 + struct dbri_streaminfo *info; 2292 2292 snd_assert(dbri != NULL, return -EINVAL); 2293 2293 info = &dbri->stream_info[kcontrol->private_value]; 2294 2294 snd_assert(info != NULL, return -EINVAL); ··· 2298 2298 return 0; 2299 2299 } 2300 2300 2301 - static int snd_cs4215_put_volume(snd_kcontrol_t * kcontrol, 2302 - snd_ctl_elem_value_t * ucontrol) 2301 + static int snd_cs4215_put_volume(struct snd_kcontrol *kcontrol, 2302 + struct snd_ctl_elem_value *ucontrol) 2303 2303 { 2304 - snd_dbri_t *dbri = snd_kcontrol_chip(kcontrol); 2305 - dbri_streaminfo_t *info = &dbri->stream_info[kcontrol->private_value]; 2304 + struct snd_dbri *dbri = snd_kcontrol_chip(kcontrol); 2305 + struct dbri_streaminfo *info = &dbri->stream_info[kcontrol->private_value]; 2306 2306 unsigned long flags; 2307 2307 int changed = 0; 2308 2308 ··· 2329 2329 return changed; 2330 2330 } 2331 2331 2332 - static int snd_cs4215_info_single(snd_kcontrol_t * kcontrol, 2333 - snd_ctl_elem_info_t * uinfo) 2332 + static int snd_cs4215_info_single(struct snd_kcontrol *kcontrol, 2333 + struct snd_ctl_elem_info *uinfo) 2334 2334 { 2335 2335 int mask = (kcontrol->private_value >> 16) & 0xff; 2336 2336 ··· 2342 2342 return 0; 2343 2343 } 2344 2344 2345 - static int snd_cs4215_get_single(snd_kcontrol_t * kcontrol, 2346 - snd_ctl_elem_value_t * ucontrol) 2345 + static int snd_cs4215_get_single(struct snd_kcontrol *kcontrol, 2346 + struct snd_ctl_elem_value *ucontrol) 2347 2347 { 2348 - snd_dbri_t *dbri = snd_kcontrol_chip(kcontrol); 2348 + struct snd_dbri *dbri = snd_kcontrol_chip(kcontrol); 2349 2349 int elem = kcontrol->private_value & 0xff; 2350 2350 int shift = (kcontrol->private_value >> 8) & 0xff; 2351 2351 int mask = (kcontrol->private_value >> 16) & 0xff; ··· 2367 2367 return 0; 2368 2368 } 2369 2369 2370 - static int snd_cs4215_put_single(snd_kcontrol_t * kcontrol, 2371 - snd_ctl_elem_value_t * ucontrol) 2370 + static int snd_cs4215_put_single(struct snd_kcontrol *kcontrol, 2371 + struct snd_ctl_elem_value *ucontrol) 2372 2372 { 2373 - snd_dbri_t *dbri = snd_kcontrol_chip(kcontrol); 2373 + struct snd_dbri *dbri = snd_kcontrol_chip(kcontrol); 2374 2374 unsigned long flags; 2375 2375 int elem = kcontrol->private_value & 0xff; 2376 2376 int shift = (kcontrol->private_value >> 8) & 0xff; ··· 2425 2425 .get = snd_cs4215_get_single, .put = snd_cs4215_put_single, \ 2426 2426 .private_value = entry | (shift << 8) | (mask << 16) | (invert << 24) }, 2427 2427 2428 - static snd_kcontrol_new_t dbri_controls[] __devinitdata = { 2428 + static struct snd_kcontrol_new dbri_controls[] __devinitdata = { 2429 2429 { 2430 2430 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 2431 2431 .name = "Playback Volume", ··· 2452 2452 CS4215_SINGLE("Mic boost", 4, 4, 1, 1) 2453 2453 }; 2454 2454 2455 - #define NUM_CS4215_CONTROLS (sizeof(dbri_controls)/sizeof(snd_kcontrol_new_t)) 2455 + #define NUM_CS4215_CONTROLS (sizeof(dbri_controls)/sizeof(struct snd_kcontrol_new)) 2456 2456 2457 - static int __init snd_dbri_mixer(snd_dbri_t * dbri) 2457 + static int __init snd_dbri_mixer(struct snd_dbri * dbri) 2458 2458 { 2459 - snd_card_t *card; 2459 + struct snd_card *card; 2460 2460 int idx, err; 2461 2461 2462 2462 snd_assert(dbri != NULL && dbri->card != NULL, return -EINVAL); ··· 2482 2482 /**************************************************************************** 2483 2483 /proc interface 2484 2484 ****************************************************************************/ 2485 - static void dbri_regs_read(snd_info_entry_t * entry, snd_info_buffer_t * buffer) 2485 + static void dbri_regs_read(struct snd_info_entry * entry, struct snd_info_buffer *buffer) 2486 2486 { 2487 - snd_dbri_t *dbri = entry->private_data; 2487 + struct snd_dbri *dbri = entry->private_data; 2488 2488 2489 2489 snd_iprintf(buffer, "REG0: 0x%x\n", sbus_readl(dbri->regs + REG0)); 2490 2490 snd_iprintf(buffer, "REG2: 0x%x\n", sbus_readl(dbri->regs + REG2)); ··· 2493 2493 } 2494 2494 2495 2495 #ifdef DBRI_DEBUG 2496 - static void dbri_debug_read(snd_info_entry_t * entry, 2497 - snd_info_buffer_t * buffer) 2496 + static void dbri_debug_read(struct snd_info_entry * entry, 2497 + struct snd_info_buffer *buffer) 2498 2498 { 2499 - snd_dbri_t *dbri = entry->private_data; 2499 + struct snd_dbri *dbri = entry->private_data; 2500 2500 int pipe; 2501 2501 snd_iprintf(buffer, "debug=%d\n", dbri_debug); 2502 2502 ··· 2516 2516 } 2517 2517 #endif 2518 2518 2519 - void snd_dbri_proc(snd_dbri_t * dbri) 2519 + void snd_dbri_proc(struct snd_dbri * dbri) 2520 2520 { 2521 - snd_info_entry_t *entry; 2521 + struct snd_info_entry *entry; 2522 2522 int err; 2523 2523 2524 2524 err = snd_card_proc_new(dbri->card, "regs", &entry); ··· 2536 2536 **************************** Initialization ******************************** 2537 2537 **************************************************************************** 2538 2538 */ 2539 - static void snd_dbri_free(snd_dbri_t * dbri); 2539 + static void snd_dbri_free(struct snd_dbri * dbri); 2540 2540 2541 - static int __init snd_dbri_create(snd_card_t * card, 2541 + static int __init snd_dbri_create(struct snd_card *card, 2542 2542 struct sbus_dev *sdev, 2543 2543 struct linux_prom_irqs *irq, int dev) 2544 2544 { 2545 - snd_dbri_t *dbri = card->private_data; 2545 + struct snd_dbri *dbri = card->private_data; 2546 2546 int err; 2547 2547 2548 2548 spin_lock_init(&dbri->lock); ··· 2593 2593 return 0; 2594 2594 } 2595 2595 2596 - static void snd_dbri_free(snd_dbri_t * dbri) 2596 + static void snd_dbri_free(struct snd_dbri * dbri) 2597 2597 { 2598 2598 dprintk(D_GEN, "snd_dbri_free\n"); 2599 2599 dbri_reset(dbri); ··· 2611 2611 2612 2612 static int __init dbri_attach(int prom_node, struct sbus_dev *sdev) 2613 2613 { 2614 - snd_dbri_t *dbri; 2614 + struct snd_dbri *dbri; 2615 2615 struct linux_prom_irqs irq; 2616 2616 struct resource *rp; 2617 - snd_card_t *card; 2617 + struct snd_card *card; 2618 2618 static int dev = 0; 2619 2619 int err; 2620 2620 ··· 2638 2638 } 2639 2639 2640 2640 card = snd_card_new(index[dev], id[dev], THIS_MODULE, 2641 - sizeof(snd_dbri_t)); 2641 + sizeof(struct snd_dbri)); 2642 2642 if (card == NULL) 2643 2643 return -ENOMEM; 2644 2644 ··· 2654 2654 return err; 2655 2655 } 2656 2656 2657 - dbri = (snd_dbri_t *) card->private_data; 2657 + dbri = card->private_data; 2658 2658 if ((err = snd_dbri_pcm(dbri)) < 0) 2659 2659 goto _err; 2660 2660 ··· 2709 2709 2710 2710 static void __exit dbri_exit(void) 2711 2711 { 2712 - snd_dbri_t *this = dbri_list; 2712 + struct snd_dbri *this = dbri_list; 2713 2713 2714 2714 while (this != NULL) { 2715 - snd_dbri_t *next = this->next; 2716 - snd_card_t *card = this->card; 2715 + struct snd_dbri *next = this->next; 2716 + struct snd_card *card = this->card; 2717 2717 2718 2718 snd_dbri_free(this); 2719 2719 snd_card_free(card);