Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1028 → Rev 1029

/drivers/audio/a5536/geode.c
9,6 → 9,8
 
#include "geode.h"
 
#define DEBUG
 
#ifdef DEBUG
#define DBG(format,...) dbgprintf(format,##__VA_ARGS__)
#else
308,9 → 310,16
return FALSE;
}
 
u16_t id7c, id7e;
 
id7c = snd_hw_CodecRead(AD1819A_VENDORID1);
id7e = snd_hw_CodecRead(AD1819A_VENDORID2);
 
dbgprintf("codec id 0x7C %x 0x7E %x\n", id7c, id7e);
 
/*Check which codec is being used */
if (snd_hw_CodecRead(AD1819A_VENDORID1) == 0x4144 &&
snd_hw_CodecRead(AD1819A_VENDORID2) == 0x5303)
if ( (id7c == 0x4144) &&
(id7e == 0x5303) )
{
geode.fAD1819A = TRUE;
/* Enable non-48kHz sample rates. */
328,10 → 337,10
}
 
/* set default volume*/
snd_hw_CodecWrite( MASTER_VOLUME, 0x0B0B);
snd_hw_CodecWrite( PCM_OUT_VOL, 0x0808);
snd_hw_CodecWrite( MASTER_VOLUME, 0x0909);
snd_hw_CodecWrite( PCM_OUT_VOL, 0x0606);
snd_hw_CodecWrite( PC_BEEP_VOLUME, 0x0000);
snd_hw_CodecWrite( PHONE_VOLUME, 0x8000);
snd_hw_CodecWrite( PHONE_VOLUME, 0x0606);
snd_hw_CodecWrite( MIC_VOLUME, 0x8048);
snd_hw_CodecWrite( LINE_IN_VOLUME, 0x0808);
snd_hw_CodecWrite( CD_VOLUME, 0x8000);
/drivers/audio/a5536/geode.lk
0,0 → 1,23
IMP
_KernelAlloc core.KernelAlloc,
_KernelFree core.KernelFree,
_CommitPages core.CommitPages,
_MapIoMem core.MapIoMem,
_GetPgAddr core.GetPgAddr,
_CreateRingBuffer core.CreateRingBuffer,
_PciApi core.PciApi,
_PciRead8 core.PciRead8,
_PciRead16 core.PciRead16,
_PciRead32 core.PciRead32,
_PciWrite8 core.PciWrite8,
_PciWrite16 core.PciWrite16,
_PciWrite32 core.PciWrite32,
_RegService core.RegService,
_AttachIntHandler core.AttachIntHandler,
_SysMsgBoardStr core.SysMsgBoardStr,
_Delay core.Delay
 
 
FIL geode.obj,
vsprintf.obj,
icompute.obj
/drivers/audio/a5536/makefile
4,12 → 4,12
CFLAGS = -c -O2 -fomit-frame-pointer -fno-builtin-printf
LDRHD = -shared -T ld.x -s --file-alignment 32
 
INCLUDES = -I ../include
INCLUDES = -I ../../include
 
HFILES:= ../include/types.h \
../include/syscall.h \
geode.h \
pci.h
HFILES:= ../../include/types.h \
../../include/syscall.h \
../../include/pci.h \
geode.h
 
SRC_DEP:=
GEODE_SRC:= amd_geode.h