Openmoko Bug #2347: speaker-test fails with Write error: -110, Connection timed out

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Openmoko Bug #2347: speaker-test fails with Write error: -110, Connection timed out

Openmoko Public Trac
#2347: speaker-test fails with Write error: -110,Connection timed out
--------------------+-------------------------------------------------------
 Reporter:  lindi   |          Owner:  openmoko-kernel
     Type:  defect  |         Status:  new            
 Priority:  normal  |      Milestone:                
Component:  kernel  |        Version:  unspecified    
 Severity:  normal  |       Keywords:                
 Haspatch:  0       |      Blockedby:                
Estimated:          |    Patchreview:                
 Blocking:          |   Reproducible:  always        
--------------------+-------------------------------------------------------
 Steps to reproduce:
 1) build linux using
 #!/bin/bash
 set -x
 set -e
 rev=$(git log | head -n1|cut -d' ' -f2|cut --bytes=1-32)
 buildroot=build-$rev
 rm -fr $buildroot
 mkdir $buildroot
 cp arch/arm/configs/gta02_defconfig $buildroot/.config
 make O=$buildroot ARCH=arm silentoldconfig
 CROSS_COMPILE=arm-linux-gnueabi- make -j4 O=$buildroot ARCH=arm
 CONFIG_DEBUG_SECTION_MISMATCH=y EXTRAVERSION=om-gta02-2.6.32-$rev
 arm-linux-gnueabi-objcopy -O binary -R .note -R .comment -S
 $buildroot/arch/arm/boot/compressed/vmlinux $buildroot/linux.bin
 mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "om-
 gta02-2.6.32-$rev" -d $buildroot/linux.bin $buildroot/uImage-om-
 gta02-2.6.32-$rev.bin
 mkdir -p $buildroot/staging
 make O=$buildroot ARCH=arm modules_install INSTALL_MOD_PATH=staging
 cd $buildroot/staging
 tar czf ../modules-om-gta02-2.6.32-$rev.tar.gz .
 2) boot uImage-om-gta02-2.6.32-a9254be10ac2294ea20165a87c09ea6a.bin
 3) speaker-test

 Expected results:
 3) sound is played or at least speaker-test does not exit

 Actual results:
 3) speaker-test exits with

 speaker-test 1.0.23

 Playback device is default
 Stream parameters are 48000Hz, S16_LE, 1 channels
 Using 16 octaves of pink noise
 Rate set to 48000Hz (requested 48000Hz)
 Buffer size range from 2048 to 32768
 Period size range from 1024 to 2048
 Using max buffer size 32768
 Periods = 4
 was set period_size = 2048
 was set buffer_size = 32768
  0 - Front Left
 Write error: -110,Connection timed out
 xrun_recovery failed: -110,Connection timed out
 Transfer failed: Operation not permitted

 More info:
 1) my ~/.asoundrc is empty

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2347>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Reply | Threaded
Open this post in threaded view
|

Re: Openmoko Bug #2347: speaker-test fails with Write error: -110, Connection timed out

Openmoko Public Trac
#2347: speaker-test fails with Write error: -110,Connection timed out
--------------------+-------------------------------------------------------
 Reporter:  lindi   |          Owner:  openmoko-kernel
     Type:  defect  |         Status:  new            
 Priority:  normal  |      Milestone:                
Component:  kernel  |        Version:  unspecified    
 Severity:  normal  |       Keywords:                
 Haspatch:  0       |      Blockedby:                
Estimated:          |    Patchreview:                
 Blocking:          |   Reproducible:  always        
--------------------+-------------------------------------------------------

Comment(by lindi):

 This does not occur with SHR's

 uImage-2.6.32.13-oe3.2+gitr6+a9254be10ac2294ea20165a87c09ea6afcf66d94-r0
 -om-gta02.bin

 so maybe om-gta02-2.6.32 needs some patches from SHR to support sound
 playback?

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2347#comment:1>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Reply | Threaded
Open this post in threaded view
|

