Skip to contentSkip to conversation

No audio with Hauppauge WinTV-HVR-900 (R2)

linux-dvb Nicola Soranzo 4 participants 7 messages Jan 7, 2009 – Jan 13, 2009 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi everybody,
I have a Hauppauge WinTV-HVR-900 (R2) USB stick, model 65018, which has Empiatech Em2880 chip, Xceive XC3028 tuner and Micronas drx397x DVB-T demodulator.
On the same laptop I have an Intel High Definition Audio soundcard and a Syntek DC-1125 webcam.

Both analog and DVB-T work under Windows.
I'm using v4l-dvb from hg repo over Fedora 10 kernel 2.6.27.9 and I have correctly installed xc3028-v27.fw firmware.
I know that DVB-T chip is not yet supported, so I tried with analog TV. I can see analog video, but no audio with any program I used (tvtime, xawtv, MythTV).
I'm attaching the part of /var/log/messages after the stick attach and the output of the following commands:
aplay -l
arecord -l
cat /proc/asound/cards
cat /proc/asound/devices
cat /proc/asound/modules
cat /proc/asound/pcm

If any other information may be useful, just ask.
Thanks in advance for your help,
Nicola

Jan  7 10:15:26 ozzy kernel: usb 1-1: new high speed USB device using ehci_hcd and address 3
Jan  7 10:15:26 ozzy kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan  7 10:15:26 ozzy kernel: usb 1-1: New USB device found, idVendor=2040, idProduct=6502
Jan  7 10:15:26 ozzy kernel: usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=2
Jan  7 10:15:26 ozzy kernel: usb 1-1: Product: WinTV HVR-900
Jan  7 10:15:26 ozzy kernel: usb 1-1: SerialNumber: 4030546469
Jan  7 10:15:26 ozzy kernel: em28xx: New device WinTV HVR-900 @ 480 Mbps (2040:6502, interface 0, class 0)
Jan  7 10:15:26 ozzy kernel: em28xx #0: Identified as Hauppauge WinTV HVR 900 (R2) (card=18)
Jan  7 10:15:26 ozzy kernel: em28xx #0: chip ID is em2882/em2883
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 00: 1a eb 67 95 40 20 02 65 d0 12 5c 03 82 1e 6a 18
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 10: 00 00 24 57 66 07 01 00 00 00 00 00 00 00 00 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 20: 46 00 01 00 f0 10 02 00 b8 00 00 00 5b e0 00 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 30: 00 00 20 40 20 6e 02 20 10 01 01 01 00 00 00 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 18 03 34 00 30 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 70: 33 00 30 00 35 00 34 00 36 00 34 00 36 00 39 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 80: 00 00 1e 03 57 00 69 00 6e 00 54 00 56 00 20 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom 90: 48 00 56 00 52 00 2d 00 39 00 30 00 30 00 00 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom a0: 84 12 00 00 05 50 1a 7f d4 78 23 fa fd d0 38 89
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom b0: ff 00 00 00 04 84 0a 00 01 01 20 77 00 40 25 42
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom c0: 3d f0 74 02 01 00 01 79 96 00 00 00 00 00 00 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom d0: 84 12 00 00 05 50 1a 7f d4 78 23 fa fd d0 38 89
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom e0: ff 00 00 00 04 84 0a 00 01 01 20 77 00 40 25 42
Jan  7 10:15:26 ozzy kernel: em28xx #0: i2c eeprom f0: 3d f0 74 02 01 00 01 79 96 00 00 00 00 00 00 00
Jan  7 10:15:26 ozzy kernel: em28xx #0: EEPROM ID= 0x9567eb1a, EEPROM hash = 0x353f3fdd
Jan  7 10:15:26 ozzy kernel: em28xx #0: EEPROM info:
Jan  7 10:15:26 ozzy kernel: em28xx #0:	AC97 audio (5 sample rates)
Jan  7 10:15:26 ozzy kernel: em28xx #0:	500mA max power
Jan  7 10:15:26 ozzy kernel: em28xx #0:	Table at 0x24, strings=0x1e82, 0x186a, 0x0000
Jan  7 10:15:26 ozzy kernel: tveeprom 1-0050: Hauppauge model 65018, rev B3C0, serial# 4014629
Jan  7 10:15:26 ozzy kernel: tveeprom 1-0050: tuner model is Xceive XC3028 (idx 120, type 71)
Jan  7 10:15:26 ozzy kernel: tveeprom 1-0050: TV standards PAL(B/G) PAL(I) PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xd4)
Jan  7 10:15:26 ozzy kernel: tveeprom 1-0050: audio processor is None (idx 0)
Jan  7 10:15:26 ozzy kernel: tveeprom 1-0050: has radio
Jan  7 10:15:27 ozzy kernel: tvp5150' 1-005c: chip found @ 0xb8 (em28xx #0)
Jan  7 10:15:27 ozzy kernel: tuner' 1-0061: chip found @ 0xc2 (em28xx #0)
Jan  7 10:15:27 ozzy kernel: xc2028 1-0061: creating new instance
Jan  7 10:15:27 ozzy kernel: xc2028 1-0061: type set to XCeive xc2028/xc3028 tuner
Jan  7 10:15:27 ozzy kernel: firmware: requesting xc3028-v27.fw
Jan  7 10:15:27 ozzy kernel: xc2028 1-0061: Loading 80 firmware images from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
Jan  7 10:15:27 ozzy kernel: xc2028 1-0061: Loading firmware for type=BASE MTS (5), id 0000000000000000.
Jan  7 10:15:28 ozzy kernel: xc2028 1-0061: Loading firmware for type=MTS (4), id 000000000000b700.
Jan  7 10:15:28 ozzy kernel: xc2028 1-0061: Loading SCODE for type=MTS LCD NOGD MONO IF SCODE HAS_IF_4500 (6002b004), id 000000000000b700.
Jan  7 10:15:28 ozzy kernel: em28xx #0: Config register raw data: 0xd0
Jan  7 10:15:28 ozzy kernel: em28xx #0: AC97 vendor ID = 0xffffffff
Jan  7 10:15:28 ozzy kernel: em28xx #0: AC97 features = 0x6a90
Jan  7 10:15:28 ozzy kernel: em28xx #0: Empia 202 AC97 audio processor detected
Jan  7 10:15:28 ozzy kernel: tvp5150' 1-005c: tvp5150am1 detected.
Jan  7 10:15:28 ozzy kernel: em28xx #0: v4l2 driver version 0.1.1
Jan  7 10:15:28 ozzy kernel: em28xx #0: V4L2 device registered as /dev/video1 and /dev/vbi0
Jan  7 10:15:28 ozzy kernel: usbcore: registered new interface driver em28xx
Jan  7 10:15:28 ozzy kernel: em28xx driver loaded
Jan  7 10:15:28 ozzy kernel: em28xx-audio.c: probing for em28x1 non standard usbaudio
Jan  7 10:15:28 ozzy kernel: em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
Jan  7 10:15:28 ozzy kernel: Em28xx: Initialized (Em28xx Audio Extension) extension
Jan  7 10:15:28 ozzy kernel: tvp5150' 1-005c: tvp5150am1 detected.

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC880 Analog [ALC880 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC880 Digital [ALC880 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC880 Analog [ALC880 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC880 Analog [ALC880 Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 1: default [USB2.0 Video ], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

0 [Intel ]: HDA-Intel - HDA Intel

                      HDA Intel at 0xfebf8000 irq 16
 1 [default        ]: USB-Audio - USB2.0 Video       
                      Syntek Semicon.     USB2.0 Video        at usb-0000:00:1d.7-5, high speed

2 [Em28xx Audio ]: Empia Em28xx AudEm28xx Audio - Em28xx Audio
Empia Em28xx Audio

2: : timer
3: [ 1- 0]: digital audio capture
4: [ 1] : control
5: : sequencer
6: [ 0- 2]: digital audio capture
7: [ 0- 1]: digital audio playback
8: [ 0- 0]: digital audio playback
9: [ 0- 0]: digital audio capture
10: [ 0- 1]: hardware dependent
11: [ 0- 0]: hardware dependent
12: [ 0] : control
13: [ 2- 0]: digital audio capture
14: [ 2] : control

0 snd_hda_intel
1 snd_usb_audio
2 em28xx_alsa

00-00: ALC880 Analog : ALC880 Analog : playback 1 : capture 1 00-01: ALC880 Digital : ALC880 Digital : playback 1 00-02: ALC880 Analog : ALC880 Analog : capture 2 01-00: USB Audio : USB Audio : capture 1
02-00: Em28xx Audio : Empia 28xx Capture : capture 1

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#1 lore raw
Quoted 22 lines · On Wed, 7 Jan 2009 20:31:27 +0100 Nicola Soranzo <[email protected]> wrote:

Hi everybody,
I have a Hauppauge WinTV-HVR-900 (R2) USB stick, model 65018, which has Empiatech Em2880 chip, Xceive XC3028 tuner and Micronas drx397x DVB-T demodulator.
On the same laptop I have an Intel High Definition Audio soundcard and a Syntek DC-1125 webcam.

Both analog and DVB-T work under Windows.
I'm using v4l-dvb from hg repo over Fedora 10 kernel 2.6.27.9 and I have correctly installed xc3028-v27.fw firmware.
I know that DVB-T chip is not yet supported, so I tried with analog TV. I can see analog video, but no audio with any program I used (tvtime, xawtv, MythTV).
I'm attaching the part of /var/log/messages after the stick attach and the output of the following commands:
aplay -l
arecord -l
cat /proc/asound/cards
cat /proc/asound/devices
cat /proc/asound/modules
cat /proc/asound/pcm

Quoted 3 lines

If any other information may be useful, just ask.
Thanks in advance for your help,
Nicola

For you to listen on audio, you need to get the audio from the digital em28xx input and write it on your sound card output. Unfortunately, most programs don't do this. The only one that does is mplayer, if you pass the proper parameters for it. Something like (for PAL-M std):

mplayer -tv driver=v4l2:device=/dev/video0:norm=PAL-M:chanlist=us-bcast:alsa=1:adevice=hw.1:audiorate=48000:forceaudio=1:immediatemode=0:amode=1 tv://

Assuming that em28xx is detected as hw:1 and your audio as hw:0. You can check the wiki for more help about this subject.

Cheers,
Mauro

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#2 lore raw
In reply to Nicola Soranzo
Quoted 23 lines · Nicola Soranzo

Hi everybody,
I have a Hauppauge WinTV-HVR-900 (R2) USB stick, model 65018, which has Empiatech Em2880 chip, Xceive XC3028 tuner and Micronas drx397x DVB-T demodulator.
On the same laptop I have an Intel High Definition Audio soundcard and a Syntek
DC-1125 webcam.

Both analog and DVB-T work under Windows.
I'm using v4l-dvb from hg repo over Fedora 10 kernel 2.6.27.9 and I have correctly installed xc3028-v27.fw firmware.
I know that DVB-T chip is not yet supported, so I tried with analog TV. I can see analog video, but no audio with any program I used (tvtime, xawtv, MythTV).
I'm attaching the part of /var/log/messages after the stick attach and the output of the following commands:
aplay -l
arecord -l
cat /proc/asound/cards
cat /proc/asound/devices
cat /proc/asound/modules
cat /proc/asound/pcm

Quoted 4 lines

If any other information may be useful, just ask.
Thanks in advance for your help,
Nicola

you need a different driver Markuses em2880_new from here

http://mcentral.de/hg/~mrec/em28xx-new

mailing list

http://mcentral.de/mailman/listinfo/em28xx

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 47 lines · On Thu, 8 Jan 2009 03:00:33 +0100 Nicola Soranzo <[email protected]> wrote:

Alle giovedì 08 gennaio 2009, Mauro Carvalho Chehab ha scritto:

Quoted 25 lines
Quoted 9 lines · On Wed, 7 Jan 2009 20:31:27 +0100 Nicola Soranzo <[email protected]> wrote:

Hi everybody,
I have a Hauppauge WinTV-HVR-900 (R2) USB stick, model 65018, which has Empiatech Em2880 chip, Xceive XC3028 tuner and Micronas drx397x DVB-T demodulator.
On the same laptop I have an Intel High Definition Audio soundcard and a Syntek DC-1125 webcam.
...
I can see analog video, but no audio with any program I used (tvtime, xawtv, MythTV).

Quoted 8 lines

I'm attaching the part of /var/log/messages after the stick attach and the output of the following commands:
aplay -l
arecord -l
cat /proc/asound/cards
cat /proc/asound/devices
cat /proc/asound/modules
cat /proc/asound/pcm

For you to listen on audio, you need to get the audio from the digital em28xx input and write it on your sound card output. Unfortunately, most programs don't do this. The only one that does is mplayer, if you pass the proper parameters for it. Something like (for PAL-M std):

Quoted 6 lines

mplayer -tv driver=v4l2:device=/dev/video0:norm=PAL-M:chanlist=us-bcast:alsa=1:adevice= hw.1:audiorate=48000:forceaudio=1:immediatemode=0:amode=1 tv://

Assuming that em28xx is detected as hw:1 and your audio as hw:0. You can check the wiki for more help about this subject.

I also have a webcam, so the tv is /dev/video1 and relative audio is hw.2 (see attachments from my previous email).
Unfortunately I had tried previously with mplayer and using:

mplayer -tv driver=v4l2:device=/dev/video1:norm=PAL:chanlist=europe-west tv://

I can see the video without audio, while with:

mplayer -tv driver=v4l2:device=/dev/video1:norm=PAL:chanlist=europe- west:alsa=1:adevice=hw.2:audiorate=48000:forceaudio=1:immediatemode=0:amode=1 tv://

mplayer exits immediately with this error:

Quoted 11 lines

v4l2: current audio mode is : STEREO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card Error opening audio: Permission denied
v4l2: 0 frames successfully processed, 0 frames dropped.

This is a udev issue. udev is creating the audio device without permission for your user to access it. Or you fix udev, or you'll need to run mplayer as a root (sigh!).

Cheers,
Mauro

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#5 lore raw

Alle giovedì 08 gennaio 2009, Mauro Carvalho Chehab ha scritto:

Quoted 64 lines

On Thu, 8 Jan 2009 03:00:33 +0100

Quoted 49 lines · Nicola Soranzo

Alle giovedì 08 gennaio 2009, Mauro Carvalho Chehab ha scritto:

Quoted 26 lines

On Wed, 7 Jan 2009 20:31:27 +0100

Quoted 9 lines · Nicola Soranzo

Hi everybody,
I have a Hauppauge WinTV-HVR-900 (R2) USB stick, model 65018, which has Empiatech Em2880 chip, Xceive XC3028 tuner and Micronas drx397x DVB-T demodulator.
On the same laptop I have an Intel High Definition Audio soundcard and a Syntek DC-1125 webcam.
...
I can see analog video, but no audio with any program I used (tvtime, xawtv, MythTV).

Quoted 8 lines

I'm attaching the part of /var/log/messages after the stick attach and the output of the following commands:
aplay -l
arecord -l
cat /proc/asound/cards
cat /proc/asound/devices
cat /proc/asound/modules
cat /proc/asound/pcm

For you to listen on audio, you need to get the audio from the digital em28xx input and write it on your sound card output. Unfortunately, most programs don't do this. The only one that does is mplayer, if you pass the proper parameters for it. Something like (for PAL-M std):

Quoted 6 lines

mplayer -tv driver=v4l2:device=/dev/video0:norm=PAL-M:chanlist=us-bcast:alsa=1:adev ice= hw.1:audiorate=48000:forceaudio=1:immediatemode=0:amode=1 tv://

Assuming that em28xx is detected as hw:1 and your audio as hw:0. You can check the wiki for more help about this subject.

I also have a webcam, so the tv is /dev/video1 and relative audio is hw.2 (see attachments from my previous email).
Unfortunately I had tried previously with mplayer and using:

mplayer -tv driver=v4l2:device=/dev/video1:norm=PAL:chanlist=europe-west tv://

I can see the video without audio, while with:

mplayer -tv driver=v4l2:device=/dev/video1:norm=PAL:chanlist=europe- west:alsa=1:adevice=hw.2:audiorate=48000:forceaudio=1:immediatemode=0:amo de=1 tv://

mplayer exits immediately with this error:

Quoted 11 lines

v4l2: current audio mode is : STEREO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card Error opening audio: Permission denied
v4l2: 0 frames successfully processed, 0 frames dropped.

Quoted 3 lines

This is a udev issue. udev is creating the audio device without permission for your user to access it. Or you fix udev, or you'll need to run mplayer as a root (sigh!).

Thanks Mauro,
running mplayer with sudo let me have the audio working!

Now I'm trying to find the root of the problem.
Using getfacl I discovered that the following devices created by the em28xx module:
/dev/audio2
/dev/dsp2
/dev/snd/controlC2
/dev/snd/pcmC2D0c
don't have the correct ACL permissions for the currently logged in user.

This ConsoleKit fail is caused by HAL, which doesn't see the new audio device, in fact

$ lshal|grep '/dev/snd/controlC'
  access_control.file = '/dev/snd/controlC1'  (string)
  alsa.device_file = '/dev/snd/controlC1'  (string)
  linux.device_file = '/dev/snd/controlC1'  (string)
  access_control.file = '/dev/snd/controlC0'  (string)
  alsa.device_file = '/dev/snd/controlC0'  (string)
  linux.device_file = '/dev/snd/controlC0'  (string)

with no appearance of /dev/snd/controlC2 (and the same for the other devices mentioned before).

This may be caused by the absence in /sys/class/sound/card2/ of the device symlink?
I mean, for the WinTV in /sys/class/sound/card2/ I have:

$ ls -l /sys/class/sound/card2/
totale 0
drwxr-xr-x 3 root root    0 11 gen 03:49 audio2
drwxr-xr-x 3 root root    0 11 gen 03:49 controlC2
drwxr-xr-x 3 root root    0 11 gen 03:49 dsp2
drwxr-xr-x 3 root root    0 11 gen 03:49 mixer2
drwxr-xr-x 3 root root    0 11 gen 03:49 pcmC2D0c
drwxr-xr-x 2 root root    0 11 gen 04:00 power
lrwxrwxrwx 1 root root    0 11 gen 03:49 subsystem -> ../../../../class/sound
-rw-r--r-- 1 root root 4096 11 gen 04:00 uevent

while e.g. for the webcam I have:

$ ls -l /sys/class/sound/card1/
totale 0
drwxr-xr-x 3 root root    0 11 gen 04:04 audio1
drwxr-xr-x 3 root root    0 11 gen 04:04 controlC1
lrwxrwxrwx 1 root root    0 11 gen 04:07 device -> ../../../1-5:1.1
drwxr-xr-x 3 root root    0 11 gen 04:04 dsp1
drwxr-xr-x 3 root root    0 11 gen 04:04 mixer1
drwxr-xr-x 3 root root    0 11 gen 04:04 pcmC1D0c
drwxr-xr-x 2 root root    0 11 gen 04:07 power
lrwxrwxrwx 1 root root    0 11 gen 04:07 subsystem -> 
../../../../../../../../class/sound
-rw-r--r-- 1 root root 4096 11 gen 04:07 uevent

Thanks again for your help!
Nicola

#6 lore raw

Alle domenica 11 gennaio 2009, Nicola Soranzo ha scritto:

Quoted 67 lines

Alle giovedì 08 gennaio 2009, Mauro Carvalho Chehab ha scritto:

Quoted 66 lines

On Thu, 8 Jan 2009 03:00:33 +0100

Quoted 62 lines · Nicola Soranzo

Alle giovedì 08 gennaio 2009, Mauro Carvalho Chehab ha scritto:

Quoted 27 lines

On Wed, 7 Jan 2009 20:31:27 +0100

Quoted 9 lines · Nicola Soranzo

Hi everybody,
I have a Hauppauge WinTV-HVR-900 (R2) USB stick, model 65018, which has Empiatech Em2880 chip, Xceive XC3028 tuner and Micronas drx397x DVB-T demodulator.
On the same laptop I have an Intel High Definition Audio soundcard and a Syntek DC-1125 webcam.
...
I can see analog video, but no audio with any program I used (tvtime, xawtv, MythTV).

Quoted 8 lines

I'm attaching the part of /var/log/messages after the stick attach and the output of the following commands:
aplay -l
arecord -l
cat /proc/asound/cards
cat /proc/asound/devices
cat /proc/asound/modules
cat /proc/asound/pcm

For you to listen on audio, you need to get the audio from the digital em28xx input and write it on your sound card output. Unfortunately, most programs don't do this. The only one that does is mplayer, if you pass the proper parameters for it. Something like (for PAL-M std):

Quoted 7 lines

mplayer -tv driver=v4l2:device=/dev/video0:norm=PAL-M:chanlist=us-bcast:alsa=1:ad ev ice= hw.1:audiorate=48000:forceaudio=1:immediatemode=0:amode=1 tv://

Assuming that em28xx is detected as hw:1 and your audio as hw:0. You can check the wiki for more help about this subject.

I also have a webcam, so the tv is /dev/video1 and relative audio is hw.2 (see attachments from my previous email). Unfortunately I had tried previously with mplayer and using:

mplayer -tv driver=v4l2:device=/dev/video1:norm=PAL:chanlist=europe-west tv://

I can see the video without audio, while with:

mplayer -tv driver=v4l2:device=/dev/video1:norm=PAL:chanlist=europe- west:alsa=1:adevice=hw.2:audiorate=48000:forceaudio=1:immediatemode=0:a mo de=1 tv://

mplayer exits immediately with this error:

v4l2: current audio mode is : STEREO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card Error opening audio: Permission denied
v4l2: 0 frames successfully processed, 0 frames dropped.

Quoted 6 lines
Quoted 3 lines

This is a udev issue. udev is creating the audio device without permission for your user to access it. Or you fix udev, or you'll need to run mplayer as a root (sigh!).

Thanks Mauro,
running mplayer with sudo let me have the audio working!

I noticed that every time I close mplayer in sudo mode, in /var/log/messages these messages appear:

Jan 13 16:21:51 ozzy kernel: em28xx #0: resubmit of audio urb failed 
(error=-2)
Jan 13 16:21:51 ozzy kernel: em28xx #0: resubmit of audio urb failed 
(error=-2)
Jan 13 16:21:51 ozzy kernel: em28xx #0: resubmit of audio urb failed 
(error=-2)
Jan 13 16:21:51 ozzy kernel: em28xx #0: resubmit of audio urb failed 
(error=-2)
Jan 13 16:21:51 ozzy kernel: em28xx #0: resubmit of audio urb failed 
(error=-2)
Jan 13 16:21:51 ozzy kernel: An underrun very likely occurred. Ignoring it.

Also, if I run

sudo arecord -D hw:2 -f dat prova.wav

arecord starts recording, but when I interrupt it with control-C I have a complete kernel crash (even the Caps-Lock key is dead). For what I can understand, the problem can be related to IRQ.
Can somebody help me?

Thanks,
Nicola

#7 lore raw
Quoted 8 lines · Nicola Soranzo

Also, if I run

sudo arecord -D hw:2 -f dat prova.wav

arecord starts recording, but when I interrupt it with control-C I have a complete kernel crash (even the Caps-Lock key is dead). For what I can understand, the problem can be related to IRQ.
Can somebody help me?

I am already debugging that exact same issue. I am waiting for a PCI serial card to show up (ordered last night), but as soon as it does I will isolate the problem.

Devin

Signature · 3 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller