diff options
Diffstat (limited to 'firmware/target/coldfire/iriver/audio-iriver.c')
-rw-r--r-- | firmware/target/coldfire/iriver/audio-iriver.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/firmware/target/coldfire/iriver/audio-iriver.c b/firmware/target/coldfire/iriver/audio-iriver.c index 420ca309d8..5a5e80bc46 100644 --- a/firmware/target/coldfire/iriver/audio-iriver.c +++ b/firmware/target/coldfire/iriver/audio-iriver.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | /** | 24 | /** |
25 | * Note that microphone is mono, only left value is used | 25 | * Note that microphone is mono, only left value is used |
26 | * See uda1380_set_recvol() for exact ranges. | 26 | * See audiohw_set_recvol() for exact ranges. |
27 | * | 27 | * |
28 | * @param type AUDIO_GAIN_MIC, AUDIO_GAIN_LINEIN | 28 | * @param type AUDIO_GAIN_MIC, AUDIO_GAIN_LINEIN |
29 | * | 29 | * |
@@ -31,7 +31,7 @@ | |||
31 | void audio_set_recording_gain(int left, int right, int type) | 31 | void audio_set_recording_gain(int left, int right, int type) |
32 | { | 32 | { |
33 | //logf("rcmrec: t=%d l=%d r=%d", type, left, right); | 33 | //logf("rcmrec: t=%d l=%d r=%d", type, left, right); |
34 | uda1380_set_recvol(left, right, type); | 34 | audiohw_set_recvol(left, right, type); |
35 | } /* audio_set_recording_gain */ | 35 | } /* audio_set_recording_gain */ |
36 | 36 | ||
37 | void audio_set_output_source(int source) | 37 | void audio_set_output_source(int source) |
@@ -67,8 +67,8 @@ void audio_set_source(int source, unsigned flags) | |||
67 | case AUDIO_SRC_PLAYBACK: | 67 | case AUDIO_SRC_PLAYBACK: |
68 | if (source != last_source) | 68 | if (source != last_source) |
69 | { | 69 | { |
70 | uda1380_disable_recording(); | 70 | audiohw_disable_recording(); |
71 | uda1380_set_monitor(false); | 71 | audiohw_set_monitor(false); |
72 | /* Reset PDIR2 data flow */ | 72 | /* Reset PDIR2 data flow */ |
73 | DATAINCONTROL = (1 << 9); | 73 | DATAINCONTROL = (1 << 9); |
74 | } | 74 | } |
@@ -77,8 +77,8 @@ void audio_set_source(int source, unsigned flags) | |||
77 | case AUDIO_SRC_MIC: /* recording only */ | 77 | case AUDIO_SRC_MIC: /* recording only */ |
78 | if (source != last_source) | 78 | if (source != last_source) |
79 | { | 79 | { |
80 | uda1380_enable_recording(true); /* source mic */ | 80 | audiohw_enable_recording(true); /* source mic */ |
81 | uda1380_set_monitor(false); | 81 | audiohw_set_monitor(false); |
82 | /* Int. when 6 samples in FIFO, PDIR2 src = iis1RcvData */ | 82 | /* Int. when 6 samples in FIFO, PDIR2 src = iis1RcvData */ |
83 | DATAINCONTROL = (3 << 14) | (4 << 3); | 83 | DATAINCONTROL = (3 << 14) | (4 << 3); |
84 | } | 84 | } |
@@ -87,8 +87,8 @@ void audio_set_source(int source, unsigned flags) | |||
87 | case AUDIO_SRC_LINEIN: /* recording only */ | 87 | case AUDIO_SRC_LINEIN: /* recording only */ |
88 | if (source != last_source) | 88 | if (source != last_source) |
89 | { | 89 | { |
90 | uda1380_enable_recording(false); /* source line */ | 90 | audiohw_enable_recording(false); /* source line */ |
91 | uda1380_set_monitor(false); | 91 | audiohw_set_monitor(false); |
92 | /* Int. when 6 samples in FIFO, PDIR2 src = iis1RcvData */ | 92 | /* Int. when 6 samples in FIFO, PDIR2 src = iis1RcvData */ |
93 | DATAINCONTROL = (3 << 14) | (4 << 3); | 93 | DATAINCONTROL = (3 << 14) | (4 << 3); |
94 | } | 94 | } |
@@ -98,8 +98,8 @@ void audio_set_source(int source, unsigned flags) | |||
98 | case AUDIO_SRC_SPDIF: /* recording only */ | 98 | case AUDIO_SRC_SPDIF: /* recording only */ |
99 | if (source != last_source) | 99 | if (source != last_source) |
100 | { | 100 | { |
101 | uda1380_disable_recording(); | 101 | audiohw_disable_recording(); |
102 | uda1380_set_monitor(false); | 102 | audiohw_set_monitor(false); |
103 | /* Int. when 6 samples in FIFO, PDIR2 src = ebu1RcvData */ | 103 | /* Int. when 6 samples in FIFO, PDIR2 src = ebu1RcvData */ |
104 | DATAINCONTROL = (3 << 14) | (7 << 3); | 104 | DATAINCONTROL = (3 << 14) | (7 << 3); |
105 | } | 105 | } |
@@ -108,7 +108,7 @@ void audio_set_source(int source, unsigned flags) | |||
108 | 108 | ||
109 | case AUDIO_SRC_FMRADIO: /* recording and playback */ | 109 | case AUDIO_SRC_FMRADIO: /* recording and playback */ |
110 | if (!recording) | 110 | if (!recording) |
111 | uda1380_set_recvol(0, 0, AUDIO_GAIN_LINEIN); | 111 | audiohw_set_recvol(0, 0, AUDIO_GAIN_LINEIN); |
112 | 112 | ||
113 | if (source == last_source && recording == last_recording) | 113 | if (source == last_source && recording == last_recording) |
114 | break; | 114 | break; |
@@ -127,8 +127,8 @@ void audio_set_source(int source, unsigned flags) | |||
127 | } | 127 | } |
128 | 128 | ||
129 | /* I2S recording and playback */ | 129 | /* I2S recording and playback */ |
130 | uda1380_enable_recording(false); /* source line */ | 130 | audiohw_enable_recording(false); /* source line */ |
131 | uda1380_set_monitor(!recording); | 131 | audiohw_set_monitor(!recording); |
132 | break; | 132 | break; |
133 | } /* end switch */ | 133 | } /* end switch */ |
134 | 134 | ||