Re: Openmoko Bug #2347: speaker-test fails with Write error: -110, Connection timed out

Openmoko Public Trac
In reply to this post by Openmoko Public Trac
#2347: speaker-test fails with Write error: -110,Connection timed out
--------------------+-------------------------------------------------------
 Reporter:  lindi   |          Owner:  openmoko-kernel
     Type:  defect  |         Status:  new            
 Priority:  normal  |      Milestone:                
Component:  kernel  |        Version:  unspecified    
 Severity:  normal  |       Keywords:                
 Haspatch:  0       |      Blockedby:                
Estimated:          |    Patchreview:                
 Blocking:          |   Reproducible:  always        
--------------------+-------------------------------------------------------

Comment(by gena2x):

 Replying to [comment:1 lindi]:
 > This does not occur with SHR's

 > uImage-2.6.32.13-oe3.2+gitr6+a9254be10ac2294ea20165a87c09ea6afcf66d94-r0
 -om-gta02.bin

 i can reproduce same issue with current gta02-om02-2.6.34 from
 git.openmoko.org,
 and _manually rebuild_ (with gcc 4.1.2) _shr kernel_ (current, from
 6a89c4d0e6ceff4259a8d1e13b7d568cdddff04f(gta02_drm_defconfig: enable more
 FS) or f13c3a3a622056fea2ad71c0a725c6df64ed64b8(gta02-drm-defconfig: make
 it more modular and disable preempt) from. http://gitorious.org/~jama/htc-
 msm-2-6-32/openmoko-kernel/commits/om-gta02-2.6.32.

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2347#comment:2>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Reply | Threaded
Open this post in threaded view
|

Re: Openmoko Bug #2347: speaker-test fails with Write error: -110, Connection timed out

Openmoko Public Trac
In reply to this post by Openmoko Public Trac
#2347: speaker-test fails with Write error: -110,Connection timed out
--------------------+-------------------------------------------------------
 Reporter:  lindi   |          Owner:  openmoko-kernel
     Type:  defect  |         Status:  new            
 Priority:  normal  |      Milestone:                
Component:  kernel  |        Version:  unspecified    
 Severity:  normal  |       Keywords:                
 Haspatch:  0       |      Blockedby:                
Estimated:          |    Patchreview:                
 Blocking:          |   Reproducible:  always        
--------------------+-------------------------------------------------------

Comment(by gena2x):

 Debian 4.4.4-6, om-gta02-2.6.34 - not working.

 4.1.2, om-gta02-2.6.34 - not working.

 4.1.2, shr kernel - not working.

 Debian 4.4.4-6, shr-kernel - not working.

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2347#comment:3>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Reply | Threaded
Open this post in threaded view
|

Re: Openmoko Bug #2347: speaker-test fails with Write error: -110, Connection timed out

Openmoko Public Trac
In reply to this post by Openmoko Public Trac
#2347: speaker-test fails with Write error: -110,Connection timed out
--------------------+-------------------------------------------------------
 Reporter:  lindi   |          Owner:  openmoko-kernel
     Type:  defect  |         Status:  new            
 Priority:  normal  |      Milestone:                
Component:  kernel  |        Version:  unspecified    
 Severity:  normal  |       Keywords:                
 Haspatch:  0       |      Blockedby:                
Estimated:          |    Patchreview:                
 Blocking:          |   Reproducible:  always        
--------------------+-------------------------------------------------------

Comment(by lindi):

 As gena2x pointed out on IRC to me the names of ALSA controls have
 changed.

 Here's a diff between valid amixer commands in 2.6.29 andy-tracking
 a3587e4ed77974ad and 2.6.32 om-gta02-2.6.32
 a9254be10ac2294ea20165a87c09ea6a:

 {{{
 --- /dev/fd/63  2010-07-31 18:47:23.695090000 +0300
 +++ /dev/fd/62  2010-07-31 18:47:23.695090000 +0300
 @@ -419,10 +419,10 @@
  amixer -qc0 cset numid=67,name='Capture Left Mixer' 1 # Analogue Mix Left
  amixer -qc0 cset numid=67,name='Capture Left Mixer' 2 # Analogue Mix
 Right
  amixer -qc0 cset numid=67,name='Capture Left Mixer' 3 # Digital Mono Mix
 -amixer -qc0 cset numid=68,name='Playback Mixer Voice Capture Sw' off
 -amixer -qc0 cset numid=68,name='Playback Mixer Voice Capture Sw' on
 -amixer -qc0 cset numid=69,name='Playback Mixer Left Capture Swi' off
 -amixer -qc0 cset numid=69,name='Playback Mixer Left Capture Swi' on
 +amixer -qc0 cset numid=68,name='Playback Mixer Voice Capture Switch' off
 +amixer -qc0 cset numid=68,name='Playback Mixer Voice Capture Switch' on
 +amixer -qc0 cset numid=69,name='Playback Mixer Left Capture Switch' off
 +amixer -qc0 cset numid=69,name='Playback Mixer Left Capture Switch' on
  amixer -qc0 cset numid=7,name='Sidetone Playback Volume' 0,0
  amixer -qc0 cset numid=7,name='Sidetone Playback Volume' 0,1
  amixer -qc0 cset numid=7,name='Sidetone Playback Volume' 0,2
 @@ -487,8 +487,8 @@
  amixer -qc0 cset numid=7,name='Sidetone Playback Volume' 7,5
  amixer -qc0 cset numid=7,name='Sidetone Playback Volume' 7,6
  amixer -qc0 cset numid=7,name='Sidetone Playback Volume' 7,7
 -amixer -qc0 cset numid=70,name='Playback Mixer Right Capture Sw' off
 -amixer -qc0 cset numid=70,name='Playback Mixer Right Capture Sw' on
 +amixer -qc0 cset numid=70,name='Playback Mixer Right Capture Switch' off
 +amixer -qc0 cset numid=70,name='Playback Mixer Right Capture Switch' on
  amixer -qc0 cset numid=71,name='Out4 Mux' 0 # VREF
  amixer -qc0 cset numid=71,name='Out4 Mux' 1 # Capture ST
  amixer -qc0 cset numid=71,name='Out4 Mux' 2 # LOUT2
 @@ -501,16 +501,16 @@
  amixer -qc0 cset numid=73,name='Mono 2 Mux' 3 # Left + Right
  amixer -qc0 cset numid=74,name='Mono Mixer Left Playback Switch' off
  amixer -qc0 cset numid=74,name='Mono Mixer Left Playback Switch' on
 -amixer -qc0 cset numid=75,name='Mono Mixer Right Playback Switc' off
 -amixer -qc0 cset numid=75,name='Mono Mixer Right Playback Switc' on
 -amixer -qc0 cset numid=76,name='Mono Mixer Voice Playback Switc' off
 -amixer -qc0 cset numid=76,name='Mono Mixer Voice Playback Switc' on
 -amixer -qc0 cset numid=77,name='Mono Mixer Sidetone Playback Sw' off
 -amixer -qc0 cset numid=77,name='Mono Mixer Sidetone Playback Sw' on
 -amixer -qc0 cset numid=78,name='Mono Mixer Bypass Playback Swit' off
 -amixer -qc0 cset numid=78,name='Mono Mixer Bypass Playback Swit' on
 -amixer -qc0 cset numid=79,name='Right Mixer Voice Playback Swit' off
 -amixer -qc0 cset numid=79,name='Right Mixer Voice Playback Swit' on
 +amixer -qc0 cset numid=75,name='Mono Mixer Right Playback Switch' off
 +amixer -qc0 cset numid=75,name='Mono Mixer Right Playback Switch' on
 +amixer -qc0 cset numid=76,name='Mono Mixer Voice Playback Switch' off
 +amixer -qc0 cset numid=76,name='Mono Mixer Voice Playback Switch' on
 +amixer -qc0 cset numid=77,name='Mono Mixer Sidetone Playback Switch' off
 +amixer -qc0 cset numid=77,name='Mono Mixer Sidetone Playback Switch' on
 +amixer -qc0 cset numid=78,name='Mono Mixer Bypass Playback Switch' off
 +amixer -qc0 cset numid=78,name='Mono Mixer Bypass Playback Switch' on
 +amixer -qc0 cset numid=79,name='Right Mixer Voice Playback Switch' off
 +amixer -qc0 cset numid=79,name='Right Mixer Voice Playback Switch' on
  amixer -qc0 cset numid=8,name='Voice Playback Volume' 0,0
  amixer -qc0 cset numid=8,name='Voice Playback Volume' 0,1
  amixer -qc0 cset numid=8,name='Voice Playback Volume' 0,2
 @@ -575,37 +575,35 @@
  amixer -qc0 cset numid=8,name='Voice Playback Volume' 7,5
  amixer -qc0 cset numid=8,name='Voice Playback Volume' 7,6
  amixer -qc0 cset numid=8,name='Voice Playback Volume' 7,7
 -amixer -qc0 cset numid=80,name='Right Mixer Sidetone Playback S' off
 -amixer -qc0 cset numid=80,name='Right Mixer Sidetone Playback S' on
 -amixer -qc0 cset numid=81,name='Right Mixer Right Playback Swit' off
 -amixer -qc0 cset numid=81,name='Right Mixer Right Playback Swit' on
 -amixer -qc0 cset numid=82,name='Right Mixer Bypass Playback Swi' off
 -amixer -qc0 cset numid=82,name='Right Mixer Bypass Playback Swi' on
 -amixer -qc0 cset numid=83,name='Left Mixer Voice Playback Switc' off
 -amixer -qc0 cset numid=83,name='Left Mixer Voice Playback Switc' on
 -amixer -qc0 cset numid=84,name='Left Mixer Sidetone Playback Sw' off
 -amixer -qc0 cset numid=84,name='Left Mixer Sidetone Playback Sw' on
 +amixer -qc0 cset numid=80,name='Right Mixer Sidetone Playback Switch' off
 +amixer -qc0 cset numid=80,name='Right Mixer Sidetone Playback Switch' on
 +amixer -qc0 cset numid=81,name='Right Mixer Right Playback Switch' off
 +amixer -qc0 cset numid=81,name='Right Mixer Right Playback Switch' on
 +amixer -qc0 cset numid=82,name='Right Mixer Bypass Playback Switch' off
 +amixer -qc0 cset numid=82,name='Right Mixer Bypass Playback Switch' on
 +amixer -qc0 cset numid=83,name='Left Mixer Voice Playback Switch' off
 +amixer -qc0 cset numid=83,name='Left Mixer Voice Playback Switch' on
 +amixer -qc0 cset numid=84,name='Left Mixer Sidetone Playback Switch' off
 +amixer -qc0 cset numid=84,name='Left Mixer Sidetone Playback Switch' on
  amixer -qc0 cset numid=85,name='Left Mixer Left Playback Switch' off
  amixer -qc0 cset numid=85,name='Left Mixer Left Playback Switch' on
 -amixer -qc0 cset numid=86,name='Left Mixer Bypass Playback Swit' off
 -amixer -qc0 cset numid=86,name='Left Mixer Bypass Playback Swit' on
 -amixer -qc0 cset numid=87,name='DAPM Stereo Out Switch' off
 -amixer -qc0 cset numid=87,name='DAPM Stereo Out Switch' on
 -amixer -qc0 cset numid=88,name='DAPM GSM Line Out Switch' off
 -amixer -qc0 cset numid=88,name='DAPM GSM Line Out Switch' on
 -amixer -qc0 cset numid=89,name='DAPM GSM Line In Switch' off
 -amixer -qc0 cset numid=89,name='DAPM GSM Line In Switch' on
 +amixer -qc0 cset numid=86,name='Left Mixer Bypass Playback Switch' off
 +amixer -qc0 cset numid=86,name='Left Mixer Bypass Playback Switch' on
 +amixer -qc0 cset numid=87,name='Stereo Out Switch' off
 +amixer -qc0 cset numid=87,name='Stereo Out Switch' on
 +amixer -qc0 cset numid=88,name='GSM Line Out Switch' off
 +amixer -qc0 cset numid=88,name='GSM Line Out Switch' on
 +amixer -qc0 cset numid=89,name='GSM Line In Switch' off
 +amixer -qc0 cset numid=89,name='GSM Line In Switch' on
  amixer -qc0 cset numid=9,name='Headphone Playback ZC Switch' off,off
  amixer -qc0 cset numid=9,name='Headphone Playback ZC Switch' off,on
  amixer -qc0 cset numid=9,name='Headphone Playback ZC Switch' on,off
  amixer -qc0 cset numid=9,name='Headphone Playback ZC Switch' on,on
 -amixer -qc0 cset numid=90,name='DAPM Headset Mic Switch' off
 -amixer -qc0 cset numid=90,name='DAPM Headset Mic Switch' on
 -amixer -qc0 cset numid=91,name='DAPM Handset Mic Switch' off
 -amixer -qc0 cset numid=91,name='DAPM Handset Mic Switch' on
 -amixer -qc0 cset numid=92,name='DAPM Handset Spk Switch' off
 -amixer -qc0 cset numid=92,name='DAPM Handset Spk Switch' on
 -amixer -qc0 cset numid=93,name='Amp State Switch' off
 -amixer -qc0 cset numid=93,name='Amp State Switch' on
 -amixer -qc0 cset numid=94,name='Amp Spk Switch' off
 -amixer -qc0 cset numid=94,name='Amp Spk Switch' on
 +amixer -qc0 cset numid=90,name='Headset Mic Switch' off
 +amixer -qc0 cset numid=90,name='Headset Mic Switch' on
 +amixer -qc0 cset numid=91,name='Handset Mic Switch' off
 +amixer -qc0 cset numid=91,name='Handset Mic Switch' on
 +amixer -qc0 cset numid=92,name='Handset Spk Switch' off
 +amixer -qc0 cset numid=92,name='Handset Spk Switch' on
 +amixer -qc0 cset numid=93,name='Amp Spk Switch' off
 +amixer -qc0 cset numid=93,name='Amp Spk Switch' on
 }}}

 In this case, issuing just

 amixer -qc0 cset numid=87,name='DAPM Stereo Out Switch' on

 manually was enough to make speaker-test work.

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2347#comment:4>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Reply | Threaded
Open this post in threaded view
|

Re: Openmoko Bug #2347: speaker-test fails with Write error: -110, Connection timed out

Openmoko Public Trac
In reply to this post by Openmoko Public Trac
#2347: speaker-test fails with Write error: -110,Connection timed out
--------------------+-------------------------------------------------------
 Reporter:  lindi   |          Owner:  openmoko-kernel
     Type:  defect  |         Status:  new            
 Priority:  normal  |      Milestone:                
Component:  kernel  |        Version:  unspecified    
 Severity:  normal  |       Keywords:                
 Haspatch:  0       |      Blockedby:                
Estimated:          |    Patchreview:                
 Blocking:          |   Reproducible:  always        
--------------------+-------------------------------------------------------

Comment(by gena2x):

 actually i noticed 2 controls diff between stereoout in shr and my state
 (seem derived from .29):

 <gena2x>                 name 'Right Mixer Right Playback Switch'
 <gena2x> -               value false
 <gena2x> +               value true
 <gena2x>                 name 'Stereo Out Switch'
 <gena2x> -               value false
 <gena2x> +               value true

 turning on 'stereo out' bring sound back.


 in-kernel error means timeout in function s3c24xx_snd_lrsync from
 sound/soc/s3c24xx/s3c24xx-i2s.c.

 in debian without fso, alsa-utils just stores/restores last state on boot,
 so watch out for correct settings.

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2347#comment:5>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac