[Gta04-owner] [QtMoko] no sound during call (GTA04a3, QtMv48)

Boudewijn wankelwankel at yahoo.com
Sun Oct 7 00:44:12 CEST 2012


Hi list,

I'm still trying to get sound one or the other way during a call. Things 
actually degraded over time: at first I only did not have sound from QtMoko to 
the other phone, but by now I can't hear the other side either. 

On a side note: the hardware seems fine. Last week I ran the HW-validation 
script in the HW-validation distro, with no alarming irregularities (there 
were one or two not-oks, didn't seem related. No log: I intended to rerun the 
test after setting it up besides QtMoko on the SD card). At least the 
bluetooth UART has been set to 3M. I could record and play back sound.

Booting QtMoko I have no problems while listening to music. Mplayer via SSH 
can play an mp3 for example, and the QtMoko-GUI-players also can.

I have trouble recording any sound. Switching alsa states sometimes generates 
a pulse (you'll probably know what I mean; the sound as a fly flying into the 
window: PTZzzz). (Not sure its related: using voicenotes there is nothing at 
all. Not even silence: starting a record creates a file of 44 bytes, and 
nothing more.)

When a call is started, none of the choices "Earpiece" or "Speaker" is 
selected. If I use alsactl to switch to the earpiece-state, there's an error 
in the log saying that's not possible:
Oct  6 01:07:13 neo kernel: [ 1157.022979] twl4030-codec twl4030-codec: 
operation mode cannot be changed on-the-fly

Changing the state via the radiobutton in the dialer does not give such an 
error:
Oct  6 01:07:23 neo Qtopia: AudioState :  Finding highest priority state for 
domain: "Phone" and capability: 2 
Oct  6 01:07:23 neo Qtopia: AudioState :  AudioState found was: 
QAudioStateInfo( true , "Phone" , "PhoneEarpiece" , "Earpiece" , 100 ) 
Oct  6 01:07:23 neo Qtopia: AudioState :  SpeakerAudioState::leave() 
Oct  6 01:07:23 neo Qtopia: AudioState :  EarpieceAudioState::enter() isPhone 
true 
Oct  6 01:07:23 neo Qtopia: AudioState :  alsactl  ("-f", 
"/opt/qtmoko/etc/alsa/gsmearpiece.state", "restore") 

The log for a test call is below here. I logged the three audio categories: 
audio input, audio output and audio state.

My device is GTA04a3 (so software routing), QtMoko is v48 (thanks all, it 
looks very nice and, apart from this issue, works great. Especially GPRS/UMTS 
is very quickly enabled: the status does not even touch "pending", but becomes 
online instantly on the press of "start")

Is there something that I can do to continue troubleshooting?

Thanks in advance!

Best regards,

Boudewijn

   
root at neo:/var/log# tail -f /var/log/syslog 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  can mmap = 1 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  can pause = 1 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  can resume = 1 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  can sync start = 0 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  frames to write out =  882  ( 3528 
) bytes 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  write out = 3528 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  frames to write out =  882  ( 3528 
) bytes 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  write out = 3528 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  frames to write out =  882  ( 3528 
) bytes 
Oct  6 01:06:03 neo Qtopia: QAudioOutput :  write out = 3528 


