atasound.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | atasound.c (a3b2004a2671455ee7aef1d9aee5a24381999ddb) |
---|---|
1/* 2 * linux/arch/m68k/atari/atasound.c 3 * 4 * ++Geert: Moved almost all stuff to linux/drivers/sound/ 5 * 6 * The author of atari_nosound, atari_mksound and atari_microwire_cmd is 7 * unknown. (++roman: That's me... :-) 8 * --- 8 unchanged lines hidden (view full) --- 17 18 19#include <linux/sched.h> 20#include <linux/timer.h> 21#include <linux/major.h> 22#include <linux/fcntl.h> 23#include <linux/errno.h> 24#include <linux/mm.h> | 1/* 2 * linux/arch/m68k/atari/atasound.c 3 * 4 * ++Geert: Moved almost all stuff to linux/drivers/sound/ 5 * 6 * The author of atari_nosound, atari_mksound and atari_microwire_cmd is 7 * unknown. (++roman: That's me... :-) 8 * --- 8 unchanged lines hidden (view full) --- 17 18 19#include <linux/sched.h> 20#include <linux/timer.h> 21#include <linux/major.h> 22#include <linux/fcntl.h> 23#include <linux/errno.h> 24#include <linux/mm.h> |
25#include <linux/module.h> |
|
25 26#include <asm/atarihw.h> 27#include <asm/system.h> 28#include <asm/irq.h> 29#include <asm/pgtable.h> 30#include <asm/atariints.h> 31 32 --- 5 unchanged lines hidden (view full) --- 38{ 39 tt_microwire.mask = 0x7ff; 40 tt_microwire.data = MW_LM1992_ADDR | cmd; 41 42 /* Busy wait for data being completely sent :-( */ 43 while( tt_microwire.mask != 0x7ff) 44 ; 45} | 26 27#include <asm/atarihw.h> 28#include <asm/system.h> 29#include <asm/irq.h> 30#include <asm/pgtable.h> 31#include <asm/atariints.h> 32 33 --- 5 unchanged lines hidden (view full) --- 39{ 40 tt_microwire.mask = 0x7ff; 41 tt_microwire.data = MW_LM1992_ADDR | cmd; 42 43 /* Busy wait for data being completely sent :-( */ 44 while( tt_microwire.mask != 0x7ff) 45 ; 46} |
47EXPORT_SYMBOL(atari_microwire_cmd); |
|
46 47 48/* PSG base frequency */ 49#define PSG_FREQ 125000 50/* PSG envelope base frequency times 10 */ 51#define PSG_ENV_FREQ_10 78125 52 53void atari_mksound (unsigned int hz, unsigned int ticks) --- 56 unchanged lines hidden --- | 48 49 50/* PSG base frequency */ 51#define PSG_FREQ 125000 52/* PSG envelope base frequency times 10 */ 53#define PSG_ENV_FREQ_10 78125 54 55void atari_mksound (unsigned int hz, unsigned int ticks) --- 56 unchanged lines hidden --- |