Re: cx88 sound does not always work (Re: [PATCH v2.6.38 resend 0/7] cx88 deadlock and data races)
Update: I noticed I was using the desktop kernel this time, and reinstalled the default kernel. The audio now works fine (once this patch is installed). Works every time. This rings a bell, like I've had to do this to a system in the past. I don't really understand what desktop vs default kernel would have an effect on the drivers - from what I can read there doesn't seem to be anything in there. On 02/05/11 19:40, linuxtv wrote: Card Hauppage HVR-1300 Does it show up - yes Does it work - yes. However when testing for audio, either via mythbackend or smplayer /dev/video1 I get no sound 75% of the time on a first run. Of that, 75% of the time if I run smplayer /dev/video1 a few times sound reappears and will stay there until a power off reboot. (Soft reboot will keep the sound on). 25% of the time I cannot get sound started at all. Either via smplayer, mplayer, mythbackend or v4lctl changes. Have I seen this reported ever? I saw something mentioned on a mailing list dated Aug 2010. But no resolution. Is it hardware ? I don't believe so, same hardware I have linux Suse 11.1 kernel 2.6.27 with custom built drivers from v4l (July 2009). This works 100%. Drivers I was using was the default from the kernel with 11.4 (below). I then switched to try the v4l media_build repository (plus your patch). Unfortunately I can't build the 2009 drivers to try that level out (too much has changed). Hope the information below is of use. Drivers used from the default SuSE build and also from the v4l media build. Linux pvr1 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux (SuSE 11.4) 04:01.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [14f1:8800] (re$ Subsystem: Hauppauge computer works Inc. WinTV 88x Video [0070:9600] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 32 (5000ns min, 13750ns max), Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 19 Region 0: Memory at e400 (32-bit, non-prefetchable) [size=16M] Capabilities: [44] Vital Product Data Unknown large resource type 04, will not decode more. Capabilities: [4c] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: cx8800 04:01.1 Multimedia controller [0480]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] [14f1:88$ Subsystem: Hauppauge computer works Inc. WinTV 88x Audio [0070:9600] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 32 (1000ns min, 63750ns max), Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 19 Region 0: Memory at e500 (32-bit, non-prefetchable) [size=16M] Capabilities: [4c] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: cx88_audio 04:01.2 Multimedia controller [0480]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] [14f1:880$ Subsystem: Hauppauge computer works Inc. WinTV 88x MPEG Encoder [0070:9600] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 32 (1500ns min, 22000ns max), Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 19 Region 0: Memory at e600 (32-bit, non-prefetchable) [size=16M] Capabilities: [4c] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: cx88-mpeg driver manager dmesg extract [6.341606] tda9887 1-0043: creating new instance [6.341607] tda9887 1-0043: tda988[5/6/7] found [6.342842] tuner 1-0043: Tuner 74 found with type(s) Radio TV. [6.346330] tuner 1-0061: Tuner -1 found with type(s) Radio TV. [
cx88 sound does not always work (Re: [PATCH v2.6.38 resend 0/7] cx88 deadlock and data races)
Hi, linuxtv wrote: FYI I too experienced the problem of hanging and used the patch dated 6th April to get it working. However I do have the problem that sound does not always work/come on. Once it is started it stays, getting it started is not reliable. Could you give details? What card do you use? Does it show up in lspci -vvnn output (and if so, could you show us)? What kernel version? Could you attach your .config and dmesg? Was this reported on bugzilla before? How does sound not working manifest itself? How do you go about getting it to work? See the REPORTING-BUGS file for hints. Thanks and hope that helps, Jonathan -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: cx88 sound does not always work (Re: [PATCH v2.6.38 resend 0/7] cx88 deadlock and data races)
Card Hauppage HVR-1300 Does it show up - yes Does it work - yes. However when testing for audio, either via mythbackend or smplayer /dev/video1 I get no sound 75% of the time on a first run. Of that, 75% of the time if I run smplayer /dev/video1 a few times sound reappears and will stay there until a power off reboot. (Soft reboot will keep the sound on). 25% of the time I cannot get sound started at all. Either via smplayer, mplayer, mythbackend or v4lctl changes. Have I seen this reported ever? I saw something mentioned on a mailing list dated Aug 2010. But no resolution. Is it hardware ? I don't believe so, same hardware I have linux Suse 11.1 kernel 2.6.27 with custom built drivers from v4l (July 2009). This works 100%. Drivers I was using was the default from the kernel with 11.4 (below). I then switched to try the v4l media_build repository (plus your patch). Unfortunately I can't build the 2009 drivers to try that level out (too much has changed). Hope the information below is of use. Drivers used from the default SuSE build and also from the v4l media build. Linux pvr1 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux (SuSE 11.4) 04:01.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [14f1:8800] (re$ Subsystem: Hauppauge computer works Inc. WinTV 88x Video [0070:9600] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 32 (5000ns min, 13750ns max), Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 19 Region 0: Memory at e400 (32-bit, non-prefetchable) [size=16M] Capabilities: [44] Vital Product Data Unknown large resource type 04, will not decode more. Capabilities: [4c] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: cx8800 04:01.1 Multimedia controller [0480]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] [14f1:88$ Subsystem: Hauppauge computer works Inc. WinTV 88x Audio [0070:9600] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 32 (1000ns min, 63750ns max), Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 19 Region 0: Memory at e500 (32-bit, non-prefetchable) [size=16M] Capabilities: [4c] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: cx88_audio 04:01.2 Multimedia controller [0480]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] [14f1:880$ Subsystem: Hauppauge computer works Inc. WinTV 88x MPEG Encoder [0070:9600] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 32 (1500ns min, 22000ns max), Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 19 Region 0: Memory at e600 (32-bit, non-prefetchable) [size=16M] Capabilities: [4c] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: cx88-mpeg driver manager dmesg extract [6.341606] tda9887 1-0043: creating new instance [6.341607] tda9887 1-0043: tda988[5/6/7] found [6.342842] tuner 1-0043: Tuner 74 found with type(s) Radio TV. [6.346330] tuner 1-0061: Tuner -1 found with type(s) Radio TV. [6.386123] tveeprom 1-0050: Hauppauge model 96559, rev C5A0, serial# 825267 [6.386125] tveeprom 1-0050: MAC address is 00:0d:fe:0c:97:b3 [6.386127] tveeprom 1-0050: tuner model is Philips FMD1216ME (idx 100, type 63) [6.386129] tveeprom 1-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xf4) [6.386131] tveeprom 1-0050:
Re: [PATCH v2.6.38 resend 0/7] cx88 deadlock and data races
FYI I too experienced the problem of hanging and used the patch dated 6th April to get it working. However I do have the problem that sound does not always work/come on. Once it is started it stays, getting it started is not reliable. On 01/05/11 10:17, Jonathan Nieder wrote: Hi, Since v2.6.37 (BKL removal), trying to open a cx88-blackbird driven MPEG device would hang. Ben Hutchings provided an initial patch[1] to fix that, and Andi Huber helped a lot in finding races that patch had missed. Ben requested that I take authorship of the series, so I've done so. These patches have visited the list twice before[2], towards the beginning of this month. No feedback from maintainers or reviewers --- I'm beginning to wonder if I have the right list. Luckily two people[3][4] experiencing this problem on bugzilla were kind enough to test the series and found it worked okay. Patches are against v2.6.38 (but they do not conflict with anything in media-tree/staging/for_v2.6.40). The intent is to include them in v2.6.40 if possible. A copy of these patches is also available for convenient fetching from git://repo.or.cz/linux-2.6/jrn.git cx88-locking Thoughts? Jonathan Nieder (7): [media] cx88: protect per-device driver list with device lock [media] cx88: fix locking of sub-driver operations [media] cx88: hold device lock during sub-driver initialization [media] cx88: protect cx8802_devlist with a mutex [media] cx88: gracefully reject attempts to use unregistered cx88-blackbird driver [media] cx88: don't use atomic_t for core-mpeg_users [media] cx88: don't use atomic_t for core-users drivers/media/video/cx88/cx88-blackbird.c | 41 +++- drivers/media/video/cx88/cx88-dvb.c |2 + drivers/media/video/cx88/cx88-mpeg.c | 40 ++-- drivers/media/video/cx88/cx88-video.c |5 ++- drivers/media/video/cx88/cx88.h | 11 +-- 5 files changed, 61 insertions(+), 38 deletions(-) [1] http://bugs.debian.org/619827 [2] http://thread.gmane.org/gmane.linux.kernel/1118815 [3] https://bugzilla.kernel.org/show_bug.cgi?id=31792 [4] https://bugzilla.kernel.org/show_bug.cgi?id=31962 -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html