Re: em28xx based analog tv tuner USB KWorld PVR-TV 305U (eb1a:e305): no sound

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also tried latest openSUSE 11.4

> uname -a
Linux linux-tecd.site 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21
10:34:10 +0100 i686 athlon i386 GNU/Linux

alsa 1.0.24.1-3.1

Still the same issue, "Error reading audio: Input/output error"



On Sun, Mar 13, 2011 at 10:36, tosiara <tosiara@xxxxxxxxx> wrote:
>
> Hello
>
> I've made tests with my *KWorld* usb tuner:
>
> Â*Model*: USB KWorld PVR-TV 305U
> Â*Vendor/Product id*: [eb1a:e305].
>
> Â*Tests made*:
>
> Â Â - Analog video [Worked]
> Â Â - Analog audio [not working, details attached below]
>
>
> Hardware and system details:
>
> # lsusb -s 002:003
>
> Bus 002 Device 003: ID eb1a:e305 eMPIA Technology, Inc.
>
> # uname -a
> Linux vista.linuks.lan 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 i686 athlon i386 GNU/Linux
>
> # cat /etc/issue
> Welcome to openSUSE 11.3 "Teal" - Kernel \r (\l).
>
> ALSA version: 1.0.24.1-72.1
>
>
> Build latest dvb drivers from linuxtv.org:
>
> # lsmod
> Module         ÂSize ÂUsed by
> aes_i586 Â Â Â Â Â Â Â Â7396 Â1
> aes_generic      Â27151 Â1 aes_i586
> fuse          65789 Â3
> ip6t_LOG Â Â Â Â Â Â Â Â5150 Â11
> xt_tcpudp        2107 Â25
> xt_pkttype        912 Â4
> xt_physdev       Â1539 Â2
> ipt_LOG Â Â Â Â Â Â Â Â 5119 Â11
> xt_limit        Â1705 Â22
> rfcomm         69557 Â4
> vboxnetadp       Â7018 Â0
> vboxnetflt       16967 Â0
> sco          Â16711 Â2
> af_packet       Â19512 Â4
> bridge         71700 Â1
> stp           1719 Â1 bridge
> llc           5093 Â2 bridge,stp
> bnep          14764 Â2
> vboxdrv        204362 Â2 vboxnetadp,vboxnetflt
> l2cap         Â53658 Â16 rfcomm,bnep
> snd_pcm_oss      Â47613 Â0
> snd_mixer_oss     Â16751 Â1 snd_pcm_oss
> snd_seq        Â57343 Â0
> snd_seq_device     Â6598 Â1 snd_seq
> edd           8720 Â0
> vmnet         Â46129 Â13
> ppdev          8444 Â0
> parport_pc       33475 Â0
> parport        Â34052 Â2 ppdev,parport_pc
> vmblock        Â11886 Â1
> vsock         Â41336 Â0
> vmci          59117 Â1 vsock
> vmmon         Â76038 Â0
> ip6t_REJECT Â Â Â Â Â Â 4311 Â3
> nf_conntrack_ipv6 Â Â Â18225 Â4
> ip6table_raw      Â1187 Â1
> xt_NOTRACK Â Â Â Â Â Â Â 816 Â4
> ipt_REJECT Â Â Â Â Â Â Â2152 Â3
> xt_state        Â1162 Â8
> iptable_raw       1246 Â1
> iptable_filter     Â1418 Â1
> ip6table_mangle     1588 Â0
> nf_conntrack_netbios_ns   1382 Â0
> nf_conntrack_ipv4 Â Â Â 8691 Â4
> nf_conntrack      75628 Â5 nf_conntrack_ipv6,xt_NOTRACK,xt_state,nf_conntrack_netbios_ns,nf_conntrack_ipv4
> nf_defrag_ipv4 Â Â Â Â Â1201 Â1 nf_conntrack_ipv4
> ip_tables       Â12172 Â2 iptable_raw,iptable_filter
> ip6table_filter     1359 Â1
> cpufreq_conservative  Â10064 Â0
> cpufreq_userspace    2583 Â0
> cpufreq_powersave    Â914 Â0
> ip6_tables       13508 Â4 ip6t_LOG,ip6table_raw,ip6table_mangle,ip6table_filter
> x_tables        17098 Â17 ip6t_LOG,xt_tcpudp,xt_pkttype,xt_physdev,ipt_LOG,xt_limit,ip6t_REJECT,ip6table_raw,xt_NOTRACK,ipt_REJECT,xt_state,iptable_raw,iptable_filter,ip6table_mangle,ip_tables,ip6table_filter,ip6_tables
> powernow_k8 Â Â Â Â Â Â18707 Â0
> mperf          1255 Â1 powernow_k8
> loop          14694 Â0
> dm_mod         73457 Â0
> em28xx_alsa       6316 Â0
> arc4 Â Â Â Â Â Â Â Â Â Â1281 Â2
> tuner_xc2028 Â Â Â Â Â 20652 Â1
> ecb           1967 Â2
> tuner         Â18636 Â1
> snd_hda_codec_atihdmi   2591 Â1
> ir_lirc_codec      4075 Â0
> lirc_dev        15476 Â1 ir_lirc_codec
> tvp5150 Â Â Â Â Â Â Â Â15288 Â1
> ir_sony_decoder     2005 Â0
> snd_hda_codec_idt   Â58593 Â1
> ir_jvc_decoder     Â2098 Â0
> ir_rc6_decoder     Â2450 Â0
> firewire_ohci     Â23817 Â0
> firewire_core     Â52354 Â1 firewire_ohci
> crc_itu_t        1435 Â1 firewire_core
> snd_hda_intel     Â24950 Â3
> rc_rc6_mce       Â1230 Â0
> snd_hda_codec     Â98635 Â3 snd_hda_codec_atihdmi,snd_hda_codec_idt,snd_hda_intel
> snd_hwdep        6164 Â1 snd_hda_codec
> em28xx         89777 Â1 em28xx_alsa
> snd_pcm        Â87882 Â4 snd_pcm_oss,em28xx_alsa,snd_hda_intel,snd_hda_codec
> ir_rc5_decoder     Â1970 Â0
> ath5k         135497 Â0
> mac80211 Â Â Â Â Â Â Â248390 Â1 ath5k
> ath           8743 Â1 ath5k
> ohci1394 Â Â Â Â Â Â Â 30324 Â0
> snd_timer       Â21669 Â2 snd_seq,snd_pcm
> ene_ir         14962 Â0
> snd          Â65788 Â17 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,em28xx_alsa,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
> ir_nec_decoder     Â2386 Â0
> hp_wmi         Â5882 Â0
> cfg80211 Â Â Â Â Â Â Â156087 Â3 ath5k,mac80211,ath
> v4l2_common      Â10269 Â3 tuner,tvp5150,em28xx
> videobuf_vmalloc    Â4868 Â1 em28xx
> videobuf_core     Â18232 Â2 em28xx,videobuf_vmalloc
> jmb38x_ms       Â12491 Â0
> sdhci_pci        7110 Â0
> sdhci         Â20020 Â1 sdhci_pci
> hp_accel        12712 Â0
> lis3lv02d        7908 Â1 hp_accel
> uvcvideo        60566 Â0
> soundcore        7379 Â1 snd
> snd_page_alloc     Â8041 Â2 snd_hda_intel,snd_pcm
> video         Â21205 Â0
> btusb         Â15667 Â2
> bluetooth       Â96350 Â9 rfcomm,sco,bnep,l2cap,btusb
> rfkill         17298 Â4 hp_wmi,cfg80211,bluetooth
> sg           27872 Â0
> wmi           7467 Â1 hp_wmi
> rc_core        Â18319 Â10 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,rc_rc6_mce,em28xx,ir_rc5_decoder,ene_ir,ir_nec_decoder
> r8169 Â Â Â Â Â Â Â Â Â38911 Â0
> mmc_core        72345 Â1 sdhci
> sr_mod         14671 Â0
> tveeprom        11421 Â1 em28xx
> memstick        Â9710 Â1 jmb38x_ms
> ieee1394 Â Â Â Â Â Â Â 88668 Â1 ohci1394
> battery         9730 Â0
> input_polldev      3799 Â1 lis3lv02d
> pcspkr         Â1614 Â0
> joydev         Â9354 Â0
> ac           Â3083 Â0
> videodev        75386 Â5 tuner,tvp5150,em28xx,v4l2_common,uvcvideo
> cdrom         Â38085 Â1 sr_mod
> button         Â5449 Â0
> i2c_piix4 Â Â Â Â Â Â Â11574 Â0
> k10temp         2723 Â0
> ext4 Â Â Â Â Â Â Â Â Â365656 Â1
> jbd2 Â Â Â Â Â Â Â Â Â 83102 Â1 ext4
> crc16 Â Â Â Â Â Â Â Â Â 1403 Â2 l2cap,ext4
> fglrx        Â2410654 Â325
> fan           3539 Â0
> processor       Â40761 Â1 powernow_k8
> ata_generic       2743 Â0
> pata_atiixp       3564 Â0
> thermal        Â17357 Â0
> thermal_sys      Â14678 Â4 video,fan,processor,thermal
>
>
> Plugging tuner in, dmesg:
>
> [ 1875.180265] usb 2-4: new high speed USB device using ehci_hcd and address 4
> [ 1875.298100] usb 2-4: New USB device found, idVendor=eb1a, idProduct=e305
> [ 1875.298117] usb 2-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
>
> [ 1875.298152] usb 2-4: Product: USB 2861 Device
> [ 1875.300292] em28xx: New device USB 2861 Device @ 480 Mbps (eb1a:e305, interface 0, class 0)
> [ 1875.300580] em28xx #0: chip ID is em2860
> [ 1875.487692] em28xx #0: i2c eeprom 00: 1a eb 67 95 1a eb 05 e3 d0 00 5c 00 6a 22 00 00
>
> [ 1875.487730] em28xx #0: i2c eeprom 10: 00 00 04 57 4e 03 00 00 00 00 00 00 00 00 00 00
> [ 1875.487764] em28xx #0: i2c eeprom 20: 06 00 01 00 f0 10 01 00 00 00 00 00 5b 00 00 00
> [ 1875.487796] em28xx #0: i2c eeprom 30: 00 00 20 40 20 80 02 20 01 01 00 00 00 00 00 00
>
> [ 1875.487828] em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [ 1875.487858] em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [ 1875.487888] em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 22 03 55 00 53 00
>
> [ 1875.487919] em28xx #0: i2c eeprom 70: 42 00 20 00 32 00 38 00 36 00 31 00 20 00 44 00
> [ 1875.487950] em28xx #0: i2c eeprom 80: 65 00 76 00 69 00 63 00 65 00 00 00 00 00 00 00
> [ 1875.487981] em28xx #0: i2c eeprom 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>
> [ 1875.488011] em28xx #0: i2c eeprom a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [ 1875.488042] em28xx #0: i2c eeprom b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [ 1875.488072] em28xx #0: i2c eeprom c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>
> [ 1875.488103] em28xx #0: i2c eeprom d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [ 1875.488201] em28xx #0: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [ 1875.488304] em28xx #0: i2c eeprom f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>
> [ 1875.488424] em28xx #0: EEPROM ID= 0x9567eb1a, EEPROM hash = 0x28a51142
> [ 1875.488436] em28xx #0: EEPROM info:
> [ 1875.488447] em28xx #0: Â Â Â AC97 audio (5 sample rates)
> [ 1875.488458] em28xx #0: Â Â Â 500mA max power
>
> [ 1875.488472] em28xx #0: Â Â Â Table at 0x04, strings=0x226a, 0x0000, 0x0000
> [ 1875.490941] em28xx #0: Identified as KWorld DVB-T 305U (card=47)
> [ 1875.490954] em28xx #0:
> [ 1875.490959]
> [ 1875.490965] em28xx #0: The support for this board weren't valid yet.
>
> [ 1875.490974] em28xx #0: Please send a report of having this working
> [ 1875.490982] em28xx #0: not to V4L mailing list (and/or to other addresses)
> [ 1875.490987]
> [ 1875.498585] tvp5150 0-005c: chip found @ 0xb8 (em28xx #0)
>
> [ 1875.570814] tvp5150 0-005c: tvp5150am1 detected.
> [ 1875.612698] tuner 0-0061: Tuner -1 found with type(s) Radio TV.
> [ 1875.612837] xc2028 0-0061: creating new instance
> [ 1875.612840] xc2028 0-0061: type set to XCeive xc2028/xc3028 tuner
>
> [ 1875.612848] usb 2-4: firmware: requesting xc3028-v27.fw
> [ 1875.619760] xc2028 0-0061: Loading 80 firmware images from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
> [ 1875.672106] xc2028 0-0061: Loading firmware for type=BASE (1), id 0000000000000000.
>
> [ 1883.005108] xc2028 0-0061: Loading firmware for type=(0), id 000000000000b700.
> [ 1883.154107] SCODE (20000000), id 000000000000b700:
> [ 1883.154156] xc2028 0-0061: Loading SCODE for type=MONO SCODE HAS_IF_4320 (60008000), id 0000000000008000.
>
> [ 1883.319239] em28xx #0: Config register raw data: 0xd0
> [ 1883.332960] em28xx #0: AC97 vendor ID = 0xffffffff
> [ 1883.339834] em28xx #0: AC97 features = 0x6a90
> [ 1883.339843] em28xx #0: Empia 202 AC97 audio processor detected
>
> [ 1884.746060] em28xx #0: v4l2 driver version 0.1.2
> [ 1885.414516] em28xx #0: V4L2 video device registered as video1
> [ 1885.414530] em28xx #0: V4L2 VBI device registered as vbi0
> [ 1885.414541] em28xx-audio.c: probing for em28x1 non standard usbaudio
>
> [ 1885.414550] em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
> [ 1885.423686] em28xx video device (eb1a:e305): interface 1, class 255 found.
> [ 1885.423696] em28xx This is an anciliary interface not used by the driver
>
>
> Appears new ALSA capture device:
>
> # arecord -l
> **** List of CAPTURE Hardware Devices ****
> card 0: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
> ÂSubdevices: 2/2
> ÂSubdevice #0: subdevice #0
> ÂSubdevice #1: subdevice #1
>
> card 2: Em28xxAudio [Em28xx Audio], device 0: Em28xx Audio [Empia 28xx Capture]
> ÂSubdevices: 1/1
> ÂSubdevice #0: subdevice #0
>
>
>
> I can see video only using MPlayer:
>
> mplayer tv:// -tv driver=v4l2:norm=PAL-DK:device=/dev/video1:freq=59.25
>
> Picture is of acceptable quality
>
>
> If I try to capture video and audio I get audio input/output error:
>
> > mencoder tv:// -tv device=/dev/video1:driver=v4l2:width=320:height=240:norm=PAL-DK:freq=59.25:alsa:immediatemode=0:adevice=hw.2,0 -oac mp3lame -lameopts cbr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2000 -o test.avi
> MPlayer dev-SVN-r31930-4.5-openSUSE Linux 11.3 (i686)-Packman (C) 2000-2010 MPlayer Teamsuccess: format: 9 Âdata: 0x0 - 0x0
> TV file format detected.
> Selected driver: v4l2
> Âname: Video 4 Linux 2 input
> Âauthor: Martin Olschewski <olschewski@xxxxxxxxxxxxxxxx>
> Âcomment: first try, more to come ;-)
> Selected device: KWorld DVB-T 305U
> ÂTuner cap:
> ÂTuner rxs:
> ÂCapabilities: Âvideo capture ÂVBI capture device Âtuner Â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 = Television; 1 = Composite1; 2 = S-Video;
> ÂCurrent input: 0
> ÂCurrent format: YUYV
> v4l2: current audio mode is : MONO
> v4l2: ioctl set format failed: Invalid argument
> v4l2: ioctl set format failed: Invalid argument
> v4l2: ioctl set format failed: Invalid argument
> Channel count not available - reverting to default: 2
> Channel count not available - reverting to default: 2
> [V] filefmt:9 Âfourcc:0x32595559 Âsize:320x240 Âfps:25.000 Âftime:=0.0400
> ==========================================================================
> Opening audio decoder: [pcm] Uncompressed PCM audio decoder
> AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
> Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
> ==========================================================================
> Opening video filter: [expand osd=1]
> Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
> ==========================================================================
> Opening video decoder: [raw] RAW Uncompressed Video
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> Movie-Aspect is undefined - no prescaling applied.
> [swscaler @ 0x8f20170] using unscaled yuyv422 -> yuv420p special converter
> videocodec: libavcodec (320x240 fourcc=34504d46 [FMP4])
> Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
> ==========================================================================
> MP3 audio selected.
> Forcing audio preload to 0, max pts correction to 0.
>
> 3 duplicate frame(s)!
> Pos:  0.2s   Â1f ( 0%) Â0.00fps Trem:  0min  0mb ÂA-V:0.000 [0:0]
>
> Error reading audio: Input/output error
>
> Error reading audio: Input/output error
>
> Error reading audio: Input/output error
>
> Error reading audio: Input/output error
>
> Error reading audio: Input/output error
>
>
> video buffer full - dropping frame
>
> video buffer full - dropping frame
>
> video buffer full - dropping frame
>
> video buffer full - dropping frame
>
> video buffer full - dropping frame
>
> video buffer full - dropping frame
>
>
>
> If I try to capture sound only using audacity - it does not record anything: audio recording progress bar stays at 00:00:00 and nothing is recorded.
>
>
> And sometimes this message appears in dmesg:
>
> [ 5663.100194] ALSA pcm_lib.c:1752: capture write error (DMA or IRQ trouble?)
>
>
> When using tvtime there is no sound too.
> I followed instructions on tvtime WIKI:
>
>
> > sox -r 32000 -t ossdsp /dev/dsp2 -t ossdsp /dev/dsp
>
> /dev/dsp2: (ossdsp)
>
> ÂEncoding: Signed PCM
> ÂChannels: 2 @ 16-bit
> Samplerate: 32000Hz
> Replaygain: off
> ÂDuration: unknown
>
> In:0.00%
> Â00:00:00.00 [00:00:00.00] Out:0 Â Â [ Â Â Â| Â Â Â] Â Â Â ÂClip:0
>
> sox FAIL sox: `/dev/dsp2' lsx_readbuf: Input/output error
> In:0.00% 00:00:00.00 [00:00:00.00] Out:0 Â Â [ Â Â Â| Â Â Â] Â Â Â ÂClip:0
> Done.
>
>
> The above command fails in apprx. 4 seconds
>
> Windows driver contains these files:
>
> # ls x86/ -l
> total 780
> -rw------- 1 tos users   48 2011-03-06 18:01 .directory
> -r-xr-xr-x 1 tos users  5062 2007-01-19 14:15 EMAUDIO.INF
> -r-xr-xr-x 1 tos users Â22912 2007-01-12 10:55 emAudio.sys
>
> -r-xr-xr-x 1 tos users Â34335 2007-01-19 14:15 EMBDA.INF
> -r-xr-xr-x 1 tos users 380416 2007-01-12 10:55 emBDA.sys
> -r-xr-xr-x 1 tos users Â61440 2006-12-15 09:54 emmon.exe
> -r-xr-xr-x 1 tos users Â30208 2006-12-21 06:12 emOEM.sys
>
> -r-xr-xr-x 1 tos users 106496 2007-01-12 10:53 emPRP.ax
> -r-xr-xr-x 1 tos users Â49152 2007-03-21 06:00 emunist.exe
> -r-xr-xr-x 1 tos users Â15548 2007-01-24 03:27 emwhql.cat <http://emwhql.cat>
> drwxr-xr-x 2 tos users  4096 1970-01-01 03:00 Language
>
> -r-xr-xr-x 1 tos users Â16382 2006-11-09 06:50 merlinC.rom
> -r-xr-xr-x 1 tos users Â53248 2007-03-21 05:58 SetupDrv.exe
> -r-xr-xr-x 1 tos users  2068 2006-12-11 15:20 TVEpaDrv.ini
>
>
>
> I would like to ask, if this is driver, firmware or ALSA issue? Maybe I need to extract firmware from OEM drivers but how can I do that? Maybe try other kernel/ALSA?
> Or maybe this device is not supported yet?
>
> Can anybody provide feedback on this issue?
>
> Thank you
>
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux