em28xx: no sound on board 1b80:e309 (sveon stv40)
Hello again! I managed to obtain a nice video input from my sveon usb stick using last em28xx v4l drivers from git and giving the module the hint card=19. But I have no audio.The card works flawlessy in windows. The internal chipsets in the card are: - USB interface: em2860 - Audio ADC: emp202 - Video ADC: saa7118h (philips) Attached is the relevant dmseg output. The usb audio card card correctly shows in pulseaudio volume control and is recognized as hw.2 by alsa: $ arecord -l List of CAPTURE Hardware Devices card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog] Subdevices: 3/3 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 card 2: STV40 [USB 2861 Device (SVEON STV40)], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 However, I'm not able to record any sound from it and mplayer says no audio: $ mplayer -tv device=/dev/video0:input=1:norm=PAL:alsa:immediatemode=0:audiorate=48000:amode=1:adevice=hw.2 tv:// MPlayer SVN-r33996-4.6.1 (C) 2000-2011 MPlayer Team mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing tv://. TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski olschew...@zpr.uni-koeln.de comment: first try, more to come ;-) Selected device: EM2860/SAA711X Reference Design Capabilities: video capture VBI capture device audio read/write streaming supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc; inputs: 0 = S-Video; 1 = Composite1; Current input: 1 Current format: YUYV v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument Selected input hasn't got a tuner! == Opening video decoder: [raw] RAW Uncompressed Video Movie-Aspect is undefined - no prescaling applied. VO: [vdpau] 640x480 = 640x480 Packed YUY2 Selected video codec: [rawyuy2] vfm: raw (RAW YUY2) == Audio: no sound Starting playback... V: 2.0 52/ 52 0% 5% 0.0% 0 0 v4l2: 59 frames successfully processed, 0 frames dropped. Maybe has something to do with the last line in dmesg: [ 403.359333] ALSA sound/usb/mixer.c:845 2:1: cannot get min/max values for control 2 (id 2) Any ideas? Mario [ 389.491488] Linux video capture interface: v2.00 [ 389.491490] WARNING: You are using an experimental version of the media stack. [ 389.491491] As the driver is backported to an older kernel, it doesn't offer [ 389.491491] enough quality for its usage in production. [ 389.491492] Use it with care. [ 389.491492] Latest git patches (needed if you report a bug to linux-media@vger.kernel.org): [ 389.491493] 1e73fa5d56333230854ae9460579eb2fcee8af02 [media] stb6100: Properly retrieve symbol rate [ 389.491494] e97a5d893fdf45c20799b72a1c11dca3b282c89c [media] fs/compat_ioctl: it needs to see the DVBv3 compat stuff [ 389.491495] 53c91373bdd74f7e11d2726046a90b986c1ed650 [media] dvb: remove the extra parameter on get_frontend [ 389.518213] usbcore: registered new interface driver em28xx [ 389.518215] em28xx driver loaded [ 401.754076] usb 1-5.3: new high speed USB device number 4 using ehci_hcd [ 401.844655] usb 1-5.3: New USB device found, idVendor=1b80, idProduct=e309 [ 401.844658] usb 1-5.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 401.844660] usb 1-5.3: Product: USB 2861 Device (SVEON STV40) [ 401.845694] em28xx: New device USB 2861 Device (SVEON STV40) @ 480 Mbps (1b80:e309, interface 0, class 0) [ 401.845828] em28xx #0: chip ID is em2860 [ 401.947993] em28xx #0: i2c eeprom 00: 1a eb 67 95 80 1b 09 e3 50 00 20 03 6a 3c 00 00 [ 401.948000] em28xx #0: i2c eeprom 10: 00 00 04 57 06 02 00 00 00 00 00 00 00 00 00 00 [ 401.948005] em28xx #0: i2c eeprom 20: 02 00 01 00 f0 00 01 00 00 00 00 00 5b 00 00 00 [ 401.948010] em28xx #0: i2c eeprom 30: 00 00 20 40 20 80 02 20 01 01 02 01 00 00 00 00 [ 401.948015] em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 401.948020] em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 401.948025] em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 3c 03 55 00 53 00 [ 401.948030] em28xx #0: i2c eeprom 70: 42 00 20 00 32 00 38 00 36 00 31 00 20 00 44 00 [ 401.948035] em28xx #0: i2c eeprom 80: 65 00 76 00 69 00 63 00 65 00 20 00 28 00 53 00 [ 401.948040] em28xx #0: i2c eeprom 90: 56 00 45 00 4f 00 4e 00 20 00 53 00 54 00 56 00 [ 401.948045] em28xx #0: i2c eeprom a0: 34 00 30 00 29 00 00 00
Re: em28xx: no sound on board 1b80:e309 (sveon stv40)
Ok boys: just to let you know that everything works now. thinking that the problem was with the audio input, I noticed that card=64 had an amux while card=19 no. .amux = EM28XX_AMUX_LINE_IN, So I tried this card and modified the mplayer options accordingly: mplayer -tv device=/dev/video0:input=0:norm=PAL:forceaudio:alsa:immediatemode=0:audiorate=48000:amode=1:adevice=hw.2 tv:// notice the forceaudio parameter that reads the audio even if no source is reported from v4l (The same approach with card=19 does not work) The output was a bit slugglish so I switched off pulse audio control of the board (https://bbs.archlinux.org/viewtopic.php?id=114228) and now everything is ok! I hope this will help some lonenly googlers in the future :) Regards, Mario On 6 January 2012 18:48, Mario Ceresa mrcer...@gmail.com wrote: Hello again! I managed to obtain a nice video input from my sveon usb stick using last em28xx v4l drivers from git and giving the module the hint card=19. But I have no audio.The card works flawlessy in windows. The internal chipsets in the card are: - USB interface: em2860 - Audio ADC: emp202 - Video ADC: saa7118h (philips) Attached is the relevant dmseg output. The usb audio card card correctly shows in pulseaudio volume control and is recognized as hw.2 by alsa: $ arecord -l List of CAPTURE Hardware Devices card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog] Subdevices: 3/3 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 card 2: STV40 [USB 2861 Device (SVEON STV40)], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 However, I'm not able to record any sound from it and mplayer says no audio: $ mplayer -tv device=/dev/video0:input=1:norm=PAL:alsa:immediatemode=0:audiorate=48000:amode=1:adevice=hw.2 tv:// MPlayer SVN-r33996-4.6.1 (C) 2000-2011 MPlayer Team mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing tv://. TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski olschew...@zpr.uni-koeln.de comment: first try, more to come ;-) Selected device: EM2860/SAA711X Reference Design Capabilities: video capture VBI capture device audio read/write streaming supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc; inputs: 0 = S-Video; 1 = Composite1; Current input: 1 Current format: YUYV v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument Selected input hasn't got a tuner! == Opening video decoder: [raw] RAW Uncompressed Video Movie-Aspect is undefined - no prescaling applied. VO: [vdpau] 640x480 = 640x480 Packed YUY2 Selected video codec: [rawyuy2] vfm: raw (RAW YUY2) == Audio: no sound Starting playback... V: 2.0 52/ 52 0% 5% 0.0% 0 0 v4l2: 59 frames successfully processed, 0 frames dropped. Maybe has something to do with the last line in dmesg: [ 403.359333] ALSA sound/usb/mixer.c:845 2:1: cannot get min/max values for control 2 (id 2) Any ideas? Mario -- 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: em28xx: no sound on board 1b80:e309 (sveon stv40)
On Fri, Jan 6, 2012 at 1:29 PM, Mario Ceresa mrcer...@gmail.com wrote: Ok boys: just to let you know that everything works now. thinking that the problem was with the audio input, I noticed that card=64 had an amux while card=19 no. .amux = EM28XX_AMUX_LINE_IN, So I tried this card and modified the mplayer options accordingly: mplayer -tv device=/dev/video0:input=0:norm=PAL:forceaudio:alsa:immediatemode=0:audiorate=48000:amode=1:adevice=hw.2 tv:// notice the forceaudio parameter that reads the audio even if no source is reported from v4l (The same approach with card=19 does not work) The output was a bit slugglish so I switched off pulse audio control of the board (https://bbs.archlinux.org/viewtopic.php?id=114228) and now everything is ok! I hope this will help some lonenly googlers in the future :) Regards, Mario Hi Mario, Since you've spent the time to figure out the details of your particular hardware, you should really consider submitting a patch to the em28xx driver which adds your device's USB ID. That would allow others who have that hardware to have it work out of the box with no need for figuring out the correct cardid value through experimentation as you had to. Cheers, Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com -- 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: em28xx: no sound on board 1b80:e309 (sveon stv40)
Hello Devin, you're right: here it goes! Best, Mario On 6 January 2012 19:33, Devin Heitmueller dheitmuel...@kernellabs.com wrote: On Fri, Jan 6, 2012 at 1:29 PM, Mario Ceresa mrcer...@gmail.com wrote: Ok boys: just to let you know that everything works now. thinking that the problem was with the audio input, I noticed that card=64 had an amux while card=19 no. .amux = EM28XX_AMUX_LINE_IN, So I tried this card and modified the mplayer options accordingly: mplayer -tv device=/dev/video0:input=0:norm=PAL:forceaudio:alsa:immediatemode=0:audiorate=48000:amode=1:adevice=hw.2 tv:// notice the forceaudio parameter that reads the audio even if no source is reported from v4l (The same approach with card=19 does not work) The output was a bit slugglish so I switched off pulse audio control of the board (https://bbs.archlinux.org/viewtopic.php?id=114228) and now everything is ok! I hope this will help some lonenly googlers in the future :) Regards, Mario Hi Mario, Since you've spent the time to figure out the details of your particular hardware, you should really consider submitting a patch to the em28xx driver which adds your device's USB ID. That would allow others who have that hardware to have it work out of the box with no need for figuring out the correct cardid value through experimentation as you had to. Cheers, Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com From dd334663b202eb0569b506273c75f3a0ede6b803 Mon Sep 17 00:00:00 2001 From: Mario Ceresa mrcer...@gmail.com Date: Fri, 6 Jan 2012 20:00:12 +0100 Subject: [PATCH] Added model Sveon STV40 --- linux/drivers/media/video/em28xx/em28xx-cards.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/linux/drivers/media/video/em28xx/em28xx-cards.c b/linux/drivers/media/video/em28xx/em28xx-cards.c index 6cab22d..d79c5d1 100644 --- a/linux/drivers/media/video/em28xx/em28xx-cards.c +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c @@ -2033,6 +2033,8 @@ struct usb_device_id em28xx_id_table[] = { .driver_info = EM28174_BOARD_PCTV_460E }, { USB_DEVICE(0x2040, 0x1605), .driver_info = EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C }, + { USB_DEVICE(0x1b80, 0xe309), /* Sveon STV40 */ + .driver_info = EM2860_BOARD_EASYCAP }, { }, }; MODULE_DEVICE_TABLE(usb, em28xx_id_table); -- 1.7.7.5
Re: em28xx: no sound on board 1b80:e309 (sveon stv40)
On 06-01-2012 17:16, Mario Ceresa wrote: Hello Devin, you're right: here it goes! Hi Mario, Plese send it with your Signed-off-by: It is a requirement for merging the patches upstream. Best, Mario On 6 January 2012 19:33, Devin Heitmueller dheitmuel...@kernellabs.com wrote: On Fri, Jan 6, 2012 at 1:29 PM, Mario Ceresa mrcer...@gmail.com wrote: Ok boys: just to let you know that everything works now. thinking that the problem was with the audio input, I noticed that card=64 had an amux while card=19 no. .amux = EM28XX_AMUX_LINE_IN, So I tried this card and modified the mplayer options accordingly: mplayer -tv device=/dev/video0:input=0:norm=PAL:forceaudio:alsa:immediatemode=0:audiorate=48000:amode=1:adevice=hw.2 tv:// notice the forceaudio parameter that reads the audio even if no source is reported from v4l (The same approach with card=19 does not work) The output was a bit slugglish so I switched off pulse audio control of the board (https://bbs.archlinux.org/viewtopic.php?id=114228) and now everything is ok! I hope this will help some lonenly googlers in the future :) Regards, Mario Hi Mario, Since you've spent the time to figure out the details of your particular hardware, you should really consider submitting a patch to the em28xx driver which adds your device's USB ID. That would allow others who have that hardware to have it work out of the box with no need for figuring out the correct cardid value through experimentation as you had to. Cheers, Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com -- 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: em28xx: no sound on board 1b80:e309 (sveon stv40)
Hi Mauro, Here it is. Does the Signed-off-by: go in the changelog, right? Many thanks to all the developers for the hard work: it is a joy to see the card working :) Best, Mario On 6 January 2012 20:21, Mauro Carvalho Chehab mche...@redhat.com wrote: On 06-01-2012 17:16, Mario Ceresa wrote: Hello Devin, you're right: here it goes! Hi Mario, Plese send it with your Signed-off-by: It is a requirement for merging the patches upstream. Best, Mario On 6 January 2012 19:33, Devin Heitmueller dheitmuel...@kernellabs.com wrote: On Fri, Jan 6, 2012 at 1:29 PM, Mario Ceresa mrcer...@gmail.com wrote: Ok boys: just to let you know that everything works now. thinking that the problem was with the audio input, I noticed that card=64 had an amux while card=19 no. .amux = EM28XX_AMUX_LINE_IN, So I tried this card and modified the mplayer options accordingly: mplayer -tv device=/dev/video0:input=0:norm=PAL:forceaudio:alsa:immediatemode=0:audiorate=48000:amode=1:adevice=hw.2 tv:// notice the forceaudio parameter that reads the audio even if no source is reported from v4l (The same approach with card=19 does not work) The output was a bit slugglish so I switched off pulse audio control of the board (https://bbs.archlinux.org/viewtopic.php?id=114228) and now everything is ok! I hope this will help some lonenly googlers in the future :) Regards, Mario Hi Mario, Since you've spent the time to figure out the details of your particular hardware, you should really consider submitting a patch to the em28xx driver which adds your device's USB ID. That would allow others who have that hardware to have it work out of the box with no need for figuring out the correct cardid value through experimentation as you had to. Cheers, Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com From 4599c56dedc80ec345ed87bbbae36eaa02184235 Mon Sep 17 00:00:00 2001 From: Mario Ceresa mrcer...@gmail.com Date: Fri, 6 Jan 2012 20:00:12 +0100 Subject: [PATCH] Added model Sveon STV40 Signed-off-by: Mario Ceresa mrcer...@gmail.com --- linux/drivers/media/video/em28xx/em28xx-cards.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/linux/drivers/media/video/em28xx/em28xx-cards.c b/linux/drivers/media/video/em28xx/em28xx-cards.c index 6cab22d..d79c5d1 100644 --- a/linux/drivers/media/video/em28xx/em28xx-cards.c +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c @@ -2033,6 +2033,8 @@ struct usb_device_id em28xx_id_table[] = { .driver_info = EM28174_BOARD_PCTV_460E }, { USB_DEVICE(0x2040, 0x1605), .driver_info = EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C }, + { USB_DEVICE(0x1b80, 0xe309), /* Sveon STV40 */ + .driver_info = EM2860_BOARD_EASYCAP }, { }, }; MODULE_DEVICE_TABLE(usb, em28xx_id_table); -- 1.7.7.5