Tuna/Maguro free ril tests
Denis 'GNUtoo' Carikli
GNUtoo at no-log.org
Sat Aug 18 15:28:01 UTC 2012
Hi,
* To make tuna/maguro work with the free ril we need to remount
the /factory in rw.
* Audio seem to work without the secril-client but we need to comment
stuff such as:
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index bb2235c..2c7fe90 100755
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -730,7 +730,7 @@ static void set_incall_device(struct
tuna_audio_device *adev)
}
/* if output device isn't supported, open modem side to handset by
default */
- ril_set_call_audio_path(&adev->ril, device_type);
+ //ril_set_call_audio_path(&adev->ril, device_type);
}
static void set_input_volumes(struct tuna_audio_device *adev, int
main_mic_on,
@@ -897,7 +897,7 @@ static void select_mode(struct tuna_audio_device
*adev)
adev->devices &= ~AUDIO_DEVICE_OUT_SPEAKER;
select_output_device(adev);
start_call(adev);
- ril_set_call_clock_sync(&adev->ril, SOUND_CLOCK_START);
+ //ril_set_call_clock_sync(&adev->ril, SOUND_CLOCK_START);
adev_set_voice_volume(&adev->hw_device,
adev->voice_volume);
adev->in_call = 1;
}
@@ -2395,8 +2395,8 @@ static int adev_set_voice_volume(struct
audio_hw_device *dev, float volume)
adev->voice_volume = volume;
- if (adev->mode == AUDIO_MODE_IN_CALL)
- ril_set_call_volume(&adev->ril, SOUND_TYPE_VOICE, volume);
+// if (adev->mode == AUDIO_MODE_IN_CALL)
+ // ril_set_call_volume(&adev->ril, SOUND_TYPE_VOICE, volume);
return 0;
}
@@ -2700,10 +2700,10 @@ static int adev_open(const hw_module_t* module,
const char* name,
adev->wb_amr = 0;
/* RIL */
- ril_open(&adev->ril);
+ //ril_open(&adev->ril);
pthread_mutex_unlock(&adev->lock);
/* register callback for wideband AMR setting */
- ril_register_set_wb_amr_callback(audio_set_wb_amr_callback, (void
*)adev);
+ //ril_register_set_wb_amr_callback(audio_set_wb_amr_callback, (void
*)adev);
*device = &adev->hw_device.common;
in /device/samsung/tuna/audio.
Denis(and paulk).
More information about the Replicant
mailing list