[Bugme-new] [Bug 21602] New: recording hangs

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Sun Oct 31 21:50:13 PDT 2010


https://bugzilla.kernel.org/show_bug.cgi?id=21602

           Summary: recording hangs
           Product: Drivers
           Version: 2.5
    Kernel Version: 2.6.36
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Sound(ALSA)
        AssignedTo: perex at perex.cz
        ReportedBy: kevmitch at gmail.com
        Regression: Yes


This is a regression between 2.6.35 and 2.6.36. In 2.6.36, running "arecord"
with a specified duration hangs and no sound is written to the output file. The
symptomatic command is:
arecord -d 2 testfile.wav

Similar behaviour is observed with the SOX "rec" command:
rec testfile.wav trim 0 2

I have bisected the problem down to the commit:

commit eb541337b7a43822fce7d0c9d967ee149b2d9a96
Author: Takashi Iwai <tiwai at suse.de>
Date:   Fri Aug 6 13:48:11 2010 +0200

    ALSA: hda - Make converter setups sticky

    So far, we reset the converter setups like the stream-tag, the
    channel-id and format-id in prepare callbacks, and clear them in
    cleanup callbacks.  This often causes a silence of the digital
    receiver for a couple of seconds.

    This patch tries to delay the converter setup changes as much as
    possible.  The converter setups are cached and aren't reset as long
    as the same values are used.  At suspend/resume, they are cleared
    to be recovered properly, too.

    Signed-off-by: Takashi Iwai <tiwai at suse.de>

I have attached the output of the alsa-info.sh script from either side of the
above commit. Also included are straces from arecord in both cases.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Bugme-new mailing list