[mythtv] ALSA not working

Brian C. Huffman huffman at graze.net
Mon Jun 13 21:59:21 UTC 2005


All,

I sent an email a while back about problems getting ALSA to work.  I
have OSS working in mythtv and ALSA works in both mplayer and xine, but
I get no sound when specifying either "ALSA:default" or "ALSA:spdif"
with or without AC3 passthrough.  I'm using the spdif outputs on an
Maudio Delta DIO 2496.  Here's the output of 'mythfrontend --verbose
playback,audio'

2005-06-13 17:26:40.888 New DB connection, total: 1
Total desktop width=640, height=480, numscreens=1
2005-06-13 17:26:40.896 Using screen 0, 640x480 at 0,0
2005-06-13 17:26:40.902 mythfrontend version: 0.18.20050523-1
www.mythtv.org
2005-06-13 17:26:40.902 Enabled verbose msgs : important general
playback audio
2005-06-13 17:26:41.238 max_width: 640 max_height: 480
2005-06-13 17:26:41.440 Switching to square mode (blue)
2005-06-13 17:26:42.103 New DB connection, total: 2
2005-06-13 17:26:42.105 Joystick disabled.
2005-06-13 17:26:42.155 Registering Internal as a media playback plugin.
2005-06-13 17:26:42.179 Registering MythDVD DVD Media Handler as a media
handler2005-06-13 17:26:42.180 Registering MythDVD VCD Media Handler as
a media handler2005-06-13 17:26:42.695 Registering MythMusic Media
Handler as a media handler
2005-06-13 17:26:44.177 Connecting to backend server:
192.168.10.100:6543 (try 1 of 5)
2005-06-13 17:26:44.184 Using protocol version 17
2005-06-13 17:26:44.216 Using protocol version 17
2005-06-13 17:26:46.229 AVFD: Opening Stream #0: codec id 2
2005-06-13 17:26:46.234 detectInterlace(Detect Scan, Detect Scan, 29.97,
480) ->Interlaced Scan
2005-06-13 17:26:46.234 Interlaced: Interlaced Scan  video_height: 480
fps: 29.97
2005-06-13 17:26:46.235 AVFD: Looking for decoder for 2
2005-06-13 17:26:46.236 AVFD: Opening Stream #1: codec id 86016
2005-06-13 17:26:46.236 AVFD: Looking for decoder for 86016
2005-06-13 17:26:46.262 Stream #1 (audio track #0) is an audio stream
with 2 channels.
2005-06-13 17:26:46.262 Auto-selecting audio track #1 (stream #1).
2005-06-13 17:26:46.262 It has 2 channels and we needed at least 1
2005-06-13 17:26:46.262 Initializing audio parms from audio track #0.
2005-06-13 17:26:46.340 Estimated bitrate = 8384
2005-06-13 17:26:46.346 Filling position map from 0 to 37
2005-06-13 17:26:46.355 Position map filled from Encoder to: 2
2005-06-13 17:26:46.355 SyncPositionMap liveTV, from Encoder: 3 entries
2005-06-13 17:26:46.355 SyncPositionMap, new totframes: 30, new length:
1, posMap size: 3
2005-06-13 17:26:46.355 Partial position map found
2005-06-13 17:26:46.356 AvFormatDecoder: Successfully opened decoder for
file: "rbuf://192.168.10.100:6543/MythTV/Buffer/ringbuf1.nuv".
novideo(0)
2005-06-13 17:26:46.357 Killing AudioOutputDSP
2005-06-13 17:26:46.359 Opening audio device 'default'.
2005-06-13 17:26:46.368 in SetParameters(format=2, channels=2,
rate=48000, buffer_time=500000, period_time=125000)
2005-06-13 17:26:46.370 get_buffer_size returned 6553
2005-06-13 17:26:46.370 set_period_time_near returned 68250
2005-06-13 17:26:46.370 get_period_size returned 3276
2005-06-13 17:26:46.372 Audio fragment size: 4096
2005-06-13 17:26:46.374 Audio Stretch Factor: 1
2005-06-13 17:26:46.374 Ending reconfigure
2005-06-13 17:26:46.374 kickoffOutputAudioLoop: pid = 6031
2005-06-13 17:26:46.375 OutputAudioLoop: Play Event
2005-06-13 17:26:46.375 Broadcasting free space avail
2005-06-13 17:26:46.378 VideoOutputXv()
2005-06-13 17:26:46.390 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
2005-06-13 17:26:46.391 Broadcasting free space avail
2005-06-13 17:26:46.400 @ j=3 Looking for flag[s]: XvInputMask
XvImageMask
2005-06-13 17:26:46.401 Adaptor: 0 has flag[s]: XvInputMask XvImageMask
2005-06-13 17:26:46.401 XVideo surface found on port 105
2005-06-13 17:26:46.407 Snapping height to avoid scaling: disphoff 480,
dispyoff: 0
2005-06-13 17:26:46.407 Image size. dispxoff 0, dispyoff: 0, dispwoff:
640, disphoff: 480
2005-06-13 17:26:46.407 Image size. imgx 0, imgy: 0, imgw: 720, imgh:
480
2005-06-13 17:26:46.409 Broadcasting free space avail
2005-06-13 17:26:46.420 Broadcasting free space avail
2005-06-13 17:26:46.424 Broadcasting free space avail
2005-06-13 17:26:46.429 Broadcasting free space avail
2005-06-13 17:26:46.432 Broadcasting free space avail
2005-06-13 17:26:46.436 Broadcasting free space avail
2005-06-13 17:26:46.440 Broadcasting free space avail
2005-06-13 17:26:46.444 Broadcasting free space avail
2005-06-13 17:26:46.448 Broadcasting free space avail
2005-06-13 17:26:46.452 Broadcasting free space avail
2005-06-13 17:26:46.456 Broadcasting free space avail
2005-06-13 17:26:46.460 Broadcasting free space avail
2005-06-13 17:26:46.464 Broadcasting free space avail
2005-06-13 17:26:46.468 Broadcasting free space avail
2005-06-13 17:26:46.472 Broadcasting free space avail
2005-06-13 17:26:46.476 Broadcasting free space avail
2005-06-13 17:26:46.480 Broadcasting free space avail
2005-06-13 17:26:46.484 Broadcasting free space avail
2005-06-13 17:26:46.488 Broadcasting free space avail
2005-06-13 17:26:46.492 Broadcasting free space avail
2005-06-13 17:26:46.496 Broadcasting free space avail
2005-06-13 17:26:46.500 Broadcasting free space avail
2005-06-13 17:26:46.504 Broadcasting free space avail
2005-06-13 17:26:46.508 Broadcasting free space avail
2005-06-13 17:26:46.512 Broadcasting free space avail
2005-06-13 17:26:46.516 Broadcasting free space avail
2005-06-13 17:26:46.520 Broadcasting free space avail
2005-06-13 17:26:46.524 Broadcasting free space avail
2005-06-13 17:26:46.528 Broadcasting free space avail
2005-06-13 17:26:46.532 Broadcasting free space avail
2005-06-13 17:26:46.536 Broadcasting free space avail
2005-06-13 17:26:46.540 Broadcasting free space avail
2005-06-13 17:26:46.544 Broadcasting free space avail
2005-06-13 17:26:46.548 Broadcasting free space avail
2005-06-13 17:26:46.552 Broadcasting free space avail
2005-06-13 17:26:46.556 Broadcasting free space avail
2005-06-13 17:26:46.560 Broadcasting free space avail
2005-06-13 17:26:46.564 Broadcasting free space avail
2005-06-13 17:26:46.568 Broadcasting free space avail
2005-06-13 17:26:46.572 Broadcasting free space avail
2005-06-13 17:26:46.576 Broadcasting free space avail
2005-06-13 17:26:46.580 Broadcasting free space avail
2005-06-13 17:26:46.585 Broadcasting free space avail
2005-06-13 17:26:46.589 Broadcasting free space avail
2005-06-13 17:26:46.593 Broadcasting free space avail
2005-06-13 17:26:46.597 Broadcasting free space avail
2005-06-13 17:26:46.601 Broadcasting free space avail
2005-06-13 17:26:46.605 Broadcasting free space avail
2005-06-13 17:26:46.609 Broadcasting free space avail
2005-06-13 17:26:46.613 Broadcasting free space avail
2005-06-13 17:26:46.617 Broadcasting free space avail
2005-06-13 17:26:46.621 Broadcasting free space avail
2005-06-13 17:26:46.625 Broadcasting free space avail
2005-06-13 17:26:46.629 Broadcasting free space avail
2005-06-13 17:26:46.633 Broadcasting free space avail
2005-06-13 17:26:46.637 Broadcasting free space avail
2005-06-13 17:26:46.641 Broadcasting free space avail
2005-06-13 17:26:46.645 Broadcasting free space avail
2005-06-13 17:26:46.649 Broadcasting free space avail
2005-06-13 17:26:46.653 Broadcasting free space avail
2005-06-13 17:26:46.657 Broadcasting free space avail
2005-06-13 17:26:46.661 Broadcasting free space avail
2005-06-13 17:26:46.665 Broadcasting free space avail
2005-06-13 17:26:46.669 Broadcasting free space avail
2005-06-13 17:26:46.673 Broadcasting free space avail
2005-06-13 17:26:46.677 Broadcasting free space avail
2005-06-13 17:26:46.681 Broadcasting free space avail
2005-06-13 17:26:46.686 Broadcasting free space avail
2005-06-13 17:26:46.690 Broadcasting free space avail
2005-06-13 17:26:46.694 Broadcasting free space avail
2005-06-13 17:26:46.698 Broadcasting free space avail
2005-06-13 17:26:46.702 Broadcasting free space avail
2005-06-13 17:26:46.706 Broadcasting free space avail
2005-06-13 17:26:46.710 Broadcasting free space avail
2005-06-13 17:26:46.714 Broadcasting free space avail
2005-06-13 17:26:46.718 Broadcasting free space avail
2005-06-13 17:26:46.722 Broadcasting free space avail
2005-06-13 17:26:46.726 Broadcasting free space avail
2005-06-13 17:26:46.730 Broadcasting free space avail
2005-06-13 17:26:46.734 Broadcasting free space avail
2005-06-13 17:26:46.738 Broadcasting free space avail
2005-06-13 17:26:46.742 OutputAudioLoop: audio paused
2005-06-13 17:26:46.743 26212 bytes free on soundcard
2005-06-13 17:26:46.743 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:46.744 The realtime priority setting is not enabled.
2005-06-13 17:26:46.747 22116 bytes free on soundcard
2005-06-13 17:26:46.747 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:46.751 18020 bytes free on soundcard
2005-06-13 17:26:46.764 Changing from None to WatchingLiveTV
2005-06-13 17:26:46.772 _AddSamples bytes=4608, used=1, free=511999,
timecode=381
2005-06-13 17:26:46.773 _AddSamples bytes=4608, used=4609, free=507391,
timecode=405
2005-06-13 17:26:46.773 _AddSamples bytes=4608, used=9217, free=502783,
timecode=429
2005-06-13 17:26:46.774 _AddSamples bytes=4608, used=13825, free=498175,
timecode=453
2005-06-13 17:26:46.775 _AddSamples bytes=4608, used=18433, free=493567,
timecode=477
2005-06-13 17:26:46.786 Using deinterlace method bobdeint
2005-06-13 17:26:46.795 _AddSamples bytes=4608, used=23041, free=488959,
timecode=501
2005-06-13 17:26:46.796 _AddSamples bytes=4608, used=27649, free=484351,
timecode=525
2005-06-13 17:26:46.809 _AddSamples bytes=4608, used=32257, free=479743,
timecode=549
2005-06-13 17:26:46.817 _AddSamples bytes=4608, used=36865, free=475135,
timecode=573
2005-06-13 17:26:46.818 _AddSamples bytes=4608, used=41473, free=470527,
timecode=597
2005-06-13 17:26:46.828 _AddSamples bytes=4608, used=46081, free=465919,
timecode=621
2005-06-13 17:26:46.843 _AddSamples bytes=4608, used=50689, free=461311,
timecode=645
2005-06-13 17:26:46.852 _AddSamples bytes=4608, used=55297, free=456703,
timecode=669
2005-06-13 17:26:46.853 _AddSamples bytes=4608, used=59905, free=452095,
timecode=693
2005-06-13 17:26:46.863 _AddSamples bytes=4608, used=64513, free=447487,
timecode=717
2005-06-13 17:26:46.874 _AddSamples bytes=4608, used=69121, free=442879,
timecode=741
2005-06-13 17:26:46.875 _AddSamples bytes=4608, used=73729, free=438271,
timecode=765
2005-06-13 17:26:46.884 _AddSamples bytes=4608, used=78337, free=433663,
timecode=789
2005-06-13 17:26:46.893 nVidiaVideoSync: VBlank ioctl did not work,
unimplemented in this driver?
2005-06-13 17:26:46.893 DRMVideoSync: Could not open
device /dev/dri/card0, Permission denied
2005-06-13 17:26:46.897 OpenGLVideoSync: GLX extensions:
GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig
GLX_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control
GLX_ARB_get_proc_address
2005-06-13 17:26:46.954 Using OpenGLVideoSync
2005-06-13 17:26:46.954 Set video sync frame interval to 33366
2005-06-13 17:26:46.956 Using audio as timebase
2005-06-13 17:26:46.956 Video timing method: SGI OpenGL
2005-06-13 17:26:46.956 Refresh rate: 16666, frame interval: 33366
2005-06-13 17:26:46.959 _AddSamples bytes=4608, used=82945, free=429055,
timecode=813
2005-06-13 17:26:46.970 _AddSamples bytes=4608, used=87553, free=424447,
timecode=837
2005-06-13 17:26:46.971 _AddSamples bytes=4608, used=92161, free=419839,
timecode=861
2005-06-13 17:26:46.973 OutputAudioLoop: Play Event
2005-06-13 17:26:46.973 Broadcasting free space avail
2005-06-13 17:26:46.973 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:46.974 Broadcasting free space avail
2005-06-13 17:26:46.974 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:46.975 Broadcasting free space avail
2005-06-13 17:26:46.975 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:46.976 Broadcasting free space avail
2005-06-13 17:26:46.976 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:46.976 audio waiting for space on soundcard: have 1968
need 4096
2005-06-13 17:26:46.983 audio waiting for space on soundcard: have 3240
need 4096
2005-06-13 17:26:46.987 _AddSamples bytes=4608, used=80385, free=431615,
timecode=885
2005-06-13 17:26:46.992 Broadcasting free space avail
2005-06-13 17:26:46.992 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:46.993 audio waiting for space on soundcard: have 1000
need 4096
2005-06-13 17:26:46.999 audio waiting for space on soundcard: have 2236
need 4096
2005-06-13 17:26:47.002 _AddSamples bytes=4608, used=80897, free=431103,
timecode=909
2005-06-13 17:26:47.002 _AddSamples bytes=4608, used=85505, free=426495,
timecode=933
2005-06-13 17:26:47.007 audio waiting for space on soundcard: have 3600
need 4096
2005-06-13 17:26:47.007 A/V timecodes audio 371 video 400 frameinterval
33366 avdel 29 avg 0 tcoffset 0
2005-06-13 17:26:47.013 Broadcasting free space avail
2005-06-13 17:26:47.013 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:47.014 audio waiting for space on soundcard: have 972
need 40962005-06-13 17:26:47.017 _AddSamples bytes=4608, used=86017,
free=425983, timecode=957
2005-06-13 17:26:47.021 audio waiting for space on soundcard: have 2344
need 4096
2005-06-13 17:26:47.028 _AddSamples bytes=4608, used=90625, free=421375,
timecode=981
2005-06-13 17:26:47.028 audio waiting for space on soundcard: have 3724
need 4096
2005-06-13 17:26:47.035 Broadcasting free space avail
2005-06-13 17:26:47.035 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:47.036 audio waiting for space on soundcard: have 1096
need 4096
2005-06-13 17:26:47.042 A/V timecodes audio 405 video 433 frameinterval
33366 avdel 28 avg 7250 tcoffset 0
2005-06-13 17:26:47.043 audio waiting for space on soundcard: have 2552
need 4096
2005-06-13 17:26:47.046 _AddSamples bytes=4608, used=91137, free=420863,
timecode=1005
2005-06-13 17:26:47.047 _AddSamples bytes=4608, used=95745, free=416255,
timecode=1029
2005-06-13 17:26:47.050 audio waiting for space on soundcard: have 3816
need 4096
2005-06-13 17:26:47.057 Broadcasting free space avail
2005-06-13 17:26:47.057 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:47.058 audio waiting for space on soundcard: have 1220
need 4096
2005-06-13 17:26:47.061 _AddSamples bytes=4608, used=96257, free=415743,
timecode=1053
2005-06-13 17:26:47.064 audio waiting for space on soundcard: have 2408
need 4096
2005-06-13 17:26:47.071 _AddSamples bytes=4608, used=100865,
free=411135, timecode=1077
2005-06-13 17:26:47.071 audio waiting for space on soundcard: have 3752
need 4096
2005-06-13 17:26:47.073 A/V timecodes audio 437 video 467 frameinterval
33366 avdel 30 avg 12437 tcoffset 0
2005-06-13 17:26:47.078 Broadcasting free space avail
2005-06-13 17:26:47.078 WriteAudio: Preparing 4096 bytes (1024 frames)
2005-06-13 17:26:47.079 audio waiting for space on soundcard: have 1160
need 4096
2005-06-13 17:26:47.086 audio waiting for space on soundcard: have 2536
need 4096
2005-06-13 17:26:47.086 _AddSamples bytes=4608, used=101377,
free=410623, timecode=1101
2005-06-13 17:26:47.087 _AddSamples bytes=4608, used=105985,
free=406015, timecode=1125
2005-06-13 17:26:47.093 audio waiting for space on soundcard: have 3908
need 4096
2005-06-13 17:26:47.100 Broadcasting free space avail
<snip>



More information about the mythtv-dev mailing list