Ticket #2347 (new defect)

Opened 8 years ago

Last modified 4 months ago

speaker-test fails with Write error: -110,Connection timed out

Reported by: lindi Owned by: openmoko-kernel
Priority: normal Milestone:
Component: kernel Version: unspecified
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible: always

Description

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

Attachments

speaker-test.strace (47.2 KB) - added by lindi 8 years ago.
strace of speaker-test
amixer.contents (13.5 KB) - added by lindi 8 years ago.
output of amixer contents
amixer.cmds (5.3 KB) - added by lindi 8 years ago.
commands that set the ALSA state
working.state (17.4 KB) - added by gena2x 7 years ago.

Change History

Changed 8 years ago by lindi

strace of speaker-test

Changed 8 years ago by lindi

output of amixer contents

Changed 8 years ago by lindi

commands that set the ALSA state

comment:1 follow-up: ↓ 2 Changed 8 years ago 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?

comment:2 in reply to: ↑ 1 Changed 7 years ago by gena2x

Replying to 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.

comment:3 Changed 7 years ago 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.

comment:4 Changed 7 years ago 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.

comment:5 Changed 7 years ago 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.

Changed 7 years ago by gena2x

comment:6 Changed 8 months ago by RoberMync

Amoxicillin Refridgerate <a href=http://lasix.ccrpdc.com/cheapest-lasix.php>Cheapest Lasix</a> Lilly Cialis 5mg Cialis 5mg No Prescription <a href=http://kama1.xyz/purchase-generic-kamagra.php>Purchase Generic Kamagra</a> Forum Cialis Pamplemousse Ciprofloxacin Replace Amoxicillin <a href=http://kama1.xyz/buy-generic-kamagra-online.php>Buy Generic Kamagra Online</a> Viagra 100mg Cual Es La Mejor Viagra <a href=http://xenical.ccrpdc.com/orlistat-online-1.php>Orlistat Online</a> Order Accutane Online No Prescription How To Order Nympho Max Drugs <a href=http://cial5mg.xyz/buy-online-cialis.php>Buy Online Cialis</a> Discount Pharmacy In Us Online Super Cialis Order <a href=http://priligy.ccrpdc.com/buy-dapoxetine.php>Buy Dapoxetine</a> Cheap Silagra Tablets Pyridium Amex <a href=http://viag1.xyz/generic-viagra-buy.php>Generic Viagra Buy</a> 100 Mg De Kamagra Zithromax How Quickly Does It Work <a href=http://cial5mg.xyz/order-cialis.php>Order Cialis</a> Avis Sur Le Cialis 5 Mg Generic Levitra Overnight <a href=http://viag1.xyz/compra-viagra-online.php>Compra Viagra Online</a> Viagra 100 Mg Einnehmen Propecia Mb <a href=http://viag1.xyz/generic-sildenafil.php>Generic Sildenafil</a> Prescribing Propecia Priligy Costo En Colombia <a href=http://zol1.xyz/cheap-generic-zoloft.php>Cheap Generic Zoloft</a> Doxycycline Discount Acquisto Viagra Forum <a href=http://zol1.xyz/ordina-zoloft-online.php>Ordina Zoloft Online</a> Does Propecia Actually Work Amoxil Amoxil Vs Wiki <a href=http://cial5mg.xyz/buy-online-cialis.php>Buy Online Cialis</a> Antibiotics Double Vision Keflex Viagra Blog <a href=http://viag1.xyz/buy-viagra-online-usa.php>Buy Viagra Online Usa</a> Hydrochlorothiazide 25 Mg For Sale Propecia Itching <a href=http://cial1.xyz/buy-cialis-online-usa.php>Buy Cialis Online Usa</a> Cheap 40 Cialis Online Cipla Pharmaceuticals Sildenafil <a href=http://kama1.xyz/how-much-is-kamagra.php>How Much Is Kamagra</a> No Rx Brand Viagra Prescription Cialis Walmart Cost <a href=http://zol1.xyz/buy-zoloft-online-cheap.php>Buy Zoloft Online Cheap</a> Do Generic Ed Drugs Really Work Cod generic isotretinoin direct discount amex accepted <a href=http://cial5mg.xyz/cialis-professional.php>Cialis Professional</a> Imitation Cialis 800 Number Best Generic Levitra <a href=http://cial5mg.xyz/need-to-order-cialis.php>Need To Order Cialis</a> Kamagra France Bentyl Coligon Where To Purchase Ups <a href=http://cial5mg.xyz/cialis-to-buy.php>Cialis To Buy</a> Viagra Avec Sans Ordonnance Amoxicillin Muscle Pain <a href=http://viag1.xyz/cheap-viagra-overnight.php>Cheap Viagra Overnight</a> Usa Direct Pharmacy Productos Para Una Ereccion Mas Larga <a href=http://kama1.xyz/generic-kamagra-pricing.php>Generic Kamagra Pricing</a> Buy Accutane For Acne Kamagra Bestellen Com <a href=http://cial5mg.xyz/cheap-generic-cialis.php>Cheap Generic Cialis</a> Amoxil Pediatrique Gouttes Acheter Keflex Prescribing Informationm <a href=http://kama1.xyz/purchase-generic-kamagra.php>Purchase Generic Kamagra</a> Comprar Cialis Francia Venta Cialis Original <a href=http://propecia.ccrpdc.com/propecia-tablets.php>Propecia Tablets</a> Site Achat Cialis Side Effects Of Propecia <a href=http://xenical.ccrpdc.com/order-alli.php>Order Alli</a> Propecia Impasto Levitra 20 Prix <a href=http://cial1.xyz/cialis-online.php>Cialis Online</a> Commander Cialis Quebec Cialis Levitra Viagra Compare <a href=http://cial1.xyz/canadian-cheap-cialis.php>Canadian Cheap Cialis</a> Pacific Care Pharmacy Port Vila Vanuatu Cialis Without A Script <a href=http://cial5mg.xyz/best-cialis-online.php>Best Cialis Online</a> Cheap Propecia Generic Cialis Risiken <a href=http://cial5mg.xyz/cialis-on-line.php>Cialis On Line</a> Cephalexin And Effexor Viagra Punti Vendita <a href=http://kamagra.ccrpdc.com/kamagra-oral-jelly.php>Kamagra Oral Jelly</a> Where To Purchase Real Progesterone Kansas City Where Can I Buy Cipro In Uk <a href=http://cial5mg.xyz/generic-for-cialis.php>Generic For Cialis</a> Tips For Lasting Longer Levitra Bayer Online <a href=http://viag1.xyz/order-viagra-onlines.php>Order Viagra Onlines</a> What Does Mexican Amoxicillin Look Like Cialis Sildenafil Levitra <a href=http://cial1.xyz/where-to-order-cialis.php>Where To Order Cialis</a> Biotic Lioresal Vidal <a href=http://levitra.ccrpdc.com/levitra-brand.php>Levitra Brand</a> Buycialisonlineusa Priligy Meinungen <a href=http://kama1.xyz/buy-cheap-kamagra.php>Buy Cheap Kamagra</a> Compra Tadalafil Propecia 20 Minutos Es La Kamagra <a href=http://cial1.xyz/tadalafil-20mg.php>Tadalafil 20mg</a> Cash On Delivery Bentyl Pills Buy Bentyl 20mg Cod Only <a href=http://viag1.xyz/viagra-online.php>Viagra Online</a> Aciphexwithoutaprescription Buy Albendazole Online <a href=http://zol1.xyz/generic-zoloft-online.php>Generic Zoloft Online</a> Precio Cialis Lilly Viagra Acidez Estomacal <a href=http://cialis.ccrpdc.com/cialis-online-no.php>Cialis Online No</a> Onlinepharmacy.Vom Where Can I Buy Fluoxetine Cash Delivery <a href=http://zol1.xyz/purchase-zoloft.php>Purchase Zoloft</a> Cuanto Cuesta La Viagra En La Farmacia Serp <a href=http://cial1.xyz/buy-generic-cialis-online.php>Buy Generic Cialis Online</a> Finasteride Non Funziona Propecia Viagra 100mg 12 St <a href=http://viag1.xyz/buying-viagra-online.php>Buying Viagra Online</a> Levitra Farmacia Nostra Viagra Patent Abgelaufen <a href=http://inderal.ccrpdc.com/propranolol-inderal.php>Propranolol Inderal</a> Kamagra Oral Jelly Inhaltsstoffe Sildenafil 150 Mg <a href=http://cial5mg.xyz/cialis-tadalafil.php>Cialis Tadalafil</a> Viagra Farmacia Euros How To Buy Letrozole <a href=http://kama1.xyz/purchase-kamagra-usa.php>Purchase Kamagra Usa</a> No Prescription Needed Cealis Pregnancy Category And Cephalexin <a href=http://kama1.xyz/price-of-kamagra.php>Price Of Kamagra</a> Cialis With Dapoxetine For Sale Canada

comment:7 Changed 5 months ago by Abrahammaime

puedo tomar aspirina si tomo cialis

<a href="http://cialisgsaa.com/">buy cialis online</a>

precision labs cialis

<a href=http://cialisgsaa.com/>http://cialisgsaa.com/</a>

comment:8 Changed 4 months ago by RalphCleks

can you buy cialis over the counter in usa

<a href="http://cialisxrm.com/">cialis coupon</a>

can cialis be used after expiration date

<a href=http://cialisxrm.com/>cialis coupon</a>

comment:9 Changed 4 months ago by GeraldRok

online canadian pharmacy

<a href="http://canadianpharmacyrxbsl.com/">canadian pharmacies shipping to usa</a>

best canadian online pharmacy

<a href=http://canadianpharmacyrxbsl.com/?cipro-eye-drops>cipro eye drops</a>
canada pharmacy
<a href="http://canadianpharmacyrxbsl.com/?amoxicillin-over-counter-walgreens">amoxicillin over counter walgreens</a>

comment:10 Changed 4 months ago by HaroNusy

Discount Accutane http://cialtobuy.com - buy cialis Cheap On Line Generic Cialis
Buy Now No Rx Acticin Online
Effetti Viagra Rosa <a href=http://cialtobuy.com >viagra cialis</a> How Last Longer

comment:11 Changed 4 months ago by FelipeBuh

discount prescription drugs online

<a href="http://canadianpharmacyrxbsl.com/">canadian online pharmacies</a>

canadian prescription drugstore

<a href=http://canadianpharmacyrxbsl.com/?finasteride-5mg>finasteride 5mg</a>
canada pharmacies online pharmacy
<a href="http://canadianpharmacyrxbsl.com/?atenolol-to-metoprolol-tartrate-conversion">atenolol to metoprolol tartrate conversion</a>

Note: See TracTickets for help on using tickets.