[Gta04-owner] QtMoko audio state work

Neil Jerram neil at ossau.homelinux.net
Wed Jan 30 00:36:54 CET 2013


Neil Jerram <neil at ossau.homelinux.net> writes:

> The next idea that occurs to me is to use hw:0,0 and try handling the
> mono-stereo mapping in gsm-voice-routing.c.

That wasn't too hard, but it hasn't fixed or changed the problem.  I'm
still seeing outgoing calls OK, but incoming calls getting lots of
xruns.  Here's an incoming log:

gsm-voice-routing started
Hardware PCM card 1 'gta04-voice' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 1
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 16
  buffer_size  : 1024
  period_size  : 256
  period_time  : 32000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 256
  period_event : 0
  start_threshold  : 1024
  stop_threshold   : 1024
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
  appl_ptr     : 0
  hw_ptr       : 0
opened p_mod stream
Hardware PCM card 1 'gta04-voice' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 1
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 16
  buffer_size  : 1024
  period_size  : 256
  period_time  : 32000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 256
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 1024
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
  appl_ptr     : 0
  hw_ptr       : 0
opened r_mod stream
Hardware PCM card 0 'gta04' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 16
  buffer_size  : 1024
  period_size  : 256
  period_time  : 32000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 256
  period_event : 0
  start_threshold  : 1024
  stop_threshold   : 1024
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
  appl_ptr     : 0
  hw_ptr       : 0
opened p_ear stream
Hardware PCM card 0 'gta04' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 16
  buffer_size  : 1024
  period_size  : 256
  period_time  : 32000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 256
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 1024
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
  appl_ptr     : 0
  hw_ptr       : 0
opened r_mic stream
voice routing started
[3] r_mod: overrun occured: Broken pipe
0 frames available
[8] p_mod: underrun occured: Broken pipe
[9] r_mod: overrun occured: Broken pipe
0 frames available
[10] p_ear: underrun occured: Broken pipe
[15] r_mod: overrun occured: Broken pipe
0 frames available
[16] p_ear: underrun occured: Broken pipe
[16] p_mod: underrun occured: Broken pipe
[21] r_mod: overrun occured: Broken pipe

...

[280] p_ear: underrun occured: Broken pipe
[280] p_mod: underrun occured: Broken pipe
[285] r_mod: overrun occured: Broken pipe
0 frames available
[286] p_ear: underrun occured: Broken pipe
[286] p_mod: underrun occured: Broken pipe
gsm-voice-routing ending - signal 15

There must be something else I'm missing about how incoming calls are
different from outgoing, and/or why that difference appears to be
greater on my phone than on other A3s.

Regards,
        Neil


More information about the Gta04-owner mailing list