From aaaf609996bf8e5c651fcf3aa20399a27f953cbc Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Wed, 26 Nov 2008 15:38:10 +0000 Subject: Creative ZVM : cosmetics Use only UNIX line endings, remove trailing whitespace git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19232 a1c6a512-1295-4272-9138-f99709370657 --- .../arm/tms320dm320/creative-zvm/pcm-creativezvm.c | 226 ++++++++++----------- 1 file changed, 113 insertions(+), 113 deletions(-) (limited to 'firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c') diff --git a/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c b/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c index 7d372dec16..34425fa63d 100644 --- a/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c +++ b/firmware/target/arm/tms320dm320/creative-zvm/pcm-creativezvm.c @@ -1,117 +1,117 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2007 by Karl Kurbjun - * +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2007 by Karl Kurbjun + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ -#include "system.h" -#include "kernel.h" -#include "logf.h" -#include "audio.h" -#include "sound.h" -#include "file.h" -#include "dm320.h" -#include "audiohw.h" -#include "dsp-target.h" - -void pcm_play_dma_init(void) -{ - IO_CLK_O1DIV = 3; - /* Set GIO25 to CLKOUT1A */ - IO_GIO_FSEL2 |= 3; - sleep(5); - - audiohw_init(); - - audiohw_set_frequency(1); - - /* init DSP */ - dsp_init(); -} - -void pcm_postinit(void) -{ - audiohw_postinit(); - /* wake DSP */ - dsp_wake(); -} - -/* set frequency used by the audio hardware */ -void pcm_set_frequency(unsigned int frequency) -{ - int index; - - switch(frequency) - { - case SAMPR_11: - case SAMPR_22: - index = 0; - break; - default: - case SAMPR_44: - index = 1; - break; - case SAMPR_88: - index = 2; - break; - } - - audiohw_set_frequency(index); -} /* pcm_set_frequency */ - -const void * pcm_play_dma_get_peak_buffer(int *count) -{ - (void) count; - return 0; -} - -void pcm_apply_settings(void) -{ - -} - -void pcm_play_dma_start(const void *addr, size_t size) -{ - (void)addr; - (void)size; - DEBUGF("pcm_play_dma_start(0x%x, %d)", addr, size); -} - -void pcm_play_dma_stop(void) -{ - -} - -void pcm_play_lock(void) -{ - -} - -void pcm_play_unlock(void) -{ - -} - -void pcm_play_dma_pause(bool pause) -{ - (void) pause; -} - -size_t pcm_get_bytes_waiting(void) -{ - return 0; -} + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#include "system.h" +#include "kernel.h" +#include "logf.h" +#include "audio.h" +#include "sound.h" +#include "file.h" +#include "dm320.h" +#include "audiohw.h" +#include "dsp-target.h" + +void pcm_play_dma_init(void) +{ + IO_CLK_O1DIV = 3; + /* Set GIO25 to CLKOUT1A */ + IO_GIO_FSEL2 |= 3; + sleep(5); + + audiohw_init(); + + audiohw_set_frequency(1); + + /* init DSP */ + dsp_init(); +} + +void pcm_postinit(void) +{ + audiohw_postinit(); + /* wake DSP */ + dsp_wake(); +} + +/* set frequency used by the audio hardware */ +void pcm_set_frequency(unsigned int frequency) +{ + int index; + + switch(frequency) + { + case SAMPR_11: + case SAMPR_22: + index = 0; + break; + default: + case SAMPR_44: + index = 1; + break; + case SAMPR_88: + index = 2; + break; + } + + audiohw_set_frequency(index); +} /* pcm_set_frequency */ + +const void * pcm_play_dma_get_peak_buffer(int *count) +{ + (void) count; + return 0; +} + +void pcm_apply_settings(void) +{ + +} + +void pcm_play_dma_start(const void *addr, size_t size) +{ + (void)addr; + (void)size; + DEBUGF("pcm_play_dma_start(0x%x, %d)", addr, size); +} + +void pcm_play_dma_stop(void) +{ + +} + +void pcm_play_lock(void) +{ + +} + +void pcm_play_unlock(void) +{ + +} + +void pcm_play_dma_pause(bool pause) +{ + (void) pause; +} + +size_t pcm_get_bytes_waiting(void) +{ + return 0; +} -- cgit v1.2.3