Oct  6 01:06:53 neo Qtopia: QAudioOutput :  frames to write out =  4410  ( 
17640 ) bytes 
Oct  6 01:07:03 neo Qtopia: QAudioOutput :  write out = 7056 
Oct  6 01:07:13 neo kernel: [ 1157.022979] twl4030-codec twl4030-codec: 
operation mode cannot be changed on-the-fly
Oct  6 01:07:13 neo Qtopia: QAudioOutput :  write out = 2560 
Oct  6 01:07:23 neo kernel: [ 1167.391662] omap_dma: You need to stop the DMA 
channels before unlinking
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  err =  -5 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  suspend or I/O err 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  err =  -77 
Oct  6 01:07:23 neo last message repeated 4 times
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  failing to write, close() and re-
open() to try and recover! 
Oct  6 01:07:23 neo kernel: [ 1167.402709] [<c0012994>] 
(unwind_backtrace+0x0/0xf0) from [<c002770c>] (omap_dma_unlink_lch+0x70/0x90)
Oct  6 01:07:23 neo kernel: [ 1167.414337] [<c002770c>] 
(omap_dma_unlink_lch+0x70/0x90) from [<c032335c>] (omap_pcm_hw_free+0x28/0x54)
Oct  6 01:07:23 neo kernel: [ 1167.426788] [<c032335c>] 
(omap_pcm_hw_free+0x28/0x54) from [<c031efb4>] (soc_pcm_hw_free+0x88/0xd8)
Oct  6 01:07:23 neo kernel: [ 1167.437835] [<c031efb4>] 
(soc_pcm_hw_free+0x88/0xd8) from [<c02fdcf0>] 
(snd_pcm_release_substream+0x44/0xa4)
Oct  6 01:07:23 neo kernel: [ 1167.449707] [<c02fdcf0>] 
(snd_pcm_release_substream+0x44/0xa4) from [<c02fdd78>] 
(snd_pcm_release+0x28/0x6c)
Oct  6 01:07:23 neo kernel: [ 1167.461700] [<c02fdd78>] 
(snd_pcm_release+0x28/0x6c) from [<c00afae8>] (fput+0x104/0x23c)
Oct  6 01:07:23 neo kernel: [ 1167.471832] [<c00afae8>] (fput+0x104/0x23c) 
from [<c00ac7f0>] (filp_close+0x78/0x84)
Oct  6 01:07:23 neo kernel: [ 1167.481658] [<c00ac7f0>] (filp_close+0x78/0x84) 
from [<c00ac8c4>] (sys_close+0xc8/0x128)
Oct  6 01:07:23 neo kernel: [ 1167.491699] [<c00ac8c4>] (sys_close+0xc8/0x128) 
from [<c000dc40>] (ret_fast_syscall+0x0/0x30)
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  PCM handle name = default 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  PCM state = PREPARED 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  access type = RW_INTERLEAVED 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  format = 'S16_LE' (Signed 16 bit 
Little Endian) 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  subformat = 'STD' (Standard) 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  channels = 2 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  rate = 44100 bps 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  period time = 33333 us 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  period size = 1470 frames 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  buffer time = 100000 us 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  buffer size = 4410 frames 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  periods per buffer = 3 frames 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  exact rate = 44100/1 bps 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  significant bits = 16 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is batch = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is block transfer = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is double = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is half duplex = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is joint duplex = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can overrange = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can mmap = 1 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can pause = 1 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can resume = 1 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can sync start = 0 
Oct  6 01:07:23 neo Qtopia: AudioState :  Finding highest priority state for 
domain: "Phone" and capability: 2 
Oct  6 01:07:23 neo Qtopia: AudioState :  AudioState found was: 
QAudioStateInfo( true , "Phone" , "PhoneEarpiece" , "Earpiece" , 100 ) 
Oct  6 01:07:23 neo Qtopia: AudioState :  SpeakerAudioState::leave() 
Oct  6 01:07:23 neo Qtopia: AudioState :  EarpieceAudioState::enter() isPhone 
true 
Oct  6 01:07:23 neo Qtopia: AudioState :  alsactl  ("-f", 
"/opt/qtmoko/etc/alsa/gsmearpiece.state", "restore") 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  PCM handle name = default 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  PCM state = PREPARED 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  access type = RW_INTERLEAVED 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  format = 'S16_LE' (Signed 16 bit 
Little Endian) 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  subformat = 'STD' (Standard) 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  channels = 2 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  rate = 44100 bps 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  period time = 33333 us 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  period size = 1470 frames 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  buffer time = 100000 us 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  buffer size = 4410 frames 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  periods per buffer = 3 frames 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  exact rate = 44100/1 bps 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  significant bits = 16 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is batch = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is block transfer = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is double = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is half duplex = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  is joint duplex = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can overrange = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can mmap = 1 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can pause = 1 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can resume = 1 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  can sync start = 0 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  frames to write out =  882  ( 3528 
) bytes 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  write out = 3528 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  frames to write out =  882  ( 3528 
) bytes 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  write out = 3528 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  frames to write out =  882  ( 3528 
) bytes 
Oct  6 01:07:23 neo Qtopia: QAudioOutput :  write out = 3528 
Oct  6 01:07:23 neo kernel: [ 1167.729431] twl4030-codec twl4030-codec: 
operation mode cannot be changed on-the-fly
Oct  6 01:07:23 neo Qtopia: alsactl returned  "alsactl: set_control:1388: 
Cannot write control '2:0:0:Codec Operation Mode:0' : Device or resource busy
Oct  6 01:07:23 neo Qtopia: " , running kill-snd-card-users.sh 
Oct  6 01:07:24 neo Qtopia: killing 1090
Oct  6 01:07:24 neo Qtopia: Trying to find availability for an undefined 
state.
Oct  6 01:07:24 neo last message repeated 3 times
Oct  6 01:07:26 neo Qtopia: AudioState :  Handsfree audio gateway:  
QBluetoothAudioGateway(0x1036998) 
Oct  6 01:07:26 neo Qtopia: AudioState :  Headset audio gateway:  
QBluetoothAudioGateway(0x1036eb8) 
Oct  6 01:07:26 neo Qtopia: AudioState :  No current audio gateway found 
Oct  6 01:07:26 neo Qtopia: AudioState :  Handsfree audio gateway:  
QBluetoothAudioGateway(0x1038ca8) 
Oct  6 01:07:26 neo Qtopia: AudioState :  Headset audio gateway:  
QBluetoothAudioGateway(0x1038c00) 
Oct  6 01:07:26 neo Qtopia: AudioState :  No current audio gateway found 
Oct  6 01:07:26 neo Qtopia: AudioState :  alsactl  ("-f", 
"/opt/qtmoko/etc/alsa/speaker.state", "restore") 
Oct  6 01:07:26 neo Qtopia: AudioState :  Finding highest priority state for 
domain: "Media" and capability: 2 
Oct  6 01:07:26 neo Qtopia: AudioState :  AudioState found was: 
QAudioStateInfo( true , "Media" , "MediaSpeaker" , "Speaker" , 100 ) 
Oct  6 01:07:26 neo Qtopia: AudioState :  SpeakerAudioState::enter() isPhone 
false 
Oct  6 01:07:26 neo Qtopia: AudioState :  alsactl  ("-f", 
"/opt/qtmoko/etc/alsa/speaker.state", "restore") 
Oct  6 01:07:26 neo Qtopia: AudioState :  QAudioStateManager::stateChanged 
Oct  6 01:07:26 neo Qtopia: AudioState :  To State: QAudioStateInfo( true , 
"Media" , "MediaSpeaker" , "Speaker" , 100 ) QFlags(0x2) 
Oct  6 01:07:26 neo Qtopia: AudioState :  ====== USER startAudio()     
QAudioInterface(0xffd5b8) 
Oct  6 01:07:26 neo Qtopia: AudioState :  QAudioInterfaceServer() FAILED! 
trying to listen for Client instances 
Oct  6 01:07:27 neo Qtopia: AudioState :  QLocalSocket::ConnectionRefusedError 
Oct  6 01:07:58 neo last message repeated 61 times
Oct  6 01:08:03 neo last message repeated 11 times
Oct  6 01:08:04 neo Qtopia: AudioState :  Trying to set profile to: 
"PhoneEarpiece" 
Oct  6 01:08:04 neo Qtopia: AudioState :  QLocalSocket::ConnectionRefusedError 
Oct  6 01:08:11 neo last message repeated 14 times
Oct  6 01:08:11 neo Qtopia: AudioState :  Trying to set profile to: 
"PhoneSpeaker" 
Oct  6 01:08:11 neo Qtopia: AudioState :  QLocalSocket::ConnectionRefusedError 
Oct  6 01:08:16 neo last message repeated 9 times
Oct  6 01:08:16 neo Qtopia: AudioState :  Trying to set profile to: 
"PhoneEarpiece" 
Oct  6 01:08:16 neo Qtopia: AudioState :  QLocalSocket::ConnectionRefusedError 
Oct  6 01:08:47 neo last message repeated 61 times
Oct  6 01:08:51 neo last message repeated 8 times
Oct  6 01:08:51 neo Qtopia: AudioState :  Trying to set profile to: 
"PhoneSpeaker" 
Oct  6 01:08:51 neo Qtopia: AudioState :  QLocalSocket::ConnectionRefusedError 
Oct  6 01:08:58 neo last message repeated 14 times
Oct  6 01:08:59 neo Qtopia: AudioState :  Finding highest priority state for 
domain: "Media" and capability: 2 
Oct  6 01:08:59 neo Qtopia: AudioState :  AudioState found was: 
QAudioStateInfo( true , "Media" , "MediaSpeaker" , "Speaker" , 100 ) 
Oct  6 01:08:59 neo Qtopia: AudioState :  SpeakerAudioState::leave() 
Oct  6 01:08:59 neo Qtopia: AudioState :  SpeakerAudioState::enter() isPhone 
false 
Oct  6 01:08:59 neo Qtopia: AudioState :  alsactl  ("-f", 
"/opt/qtmoko/etc/alsa/speaker.state", "restore") 
Oct  6 01:08:59 neo Qtopia: AudioState :  QAudioStateManager::stateChanged 
Oct  6 01:08:59 neo Qtopia: AudioState :  From State: QAudioStateInfo( true , 
"Media" , "MediaSpeaker" , "Speaker" , 100 ) QFlags(0x2) 
Oct  6 01:08:59 neo Qtopia: AudioState :  To State: QAudioStateInfo( true , 
"Media" , "MediaSpeaker" , "Speaker" , 100 ) QFlags(0x2) 
Oct  6 01:08:59 neo Qtopia: AudioState :  QLocalSocket::ConnectionRefusedError 
Oct  6 01:09:30 neo last message repeated 61 times
Oct  6 01:10:31 neo last message repeated 122 times                                                                                                                                
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20121007/b64655fc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20121007/b64655fc/attachment-0001.bin>


More information about the Gta04-owner mailing list