I know this is an on-going problem. I have found a number of threads here about it
http://mysettopbox.tv/phpBB2/viewtopic.php?t=18678&highlight=hd5500+ntsc+audio and
http://mysettopbox.tv/phpBB2/viewtopic.php?t=17863&highlight=hd5500+audio for example. I have tried pretty much everything in those posts with no luck. Just for background, I have an intel dual core, on board video with HDMI out, Digital SP/Dif out, and 1 hd-5500. I have successfully gotten the clear QAM off comcast cable, I have a firewire connection from a DCH-3200 working perfectly. The only thing left is analog NTSC on the hd-5500.
Here is what I have done so far.
I have the DMA capable hd-5500:
Code:
$ lspci | grep Audio
00:09.0 Audio device: nVidia Corporation MCP73 High Definition Audio (rev a1)
01:08.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
01:08.1 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
01:08.2 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
01:08.4 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [IR Port] (rev 05)
Alsa recognizes it:
Code:
$ cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xefff4000 irq 22
1 [CX8801 ]: CX88x - Conexant CX8801
Conexant CX8801 at 0xeb000000
There is a /dev/dsp1
Code:
$ ll /dev | grep dsp
crw-rw---- 1 root audio 14, 12 Jan 1 13:14 adsp
crw-rw---- 1 root audio 14, 3 Jan 1 13:14 dsp
crw-rw---- 1 root audio 14, 19 Jan 1 13:14 dsp1
Alsa is loading the correct modules:
Code:
$ lsmod | grep snd_*
snd_hda_intel 347544 0
snd_pcm_oss 40608 0
snd_mixer_oss 18304 1 snd_pcm_oss
snd_pcm 70916 3 snd_hda_intel,cx88_alsa,snd_pcm_oss
snd_timer 23300 1 snd_pcm
snd_page_alloc 11912 2 snd_hda_intel,snd_pcm
snd_hwdep 11012 1 snd_hda_intel
snd 52644 7 snd_hda_intel,cx88_alsa,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwdep
soundcore 10080 1 snd
I have made the changes to /etc/modprobe.d/alsa-base
Code:
#options cx88-alsa index=-2,-2,-2,-2,-2 enable=0,0,0,0,0
#added to enable sound on hd-5500
alias snd-card-0 snd_hda_intel
options snd_hda_intel index=0
alias snd-card-1 cx88_alsa
options cx88_alsa index=1
alsamixer is set for both devices (not muted)
Backend >> Capture Cards >> check box "Open DVB Card On Demand" is set on the DVB side.
I have the DVB and the v4l inputs in a custom input group HD55
So here is the problem. If I set the v4l card to use /dev/dsp, right after a reboot I can get a few minutes of good video but no audio. After a while I get the video flashing green, static, etc. every couple of seconds.
Here are the DVB Settings:
Card Type: DVB DTV Capture Card (v3.x)
DVB Device Number: 0
Signal Timeout: 3000
Tuning Timeout: 5500
Recording Options
Max Recordings: 1
Wait for SEQ: Checked
Open DVB Card on Demand: Checked
Use DVB Card for active EIT Scan: Checked
DVB Tuning Delay: 0
Here are the v4l Settings:
Card Type: Analog V4L Capture Card
Video Device: /dev/video0
Probed Info: pcHDTV hd-5500 HDTV [cx8800]
VBI Device: /dev/vbi0
Audio Device: /dev/dsp
Audio Sampling Rate: 48000
Default Input: Television
Also on the frontend I have all the recording profiles set to uncompressed 48000Khz
So what happens is after a few minutes of good video and no audio, I start getting lots of static, green static, skipped frames etc. Here is what it looks like from the frontend logs:
Code:
2009-01-01 17:59:56.219 Opening audio device 'default'. ch 2(2) sr 48000
2009-01-01 17:59:56.219 Opening ALSA audio device 'default'.
2009-01-01 17:59:56.236 ALSA, Warning: mmap not available, attempting to fall back to slow writes.
2009-01-01 17:59:56.314 Mixer unable to find control PCM
2009-01-01 17:59:56.314 Mixer unable to find control PCM
2009-01-01 17:59:56.315 Mixer unable to find control PCM
2009-01-01 17:59:56.315 Mixer unable to find control PCM
2009-01-01 17:59:56.315 Mixer unable to find control PCM
2009-01-01 17:59:56.316 Mixer unable to find control PCM
2009-01-01 17:59:56.316 Mixer unable to find control PCM
2009-01-01 17:59:56.868 VideoOutputXv: XVideo Adaptor Name: 'Intel(R) Textured Video'
2009-01-01 17:59:57.025 OSD Theme Dimensions W: 640 H: 480
2009-01-01 18:00:01.131 Realtime priority would require SUID as root.
2009-01-01 18:00:01.136 LiveTVChain(live-kohjish6-2009-01-01T17:56:47): SwitchTo() not switching to current
2009-01-01 18:00:04.343 NVP: Timed out waiting for free video buffers.
2009-01-01 18:00:05.016 Video timing method: USleep with busy wait
2009-01-01 18:00:05.063 NVP::AddAudioData():p1: Audio buffer overflow, audio data lost!
... (Gobs of these per second)
2009-01-01 18:00:14.899 NVP::AddAudioData():p1: Audio buffer overflow, audio data lost!
2009-01-01 18:00:15.050 TV: Attempting to change from WatchingLiveTV to None
2009-01-01 18:00:16.338 TV: Changing from WatchingLiveTV to None
2009-01-01 18:00:16.423 DPMS Reactivated.
2009-01-01 18:00:21.876 Deleting UPnP client...
The backend log looks like this:
Code:
2009-01-01 17:59:55.030 TVRec(6): Changing from None to WatchingLiveTV
2009-01-01 17:59:55.033 TVRec(6): HW Tuner: 6->6
2009-01-01 17:59:56.102 AutoExpire: CalcParams(): Max required Free Space: 2.0 GB w/freq: 15 min
2009-01-01 17:59:56.129 MainServer::HandleAnnounce Playback
2009-01-01 17:59:56.130 adding: kohjish6 as a client (events: 0)
2009-01-01 17:59:56.135 MainServer::HandleAnnounce FileTransfer
2009-01-01 17:59:56.136 adding: kohjish6 as a remote file transfer
2009-01-01 17:59:56.604 NVR(/dev/video0) Error: DQBUF ioctl failed.
eno: Input/output error (5)
2009-01-01 17:59:56.620 NVR(/dev/video0) Error: Resetting and re-queueing
2009-01-01 17:59:57.430 NVR(/dev/video0) Error: DQBUF ioctl failed.
eno: Input/output error (5)
... (Gobs of these too, a few per second)
2009-01-01 18:00:15.011 NVR(/dev/video0) Error: Resetting and re-queueing
2009-01-01 18:00:15.140 TVRec(6): Changing from WatchingLiveTV to None
Simply changing the /dev/dsp in the v4l audio device to /dev/dsp1 gives me this in the frontend log:
Code:
2009-01-01 18:12:44.450 TV: Attempting to change from None to WatchingLiveTV
2009-01-01 18:12:44.454 Using protocol version 40
2009-01-01 18:12:51.465 MythSocket(b3100b48:19): readStringList: Error, timeout (quick).
2009-01-01 18:12:51.465 RemoteEncoder::SendReceiveStringList(): No response.
2009-01-01 18:12:58.535 MythSocket(b3102720:19): readStringList: Error, timeout (quick).
2009-01-01 18:13:05.539 MythSocket(b3101d98:19): readStringList: Error, timeout (quick).
QString::arg(): Argument missing: RemoteFile::openSocket(file data socket): Did not get proper responce from /1035_20090101181244.nuv:192.168.80.221, 6543
2009-01-01 18:13:05.539 RemoteFile::openSocket(file data socket): Did not get proper responce from /1035_20090101181244.nuv:192.168.80.221
2009-01-01 18:13:05.539 RingBuffer::RingBuffer(): Failed to open remote file (myth://192.168.80.221:6543/1035_20090101181244.nuv)
2009-01-01 18:13:05.540 MythSocket(b3102720:-1): writeStringList: Error, called with unconnected socket.
2009-01-01 18:13:05.540 MythSocket(b3102720:-1): readStringList: Error, called with unconnected socket.
2009-01-01 18:13:05.540 Remote file timeout.
...(Hundreds of these per second)
2009-01-01 18:13:45.543 TV Error: StartRecorder() -- timed out waiting for recorder to start
2009-01-01 18:13:45.543 TV Error: LiveTV not successfully started
2009-01-01 18:13:45.545 TV: Deleting TV Chain in destructor
2009-01-01 18:13:45.549 DPMS Reactivated.
The backend log gives me this:
Code:
2009-01-01 18:12:44.490 TVRec(6): Changing from None to WatchingLiveTV
2009-01-01 18:12:44.493 TVRec(6): HW Tuner: 6->6
2009-01-01 18:42:26.709 UPnpMedia: BuildMediaMap VIDEO scan starting in :/mnt/public/data/videos:
So apparently /dev/dsp1 is not the correct device?
What am I missing? If anyone can help me with this I would really appreciate it!!!
I have another issue that I hope is relatively simple (if a little OT), I keep getting this error in my backend logs:
Code:
2009-01-01 14:10:47.189 Reschedule requested for id -1.
2009-01-01 14:10:47.362 Scheduled 133 items in 0.2 = 0.02 match + 0.16 place
2009-01-01 14:14:57.052 DB Error (change_program):
Query was:
UPDATE program SET starttime = '2009-01-01T23:37:14', endtime = '2009-01-0
2T00:37:00' WHERE chanid = 2021 AND starttime = '2009-01-01T23:37:00'
Driver error was [2/1062]:
QMYSQL3: Unable to execute query
Database error was:
Duplicate entry '2021-2009-01-01 23:37:14-0' for key 1
2009-01-01 14:14:57.054 DB Error (change_program):
Query was:
UPDATE program SET starttime = '2009-01-01T23:37:14', endtime = '2009-01-0
2T00:37:00' WHERE chanid = 2021 AND starttime = '2009-01-01T23:37:00'
Driver error was [2/1062]:
QMYSQL3: Unable to execute query
Database error was:
Duplicate entry '2021-2009-01-01 23:37:14-0' for key 1
Is there an easy way to fix this?
Dothedog