mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Quick hack to make the application compile for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9160 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7664a4f7e0
commit
8b61dd1cc5
1 changed files with 9 additions and 1 deletions
|
@ -49,7 +49,7 @@
|
|||
#include "button.h"
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_UDA1380
|
||||
#ifdef CPU_COLDFIRE
|
||||
|
||||
#ifdef HAVE_SPDIF_OUT
|
||||
#define EBU_DEFPARM ((7 << 12) | (3 << 8) | (1 << 5) | (5 << 2))
|
||||
|
@ -114,16 +114,22 @@ void pcm_set_frequency(unsigned int frequency)
|
|||
{
|
||||
case 11025:
|
||||
pcm_freq = 0x4;
|
||||
#ifdef HAVE_UDA1380
|
||||
uda1380_set_nsorder(3);
|
||||
#endif
|
||||
break;
|
||||
case 22050:
|
||||
pcm_freq = 0x6;
|
||||
#ifdef HAVE_UDA1380
|
||||
uda1380_set_nsorder(3);
|
||||
#endif
|
||||
break;
|
||||
case 44100:
|
||||
default:
|
||||
pcm_freq = 0xC;
|
||||
#ifdef HAVE_UDA1380
|
||||
uda1380_set_nsorder(5);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +160,9 @@ size_t pcm_get_bytes_waiting(void)
|
|||
|
||||
void pcm_mute(bool mute)
|
||||
{
|
||||
#ifdef HAVE_UDA1380
|
||||
uda1380_mute(mute);
|
||||
#endif
|
||||
if (mute)
|
||||
sleep(HZ/16);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue