Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-27 Thread Bill Davidsen

Mikkel L. Ellertson wrote:

Michael Schwendt wrote:

On Sun, 26 Jul 2009 04:42:57 -0400, William wrote:


I have external receptacles on my motherboard at the back of my computer
box -- one light green for incoming sound, and one light red (pink) for
a microphone.  Double checked visually and in my motherboard manual.  


*However* my tv tuner card has no sound output receptacle, did not come
with a line to use as an external connection line and shows no external
hookups in its manual.

Yes, it's a known fact by now. Nobody asks you to put a cable where
you *cannot* put a cable. ;-) The remaining problem, however, is that
there must be a theory about how your tv card produces audio then?


I suspect that there is a device in /dev that you read to get the
sound, and pass it to the sound hardware. Maybe more then one if the
card produces both analog and digital sound output, and/or has an FM
tuner.

That is commonly the case, and I have been told that the only common application 
able to do the digital is mythtv (that was FC9 info, may no longer be the case). 
I highly commend trying vlc first, it is less complex to get working than 
mythtv. Yes, damned by faint praise.


--
Bill Davidsen david...@tmr.com
  We have more to fear from the bungling of the incompetent than from
the machinations of the wicked.  - from Slashdot

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-26 Thread Michael Schwendt
On Sat, 25 Jul 2009 22:18:54 -0400, William wrote:

 To get a clean start by first getting tvtime working with ALSA alone, I
 removed PulseAudio, rebooted and ran:

1) No need to reboot. You could have killed the pulseaudio daemon.

2) Since tvtime doesn't do any audio playback, it doesn't have much
(if anything) to do with PulseAudio. Since tvtime only accesses a mixer,
disabling PulseAudio ensures that you can control the ALSA mixer
channels without the sound server adding another layer (such as
offering its own master volume channel).

 ]$ amixer controls and amixer -c 0 controls

No need to keep specifying -c 0 anywhere as long as there is only
a single hardware device numbered by ALSA on your machine.
 
 Simple mixer control 'Line',0 -yes numid=14  -- the best/ but no sound

I wonder what kind of Line input this is? You keep on pointing out
that you haven't placed a cable between tv card and onboard audio,
but even with onboard audio 'Line' and 'Mic' are external input
jacks, aren't they?

 Simple mixer control 'Mic',0 -err

Interesting. Here, tvtime has no trouble using either of

  tvtime --mixer=default/Mic
  tvtime --mixer=hw:0/Mic
  tvtime --mixer=hw:0/'Mic'

Not that it makes any sense, since no mic is plugged in, but still tvtime
here succeeds in doing mute/unmute and changing the volume level.

 Simple mixer control 'PC Speaker',0 -yes numid=22

 Simple mixer control 'Capture',0 -err
 Simple mixer control 'Capture',1 -err

This is one of the special things about your audio chipset. Two
Capture lines, likely one analog and one digital.

 Simple mixer control 'Channel Mode',0 -err
 Simple mixer control 'Input Source',0 -err
 Simple mixer control 'Input Source',1 -err

Two input channel chosers, two. Your earlier alsa info output
showed that first one is Line and on, second one Mic and off.

 mixer: Can't open mixer hw0:Line, mixer volume and mute unavailable.
 mixer: Can't open device hw0, mixer volume and mute unavailable.

Syntax error. hw0: is invalid.

 $ tvtime --mixer=default/Speaker

Not available in your list of controls, but default/'PC Speaker' is.

 In every case, there was no sound.
 
Why do you still expect sound? Which component (hardware or software)
do you expect to send sound to your onboard audio chipset? And how?
ANd what does your tv card driver does related to audio?

We're going in circles, and that's why this is better continued in email
than in bugzilla.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-26 Thread William Case
Hi Michael;

On Sun, 2009-07-26 at 08:08 +0200, Michael Schwendt wrote:
 On Sat, 25 Jul 2009 22:18:54 -0400, William wrote:
 
  To get a clean start by first getting tvtime working with ALSA alone, I
  removed PulseAudio, rebooted and ran:
 
 1) No need to reboot. You could have killed the pulseaudio daemon.
 

I know -- or at least I used to know.  I was no longer sure of anything,
and since we are looking for something that might be wonky, better
safe than sorry.

 2) Since tvtime doesn't do any audio playback, it doesn't have much
 (if anything) to do with PulseAudio. Since tvtime only accesses a mixer,
 disabling PulseAudio ensures that you can control the ALSA mixer
 channels without the sound server adding another layer (such as
 offering its own master volume channel).
 
  ]$ amixer controls and amixer -c 0 controls

 No need to keep specifying -c 0 anywhere as long as there is only
 a single hardware device numbered by ALSA on your machine.
  
I know.  But based on the principle stated above.  The reason I wanted
to know were to look in the virtual file system was because of possible
wonkiness i.e something was mis-reporting the absence of -c 1 i.e.
hw:1.

  Simple mixer control 'Line',0 -yes numid=14  -- the best/ but no sound
 
 I wonder what kind of Line input this is? You keep on pointing out
 that you haven't placed a cable between tv card and onboard audio,
 but even with onboard audio 'Line' and 'Mic' are external input
 jacks, aren't they?
 

That is the $64,000 question.  (You might be too young to remember the
$64,000 question.)

That was what started me on this whole what do controls do? quest and
trying to figure out various possible control combinations.  Using
'Line' or Line-in on my setup didn't seem logical.  It still doesn't.

I have external receptacles on my motherboard at the back of my computer
box -- one light green for incoming sound, and one light red (pink) for
a microphone.  Double checked visually and in my motherboard manual.  

*However* my tv tuner card has no sound output receptacle, did not come
with a line to use as an external connection line and shows no external
hookups in its manual.  Besides, I have looked several times and there
is no no receptacle for line-out.  I have tried experimenting with
earphones.  The receptacle on the tuner card that does exist is for
sound-in for a satellite dish.

On my old computer, the tv tuner did have an external line-out to a
sound card line-in.  So I am familiar with what I am looking for.  I do
not have an external line plugged into on this computer's sound.


  Simple mixer control 'Mic',0 -err
 
 Interesting. Here, tvtime has no trouble using either of
 
   tvtime --mixer=default/Mic
   tvtime --mixer=hw:0/Mic
   tvtime --mixer=hw:0/'Mic'

I must have made a typo on this one because tvtime --mixer=hw:0/Mic,
and, tvtime --mixer=hw:0/'Mic' works now.
 
 Not that it makes any sense, since no mic is plugged in, but still tvtime
 here succeeds in doing mute/unmute and changing the volume level.
 
  Simple mixer control 'PC Speaker',0 -yes numid=22
 
  Simple mixer control 'Capture',0 -err
  Simple mixer control 'Capture',1 -err
 
 This is one of the special things about your audio chipset. Two
 Capture lines, likely one analog and one digital.

Yes.  Knowing that Canada and the U.S. were going to all-digital at
least two years apart (or more), I purposefully purchased a TV tuner
card that could be both analog and digital.  I checked on-line before
making the purchase (I forget where, but on one of the normal Linux
device recommendation sites).  My card was listed as working on Linux.

 
  Simple mixer control 'Channel Mode',0 -err
  Simple mixer control 'Input Source',0 -err
  Simple mixer control 'Input Source',1 -err
 
 Two input channel chosers, two. Your earlier alsa info output
 showed that first one is Line and on, second one Mic and off.
 
  mixer: Can't open mixer hw0:Line, mixer volume and mute unavailable.
  mixer: Can't open device hw0, mixer volume and mute unavailable.
 
 Syntax error. hw0: is invalid.

Yea that was probably the typo.  Re-checked everything making doubly
sure there was no spelling mistakes.  hw:0/CONTROL in fact works the
same as default/CONTROL.
 
  $ tvtime --mixer=default/Speaker
 
 Not available in your list of controls, 

I know, but it was listed in tvtime.xml.  I thought I would give it a
try.

 but default/'PC Speaker' is.
 

Yes.  It returns the volume set in Advanced Volume Control: 62%.  I set
PC Speaker to a different volume level from the others to see if it
would show up.  It did.

  In every case, there was no sound.
  
 Why do you still expect sound? Which component (hardware or software)
 do you expect to send sound to your onboard audio chipset? 

I don't know.  I was hoping someone could tell me.

Remember, the original bug #510105 was simply Description of problem:
No sound for my tv tuner

Someone said that bug #510105 bug was a duplicate of #498167 I Can't
get TVTime to 

Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-26 Thread Michael Schwendt
On Sun, 26 Jul 2009 04:42:57 -0400, William wrote:

 I have external receptacles on my motherboard at the back of my computer
 box -- one light green for incoming sound, and one light red (pink) for
 a microphone.  Double checked visually and in my motherboard manual.  
 
 *However* my tv tuner card has no sound output receptacle, did not come
 with a line to use as an external connection line and shows no external
 hookups in its manual.

Yes, it's a known fact by now. Nobody asks you to put a cable where
you *cannot* put a cable. ;-) The remaining problem, however, is that
there must be a theory about how your tv card produces audio then?

   Simple mixer control 'Capture',0 -err
   Simple mixer control 'Capture',1 -err
  
  This is one of the special things about your audio chipset. Two
  Capture lines, likely one analog and one digital.
 
 Yes.  Knowing that Canada and the U.S. were going to all-digital at
 least two years apart (or more), I purposefully purchased a TV tuner
 card that could be both analog and digital.  I checked on-line before
 making the purchase (I forget where, but on one of the normal Linux
 device recommendation sites).  My card was listed as working on Linux.

Above is about your onboard audio chipset, not about the tv card.
Analog/digital here refers to audio, not cable tv.
I still think you cannot expect any tv sound when using the analog
input/capture channels of your audio chipset.
Hence there either must be a way to make tv card and onboard
audio talk together digitally (and in turn have something that puts
the audio chipset into the desired mode), or to have the driver supply an
A/V stream on /dev/video1 (which is what some of the success reports
suggest, as they user mplayer to play back that mpeg stream).

 Remember, the original bug #510105 was simply Description of problem:
 No sound for my tv tuner
 
 Someone said that bug #510105 bug was a duplicate of #498167 I Can't
 get TVTime to output audio.
 
 You posted to bug #510105
 
 Apparently, even with alsamixer -c0 reporter cannot turn on any
 input channel to make tv card audio output work. That means that internal
 routing from audio between tv card and sound hw doesn't work/isn't enabled.
 tvtime can't do anything about it if no mixer channel controls the tv audio
 output. It's more of another tv card driver problem (also see bug 497750 - 
 same
 reporter, but F10).
 
 I agreed with you.
 
 I posted this thread on the Fedora user list in order to straighten out
 my use of controls before returning to bugzilla. 

Yeah, it's not really a duplicate anymore, but not a PulseAudio bug either
since switching on a silent audio channel [with tvtime] yields silence, of
course. (With F11, almost every tvtime user runs into the problem that the
old OSS audio system is no longer supported and that tvtime cannot use the
ALSA mixers instead. Only the tvtime update changes that. The majority of
users connect tv card and audio card, though, which doesn't apply to you.)

  And how?
  ANd what does your tv card driver does related to audio?
  
 
 I have filed a bug about PulseAudio and my tv tuner card #510105 and
 subsequnetly about ALSA + PulseAudio #511178.

It would really be interesting to retest the tvtime+mplayer solution.
Decoding an mpeg a/v stream with mplayer sounds really plausible.

What other capabilities for audio the tv card driver has might be
found out by seeking help from its author (or by examining the kernel
module source code and inline comments).

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-26 Thread Mikkel L. Ellertson
Michael Schwendt wrote:
 On Sat, 25 Jul 2009 22:18:54 -0400, William wrote:
 
 ]$ amixer controls and amixer -c 0 controls
 
 No need to keep specifying -c 0 anywhere as long as there is only
 a single hardware device numbered by ALSA on your machine.
  
If you have PA running, you do. Otherwise you get the information
for PA instead of the sound card.

 Simple mixer control 'Line',0 -yes numid=14  -- the best/ but no sound
 
 I wonder what kind of Line input this is? You keep on pointing out
 that you haven't placed a cable between tv card and onboard audio,
 but even with onboard audio 'Line' and 'Mic' are external input
 jacks, aren't they?
 
I would expect it to be the external jack.

 Simple mixer control 'Mic',0 -err
 
 Interesting. Here, tvtime has no trouble using either of
 
   tvtime --mixer=default/Mic
   tvtime --mixer=hw:0/Mic
   tvtime --mixer=hw:0/'Mic'
 
 Not that it makes any sense, since no mic is plugged in, but still tvtime
 here succeeds in doing mute/unmute and changing the volume level.
 
On F11, when PA is running, it is the default, not hw:0.

One other thing I noticed - OSS emulation appears to still be
supported in F11. Try running:

modprobe snd-pcm-oss

and see if the oss configuration works.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-26 Thread William Case
Thanks Michael;

On Sun, 2009-07-26 at 14:25 +0200, Michael Schwendt wrote:
 On Sun, 26 Jul 2009 04:42:57 -0400, William wrote:

 Above is about your onboard audio chipset, not about the tv card.
 Analog/digital here refers to audio, not cable tv.
 I still think you cannot expect any tv sound when using the analog
 input/capture channels of your audio chipset.
 Hence there either must be a way to make tv card and onboard
 audio talk together digitally (and in turn have something that puts
 the audio chipset into the desired mode), or to have the driver supply an
 A/V stream on /dev/video1 (which is what some of the success reports
 suggest, as they user mplayer to play back that mpeg stream).
 

 Yeah, it's not really a duplicate anymore, but not a PulseAudio bug either
 since switching on a silent audio channel [with tvtime] yields silence, of
 course. 

Of course.  I thought I would first see if I could get my TV tuner
working with ALSA and then proceed to put PulseAudio back into the mix.
I am not one of those who has given up on PulseAudio.  Sound is complex
enough to have an intervening server a la Xwindows.

 It would really be interesting to retest the tvtime+mplayer solution.
 Decoding an mpeg a/v stream with mplayer sounds really plausible.
 

I will waste (spend) a rainy Sunday afternoon here trying to get mplayer
going, both in conjunction with tvtime and independently.

 What other capabilities for audio the tv card driver has might be
 found out by seeking help from its author (or by examining the kernel
 module source code and inline comments).
 

I am sure you must be getting tired of this issue, but ...
I have the latest kernel source code + git here and could use some
suggestions on where to start.  I have just begun to look at kernel code
so I am sure my way will be tortuous, however, I am willing to give it a
try -- reading the comments and documentation at least.

To save me some fruitless time, would you suggest I look at the 'tuner'
driver, cx23885, cx23887, cx25840 or something else?  Maybe at the
motherboard sound chips?

-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 22.3.1

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-26 Thread Michael Schwendt
On Sun, 26 Jul 2009 10:51:42 -0400, William wrote:

 I am sure you must be getting tired of this issue, but ...
 I have the latest kernel source code + git here and could use some
 suggestions on where to start.  I have just begun to look at kernel code
 so I am sure my way will be tortuous, however, I am willing to give it a
 try -- reading the comments and documentation at least.
 
 To save me some fruitless time, would you suggest I look at the 'tuner'
 driver, cx23885, cx23887, cx25840 or something else?  Maybe at the
 motherboard sound chips?

Those modules as listed by lsmod. The radio feature of your tv card would
be worth another test, btw ;) although right now I can't tell whether
gnome-radio works.

 From your dmesg output:

| cx23885[0]/0: registered device video0 [v4l2]

/dev/video0 as used by tvtime by default.

| cx23885[0]: registered device video1 [mpeg]

/dev/video1 that's the one other users get audio with together
with mplayer. Even other users report success with mythtv, but
mplayer should be easier.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-26 Thread Bill Davidsen

Michael Schwendt wrote:

On Sun, 26 Jul 2009 04:42:57 -0400, William wrote:


I have external receptacles on my motherboard at the back of my computer
box -- one light green for incoming sound, and one light red (pink) for
a microphone.  Double checked visually and in my motherboard manual.  


*However* my tv tuner card has no sound output receptacle, did not come
with a line to use as an external connection line and shows no external
hookups in its manual.


Yes, it's a known fact by now. Nobody asks you to put a cable where
you *cannot* put a cable. ;-) The remaining problem, however, is that
there must be a theory about how your tv card produces audio then?

Actually, since I have a setup like that which does work (not on FC11!) you 
might look for a three pin jumper on the TV card, which can go via cable to the 
CDaudio input on the sound card or motherboard. Mine has such as works.


Just pointing this out before you go too far down the it must be wrong road...

--
Bill Davidsen david...@tmr.com
  We have more to fear from the bungling of the incompetent than from
the machinations of the wicked.  - from Slashdot

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-26 Thread Mikkel L. Ellertson
Michael Schwendt wrote:
 On Sun, 26 Jul 2009 04:42:57 -0400, William wrote:
 
 I have external receptacles on my motherboard at the back of my computer
 box -- one light green for incoming sound, and one light red (pink) for
 a microphone.  Double checked visually and in my motherboard manual.  

 *However* my tv tuner card has no sound output receptacle, did not come
 with a line to use as an external connection line and shows no external
 hookups in its manual.
 
 Yes, it's a known fact by now. Nobody asks you to put a cable where
 you *cannot* put a cable. ;-) The remaining problem, however, is that
 there must be a theory about how your tv card produces audio then?
 
I suspect that there is a device in /dev that you read to get the
sound, and pass it to the sound hardware. Maybe more then one if the
card produces both analog and digital sound output, and/or has an FM
tuner.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-25 Thread Michael Schwendt
On Fri, 24 Jul 2009 16:20:36 -0400, William wrote:

sudo alsa-info --no-upload --with-amixer --with-devices

So, your onboard audio chipset is ALSA device '0', and the TV card does
not appear as a second audio device '1'. That can be helpful, because lots
of other tv/radio cards appears as a seperate audio device and add several
playback/capture controls to ALSA based tools and applications.
Confusing, however, is to see not only a pair of digital+analogue capture
hw devices but a second analogue one. Settings are only provided for
two though, and the 2nd one is switched off.

[same as $ amixer get 'Capture',0 ] # 'name',index
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [34.50dB] [on]
  Front Right: Capture 31 [100%] [34.50dB] [on]

[ $ amixer get 'Capture',1 ]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 17 [55%] [13.50dB] [off]
  Front Right: Capture 17 [55%] [13.50dB] [off]

Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Line'

Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'

  ? ALSA numbers the audio devices it finds, starting with 0. (That's the
  name N number you can pass to alsamixer -cN when using it as an alternative
  to tvtime's mixer functionality.)
  
 Yes, but are the audio devices in the /proc, /dev, or /sys vfs.  If so,
 where? 

ALSA enumerates the hardware devices. The Linux device files are in
/dev/snd/ with ALSA giving info in /proc/asound/, but you still need to
contruct intentifiers as understood by amixer, too. While you only have
one 'Line' (or 'Line',0) you have 'Capture',0 and 'Capture',1, and
when switching on your tv card using Linux, it must be clear how
audio is routed (if at all) or whether the only available way is to
decode and play back the mpeg stream on /dev/video1.

 ...
 cx23885 driver version 0.0.1 loaded
 cx23885 :02:00.0: PCI INT A - GSI 16 (level, low) - IRQ 16
 CORE cx23885[0]: subsystem: 0070:7801, board: Hauppauge WinTV-HVR1800
 [card=2,autodetected]
 tveeprom 1-0050: Hauppauge model 78521, rev C1E9, serial# 4870798
 tveeprom 1-0050: MAC address is 00-0D-FE-4A-52-8E
 tveeprom 1-0050: tuner model is Philips 18271_8295 (idx 149, type 54)
 tveeprom 1-0050: TV standards NTSC(M) ATSC/DVB Digital (eeprom 0x88)
 tveeprom 1-0050: audio processor is CX23887 (idx 42)
 tveeprom 1-0050: decoder processor is CX23887 (idx 37)
 tveeprom 1-0050: has radio
 cx23885[0]: hauppauge eeprom: model=78521
 cx25840 3-0044: cx25  0-21 found @ 0x88 (cx23885[0])
 cx25840 3-0044: firmware: requesting v4l-cx23885-avcore-01.fw
 cx25840 3-0044: unable to open firmware v4l-cx23885-avcore-01.fw

Firmware file isn't found:
http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1800#Firmware

 The above site suggests the addition of firmware for cx23885
 The 2.6.29.6-213.fc11.x86_64 kernel seems to have that module included.

I may misunderstand you, but module and firmware are two different
things. The Linux kernel includes the driver, the kernel module, but
that module still sends a request to load a separate firmware file. I
cannot spot that file in the kernel-firmware package either.

   for /dev/video0 (as only
  the channel chooser) and 
 
  mplayer for playing the mpeg stream on
  /dev/video1?
 
 I haven't gone back to mplayer.  I originally tried it as an experiment,
 in the hopes to learn something about tv tuners etc. and why tvtime
 wasn't working.  I am not sure it is a worthwhile experiment, but will
 try to get mplayer going, if you suggest it.

That is because the few success reports mention that as a solution.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-25 Thread Michael Schwendt
On Sat, 25 Jul 2009 01:49:06 -0400, William wrote:

  amixer info - provides information about the default card.
 ]$ amixer info
 Card default 'pulse'/'PulseAudio'
   Mixer name  : 'PulseAudio'
   Components  : ''
   Controls  : 4
   Simple ctrls  : 2

This is with PulseAudio running, however, and therefore differs very much
from native ALSA without PulseAudio running. That adds another level on
top of ALSA. If you keep PulseAudio running, you rely on PulseAudio to get
several things right, and you cannot influence it since PulseAudio adds
itself as another layer on top of ALSA. Hence you see a pulse device
instead of the default (hw:0) device, for example. Same for input.

 I then tried the pavucontrol gui configured to 'Profile: Output Analog
 Stereo + Input Analog Stereo'.

Input Analog Stereo to me means it refers to Microphone and Line input
jacks which are connected with your onboard audio chipset. Unless somebody
disagress, that is the operation mode where you would need to place an
audio cable between tv card and input jack. Unlike digital input.

 The Profile I choose, 'Output Analog Stereo + Input Analog Stereo', gave
 me the most detail under the Playback, Output Devices and Input Devices
 tabs.  In fact, when using RhythmBox, Playback and Output Devices tabs
 showed the application name and a sound activity bar.  Similarly, when
 playing a video on CNN, Playback showed 'ALSA plug-in [firefox]' and
 sound activity.
 
 However, when using tvtime no application is recognized by pavucontrol.

Again, that is because tvtime doesn't do any audio playback at all.

 $ amixer contents
 numid=4,iface=MIXER,name='Master Playback Switch'
   ; type=BOOLEAN,access=rw--,values=1
   : values=on
 numid=3,iface=MIXER,name='Master Playback Volume'
   ; type=INTEGER,access=rw--,values=2,min=0,max=65536,step=1
   : values=57583,57583
 numid=2,iface=MIXER,name='Capture Switch'
   ; type=BOOLEAN,access=rw--,values=1
   : values=on
 numid=1,iface=MIXER,name='Capture Volume'
   ; type=INTEGER,access=rw--,values=2,min=0,max=65536,step=1
   : values=65536,65536
 
 This too suggests I should use 'Master' as the tvtime control/channel.

Can't follow that conclusion. 'Master' controls the final volume
of the sum of all active channels. It doesn't control which capture
channel is active and whether its volume is levelled up at all.
It also doesn't control whether any signal is sent to an input
channel (in analogue mode).

  Now, amixer defaults to sound card 0 (hw:0), but it can show other
  sound cards using the -c option (-c n). 
 
 No combination of amixer and -c1 produces anything useful other than the
 standard help list on stdout/stderr.

You don't have a device '1'. Your onboard chipset is the only one, '0'.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-25 Thread Mikkel L. Ellertson
William Case wrote:
 Hi Mikkel;
 
 There is probably no need to reply to this post -- unless you see
 something obviously wrong.  I am just posting to get the results on the
 record -- so to speak.
 
OK - I have F11 in a virtual machine now, so I can play with the
differences while still having my normal setup running. To get a
list of the control names to use, you have to tell amixer to use
card 0, instead of the default. The default gives you the pulse
audio controls. Try:

amixer -c 0 controls

or

amixer -c 0 scontrols

and see if that works better.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-25 Thread William Case
Hi Mikkel;

Still no sound.

On Sat, 2009-07-25 at 13:30 -0500, Mikkel L. Ellertson wrote: 
 William Case wrote:
  Hi Mikkel;
  
  There is probably no need to reply to this post -- unless you see
  something obviously wrong.  I am just posting to get the results on the
  record -- so to speak.
  
 OK - I have F11 in a virtual machine now, so I can play with the
 differences while still having my normal setup running. To get a
 list of the control names to use, you have to tell amixer to use
 card 0, instead of the default. The default gives you the pulse
 audio controls. Try:
 
 amixer -c 0 controls
 
 or
 
 amixer -c 0 scontrols
 
 and see if that works better.

To get a clean start by first getting tvtime working with ALSA alone, I
removed PulseAudio, rebooted and ran:

]$ amixer controls and amixer -c 0 controls

]$ amixer scontrols and amixer -c 0 scontrols (just for to see)  On both
(to be expected) I got:

Simple mixer control 'Master',0 -yes  numid=38
Simple mixer control 'Headphone',0 -err
Simple mixer control 'PCM',0 -err mute not implemented
Simple mixer control 'Front',0 -yes numid=19
Simple mixer control 'Front Mic',0 -err
Simple mixer control 'Front Mic Boost',0 -err
Simple mixer control 'Surround',0 -yes numid=3
Simple mixer control 'Center',0 -yes numid=5
Simple mixer control 'LFE',0 -yes numid=6
Simple mixer control 'Side',0 -yes numid=9
Simple mixer control 'Line',0 -yes numid=14  -- the best/ but no sound
Simple mixer control 'CD',0 -yes numid=12
Simple mixer control 'Mic',0 -err
Simple mixer control 'Mic Boost',0 -err
Simple mixer control 'IEC958',0 -err
Simple mixer control 'IEC958 Default PCM',0 -err
Simple mixer control 'PC Speaker',0 -yes numid=22
Simple mixer control 'Capture',0 -err
Simple mixer control 'Capture',1 -err
Simple mixer control 'Channel Mode',0 -err
Simple mixer control 'Input Source',0 -err
Simple mixer control 'Input Source',1 -err

I then tried each simple mixer control with tvtime.  

]$ tvtime --mixer=hw0:'Control Name' returned

mixer: attach error: No such file or directory
mixer: Can't open mixer hw0:Line, mixer volume and mute unavailable.
mixer: Can't open device hw0, mixer volume and mute unavailable.

I then opened Advance Volume Control; set everyone of the controls
listed by amixer scontrols to unmute 100% (see list above) and tried
that.  Next I tried each control individually or in combination
according to its numid.

]$ tvtime --mixer=default/'Control Name' opened tvtime and made the
volume keyes (+/-) functional.  This is the opposite of what happened
with PulseAudio installed.  On the list above, I have marked each
'Control Name' with a -yes if no error was returned and -err if there
was an error.  See example below.


$ tvtime --mixer=default/Speaker
Running tvtime 1.0.2.
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/bill/.tvtime/tvtime.xml
mixer: find error: Success
mixer: Can't open mixer default, mixer volume and mute unavailable.
mixer: Can't open device default/Speaker, mixer volume and mute
unavailable.
Thank you for using tvtime.

In every case, there was no sound.

-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 22.3.1

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-25 Thread William Case
Hi Michael;

I have removed PulseAudio and re-installed the firmware for cx23885.

On Sat, 2009-07-25 at 11:52 +0200, Michael Schwendt wrote:
 On Sat, 25 Jul 2009 01:49:06 -0400, William wrote:

dmesg now seems content.

]$ dmesg

cx23885 driver version 0.0.1 loaded
cx23885 :02:00.0: PCI INT A - GSI 16 (level, low) - IRQ 16
CORE cx23885[0]: subsystem: 0070:7801, board: Hauppauge WinTV-HVR1800
[card=2,autodetected]
tveeprom 1-0050: Hauppauge model 78521, rev C1E9, serial# 4870798
tveeprom 1-0050: MAC address is 00-0D-FE-4A-52-8E
tveeprom 1-0050: tuner model is Philips 18271_8295 (idx 149, type 54)
tveeprom 1-0050: TV standards NTSC(M) ATSC/DVB Digital (eeprom 0x88)
tveeprom 1-0050: audio processor is CX23887 (idx 42)
tveeprom 1-0050: decoder processor is CX23887 (idx 37)
tveeprom 1-0050: has radio
cx23885[0]: hauppauge eeprom: model=78521
cx25840 3-0044: cx25  0-21 found @ 0x88 (cx23885[0])
cx25840 3-0044: firmware: requesting v4l-cx23885-avcore-01.fw
cx25840 3-0044: loaded v4l-cx23885-avcore-01.fw firmware (16382 bytes)
tuner 2-0042: chip found @ 0x84 (cx23885[0])
tda829x 2-0042: could not clearly identify tuner address, defaulting to
60
tda18271 2-0060: creating new instance
TDA18271HD/C1 detected @ 2-0060
tda829x 2-0042: type set to tda8295+18271
cx23885[0]/0: registered device video0 [v4l2]
usb-storage: device scan complete
scsi 2:0:0:0: Direct-Access HP   Photosmart C4280 1.00 PQ: 0
ANSI: 5
sd 2:0:0:0: [sdc] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg3 type 0
cx23885[0]: registered device video1 [mpeg]
cx23885_dvb_register() allocating 1 frontend(s)
cx23885[0]: cx23885 based dvb card
MT2131: successfully identified at address 0x61
DVB: registering new adapter (cx23885[0])
DVB: registering adapter 0 frontend 0 (Samsung S5H1409 QAM/8VSB
Frontend)...
cx23885_dev_checkrevision() Hardware revision = 0xb1
cx23885[0]/0: found at :02:00.0, rev: 15, irq: 16, latency: 0, mmio:
0xe500
cx23885 :02:00.0: setting latency timer to 64
IRQ 16/cx23885[0]: IRQF_DISABLED is not guaranteed on shared IRQs

As best as I can tell, this dmesg corresponds to the sample dmesg given
at http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1800 

 
   amixer info - provides information about the default card.
  ]$ amixer info
  Card default 'pulse'/'PulseAudio'
Mixer name: 'PulseAudio'
Components: ''
Controls  : 4
Simple ctrls  : 2

]$ amixer info
Card default 'Intel'/'HDA Intel at 0xe530 irq 16'
  Mixer name: 'Realtek ALC883'
  Components: 'HDA:10ec0883,1458c603,0012'
  Controls  : 40
  Simple ctrls  : 22

 
  $ amixer contents
  numid=4,iface=MIXER,name='Master Playback Switch'
; type=BOOLEAN,access=rw--,values=1
: values=on
  numid=3,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw--,values=2,min=0,max=65536,step=1
: values=57583,57583
  numid=2,iface=MIXER,name='Capture Switch'
; type=BOOLEAN,access=rw--,values=1
: values=on
  numid=1,iface=MIXER,name='Capture Volume'
; type=INTEGER,access=rw--,values=2,min=0,max=65536,step=1
: values=65536,65536
  
  This too suggests I should use 'Master' as the tvtime control/channel.
 

]$ amixer contents
numid=39,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw--,values=1
  : values=on
numid=38,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
  : values=27
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=11,iface=MIXER,name='Headphone Playback Switch'
  ; type=BOOLEAN,access=rw--,values=2
  : values=off,off
numid=40,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
  : values=255,252
  | dBscale-min=-51.00dB,step=0.20dB,mute=0
numid=20,iface=MIXER,name='Front Mic Boost'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=21,iface=MIXER,name='Front Mic Playback Switch'
  ; type=BOOLEAN,access=rw--,values=2
  : values=off,off
numid=19,iface=MIXER,name='Front Mic Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=0,0
  | dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=2,iface=MIXER,name='Front Playback Switch'
  ; type=BOOLEAN,access=rw--,values=2
  : values=on,on
numid=1,iface=MIXER,name='Front Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=31,31
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=4,iface=MIXER,name='Surround Playback Switch'
  ; type=BOOLEAN,access=rw--,values=2
  : values=off,off
numid=3,iface=MIXER,name='Surround Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=30,30
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=7,iface=MIXER,name='Center Playback Switch'
  ; type=BOOLEAN,access=rw--,values=1
  : values=off
numid=5,iface=MIXER,name='Center Playback Volume'
  ; 

'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-24 Thread William Case
Hi;

My problem is not yet with tvtime but my question trail starts there.

tvtime has been upgraded to use alsa for sound rather than OSS.  To do
that I need to re-set  option name=MixerDevice value=default/Line/
to something like mixer=DEVICE[:CH] e.g hw:0/CD; where DEVICE = hw:0
and [:CH] = /CD.

ls /dev/mixer no longer exists.  Where does tvtime find DEVICE and where
do I find DEVICE?  How do I know it is the new name of the mixer?

Which channel [:CH] do I use?  Is it from the same list as tvtime.xml
suggests for OSS or is it a different list?  Given that I have an
internal sound card on a PCIe bus how would I go about deducing which
channels to try first?

Now that I have the latest kernel and tvtime upgrade, these questions
are so that I can overcome the confusion of many, many hours of
experimentation and reading of outdated google comments. Hopefully, if I
can solve tvtime or at least be looking at the correct configuration I
can go on to solve problems with RhythmBox and others.

A bit of a rant:  The biggest problem that I have, and that others have
mentioned they have, is the lack of trustworthy documentation --
something that starts with the real basics, on how alsa, pulseaudio, and
the various guis work.

-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 22.3.1

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-24 Thread Mikkel L. Ellertson
William Case wrote:
 Hi;
 
 My problem is not yet with tvtime but my question trail starts there.
 
 tvtime has been upgraded to use alsa for sound rather than OSS.  To do
 that I need to re-set  option name=MixerDevice value=default/Line/
 to something like mixer=DEVICE[:CH] e.g hw:0/CD; where DEVICE = hw:0
 and [:CH] = /CD.
 
 ls /dev/mixer no longer exists.  Where does tvtime find DEVICE and where
 do I find DEVICE?  How do I know it is the new name of the mixer?
 
 Which channel [:CH] do I use?  Is it from the same list as tvtime.xml
 suggests for OSS or is it a different list?  Given that I have an
 internal sound card on a PCIe bus how would I go about deducing which
 channels to try first?
 
You can run amixer scontrols to get a list of simple mixer control
names. (running amixer controls will give the long names.) You can
also get information by running amixer info. You can also run
aplay -l or aplay -L to get a list of sound cards.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-24 Thread Michael Schwendt
On Fri, 24 Jul 2009 13:17:34 -0400, William wrote:

 Hi;
 
 My problem is not yet with tvtime but my question trail starts there.
 
 tvtime has been upgraded to use alsa for sound rather than OSS.  To do
 that I need to re-set  option name=MixerDevice value=default/Line/
 to something like mixer=DEVICE[:CH] e.g hw:0/CD; where DEVICE = hw:0
 and [:CH] = /CD.
 
 ls /dev/mixer no longer exists.  Where does tvtime find DEVICE and where
 do I find DEVICE?  How do I know it is the new name of the mixer?

Unrelated. Have you ever before posted the file created by

  sudo alsa-info --no-upload --with-amixer --with-devices

? ALSA numbers the audio devices it finds, starting with 0. (That's the
name N number you can pass to alsamixer -cN when using it as an alternative
to tvtime's mixer functionality.)

Related to audio, tvtime can only turn on an audio capture device and
level up its volume. Related to audio, it does nothing beyond that. It
does not decode or play back audio as provided within an a/v stream
created by a digital TV driver.


Have you posted the output in dmesg when you modprobe your tv card
driver?

What details have you found out about your TV card
( http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1800 )
and the current Linux kernel driver support? What exactly does it
offer? You use it in digital mode not analogue, right? Then afais
you need some software to play back audio instead of just a mixer
to turn on a channel.

How far have you come with using tvtime for /dev/video0 (as only
the channel chooser) and mplayer for playing the mpeg stream on
/dev/video1?

 Hopefully, if I
 can solve tvtime or at least be looking at the correct configuration I
 can go on to solve problems with RhythmBox and others.

Audio playback problems in Rhythmbox? It's not so clever to mix too many
problems. Audio in Rhythmbox and audio in tvtime are *very* different.
If you want to discuss rhythmbox, a separate thread could be helpful,
especially as you may want to disable PulseAudio, even if only
temporarily.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-24 Thread William Case
Thanks for responding Michael;

I am trying to double check things before getting back to the bug.  I am
trying to secure myself from stupidity or at least ignorance.

My basic problem is that I have tried and used so much advice that I
wanted to start over from ground 0, as it were, but you have anticipated
me.  

On Fri, 2009-07-24 at 21:08 +0200, Michael Schwendt wrote:
 On Fri, 24 Jul 2009 13:17:34 -0400, William wrote:
 
  Hi;
  
  My problem is not yet with tvtime but my question trail starts there.
  
  tvtime has been upgraded to use alsa for sound rather than OSS.  To do
  that I need to re-set  option name=MixerDevice value=default/Line/
  to something like mixer=DEVICE[:CH] e.g hw:0/CD; where DEVICE = hw:0
  and [:CH] = /CD.
  
  ls /dev/mixer no longer exists.  Where does tvtime find DEVICE and where
  do I find DEVICE?  How do I know it is the new name of the mixer?
 
 Unrelated. Have you ever before posted the file created by
 
   sudo alsa-info --no-upload --with-amixer --with-devices

No.  But I will now.  It has never been suggested before.
I have included it as an attachment.  I hope this list accepts
attachments; some lists won't.  If not, I will use pasty.net.


 
 ? ALSA numbers the audio devices it finds, starting with 0. (That's the
 name N number you can pass to alsamixer -cN when using it as an alternative
 to tvtime's mixer functionality.)
 
Yes, but are the audio devices in the /proc, /dev, or /sys vfs.  If so,
where? 

 Related to audio, tvtime can only turn on an audio capture device and
 level up its volume. Related to audio, it does nothing beyond that. It
 does not decode or play back audio as provided within an a/v stream
 created by a digital TV driver.

Yes, you have mentioned it before.  I understand the point.  I worded my
post to say that tvtime lead my queries to alsa and then onto
PulseAudio.  I enquired about PulseAudio because I have some other sound
problems that are not connected to tvtime.

 
 Have you posted the output in dmesg when you modprobe your tv card
 driver?
 
Yes previously, but will do so again.  Modprobe for the tv card not
needed. It is already installed.

]$ dmesg

...
cx23885 driver version 0.0.1 loaded
cx23885 :02:00.0: PCI INT A - GSI 16 (level, low) - IRQ 16
CORE cx23885[0]: subsystem: 0070:7801, board: Hauppauge WinTV-HVR1800
[card=2,autodetected]
tveeprom 1-0050: Hauppauge model 78521, rev C1E9, serial# 4870798
tveeprom 1-0050: MAC address is 00-0D-FE-4A-52-8E
tveeprom 1-0050: tuner model is Philips 18271_8295 (idx 149, type 54)
tveeprom 1-0050: TV standards NTSC(M) ATSC/DVB Digital (eeprom 0x88)
tveeprom 1-0050: audio processor is CX23887 (idx 42)
tveeprom 1-0050: decoder processor is CX23887 (idx 37)
tveeprom 1-0050: has radio
cx23885[0]: hauppauge eeprom: model=78521
cx25840 3-0044: cx25  0-21 found @ 0x88 (cx23885[0])
cx25840 3-0044: firmware: requesting v4l-cx23885-avcore-01.fw
cx25840 3-0044: unable to open firmware v4l-cx23885-avcore-01.fw
tuner 2-0042: chip found @ 0x84 (cx23885[0])
tda829x 2-0042: could not clearly identify tuner address, defaulting to
60
tda18271 2-0060: creating new instance
TDA18271HD/C1 detected @ 2-0060
tda829x 2-0042: type set to tda8295+18271
cx23885[0]/0: registered device video0 [v4l2]
cx23885[0]: registered device video1 [mpeg]
cx23885_dvb_register() allocating 1 frontend(s)
cx23885[0]: cx23885 based dvb card
MT2131: successfully identified at address 0x61
DVB: registering new adapter (cx23885[0])
DVB: registering adapter 0 frontend 0 (Samsung S5H1409 QAM/8VSB
Frontend)...
cx23885_dev_checkrevision() Hardware revision = 0xb1
cx23885[0]/0: found at :02:00.0, rev: 15, irq: 16, latency: 0, mmio:
0xe500
cx23885 :02:00.0: setting latency timer to 64
IRQ 16/cx23885[0]: IRQF_DISABLED is not guaranteed on shared IRQs
device-mapper: multipath: version 1.0.5 loaded
...

 What details have you found out about your TV card
 ( http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1800 )
 and the current Linux kernel driver support? What exactly does it
 offer? 
Components Used
This card features:

  * NXP/Philips TDA18271 (tuner for analog)
  * Microtune MT2131 (tuner for digital)
  * NXP/Philips TDA8295 (analog IF demodulator) 
  * Samsung S5H1409/Conexant CX24227 (digital demodulator)
  * Conexant CX23417 (MPEG-2 encoder)
  * Elpida (RAM)
  * Conexant CX23887 (A/V Decoder  PCIe bridge)

The above site suggests the addition of firmware for cx23885
The 2.6.29.6-213.fc11.x86_64 kernel seems to have that module included.

]$ modinfo cx23885
filename:   
/lib/modules/2.6.29.6-213.fc11.x86_64/kernel/drivers/media/video/cx23885/cx23885.ko
license:GPL
author: Steven Toth st...@linuxtv.org
description:v4l2 driver module for cx23885 based TV cards
license:GPL
author: Steven Toth st...@linuxtv.org
description:Driver for cx23885 based TV cards
srcversion: CAEBE96D1188D294574E555
alias:  pci:v14F1d8880sv*sd*bc*sc*i*

Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-24 Thread William Case
Thanks Mikkel;

On Fri, 2009-07-24 at 13:52 -0500, Mikkel L. Ellertson wrote:
 William Case wrote:
  Hi;
  
  My problem is not yet with tvtime but my question trail starts there.
  
  tvtime has been upgraded to use alsa for sound rather than OSS.  To do
  that I need to re-set  option name=MixerDevice value=default/Line/
  to something like mixer=DEVICE[:CH] e.g hw:0/CD; where DEVICE = hw:0
  and [:CH] = /CD.
  
  ls /dev/mixer no longer exists.  Where does tvtime find DEVICE and where
  do I find DEVICE?  How do I know it is the new name of the mixer?
  
  Which channel [:CH] do I use?  Is it from the same list as tvtime.xml
  suggests for OSS or is it a different list?  Given that I have an
  internal sound card on a PCIe bus how would I go about deducing which
  channels to try first?
  
 You can run amixer scontrols to get a list of simple mixer control
 names. (running amixer controls will give the long names.) You can
 also get information by running amixer info. You can also run
 aplay -l or aplay -L to get a list of sound cards.

The question is more complex than that.  TVTime now has two mixer
options: OSS and Alsa.  The OSS channel names correspond to a list
supplied by tvtime.xml and to the list in alsamixer.  For Alsa I have
two choices of protocol or formulations to define the mixer and channel
used, either a)option name=MixerDevice value=default/Line/ or b)
option name=MixerDevice value=DEVICE[:CH].  On my machine tvtime
seems to accept b) only.

I have only been able to find Line or CD suggested as possible
channels [:CH] for the alsa formulation.  Note the intial letter
capitalization of the channel name in Alsa versus the all lower case in
OSS.

So, can I use the same channel names, with a capitalized first letter,
as are listed for OSS or is there a new list of channel names that only
applies to Alsa?

The second part of the question I was asking was what channels do I want
to choose.  I have a lot of info here about what each of the channels is
*supposed* to do.  But I have received so much conflicting advice, and
tried so many possible combinations, I wanted to start fresh being able
to think through for myself what the settings should be.  The various
guis I have all seem to confuse the issue(s) rather than clarify.  The
fact that I have a PCIe bus with internal sound seems to greatly confuse
the issue and outdates much of the google information I have found.

In the end, this all may be a bug caused by faulty or outdated drivers.
But first I would like to work my way through to a solid conclusion
before being castigated by maintainers for not knowing what I am talking
about.

-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 22.3.1

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-24 Thread Mikkel L. Ellertson
William Case wrote:
 
 The question is more complex than that.  TVTime now has two mixer
 options: OSS and Alsa.  The OSS channel names correspond to a list
 supplied by tvtime.xml and to the list in alsamixer.  For Alsa I have
 two choices of protocol or formulations to define the mixer and channel
 used, either a)option name=MixerDevice value=default/Line/ or b)
 option name=MixerDevice value=DEVICE[:CH].  On my machine tvtime
 seems to accept b) only.
 
 I have only been able to find Line or CD suggested as possible
 channels [:CH] for the alsa formulation.  Note the intial letter
 capitalization of the channel name in Alsa versus the all lower case in
 OSS.
 
 So, can I use the same channel names, with a capitalized first letter,
 as are listed for OSS or is there a new list of channel names that only
 applies to Alsa?
 
 The second part of the question I was asking was what channels do I want
 to choose.  I have a lot of info here about what each of the channels is
 *supposed* to do.  But I have received so much conflicting advice, and
 tried so many possible combinations, I wanted to start fresh being able
 to think through for myself what the settings should be.  The various
 guis I have all seem to confuse the issue(s) rather than clarify.  The
 fact that I have a PCIe bus with internal sound seems to greatly confuse
 the issue and outdates much of the google information I have found.
 
 In the end, this all may be a bug caused by faulty or outdated drivers.
 But first I would like to work my way through to a solid conclusion
 before being castigated by maintainers for not knowing what I am talking
 about.
 
Ok let me define a couple of things. You may want to run
man amixer for a full explanation.

amixer info - provides information about the default card.
---
amixer scontrols - provides names of the controls for choice a.
Simple mixer control 'Line',0
would be channel Line

---
amixer scontrols - provides names of the controls for the f
amixer controls - provides number/description for choice b.

numid=19,iface=MIXER,name='Line Playback Volume'
would be channel 19.
---
amixer contents - gives much more information about the controls
  and the type of settings. It may help decide what
  control to use.
---
aplay -l - lists the audio output cards in the system.

Now, amixer defaults to sound card 0 (hw:0), but it can show other
sound cards using the -c option (-c n). If your TV card is like
mine, and has a external cable between it and the sound card, then
you are probably going to be using someting like the Line channel.

On the other hand, you probably also have controls on your TV card
as well. For me it is sound card 1, but I normally leave the
controls at max. I also have a mixer page for it in the Gnome mixer.

Both amixer and aplay are part of the ALSA package.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: 'Splain please re: mixer, alsa, pulseaudio and tvtime??

2009-07-24 Thread William Case
Hi Mikkel;

There is probably no need to reply to this post -- unless you see
something obviously wrong.  I am just posting to get the results on the
record -- so to speak.

On Fri, 2009-07-24 at 20:10 -0500, Mikkel L. Ellertson wrote:
 William Case wrote:
  
  The question is more complex than that.  TVTime now has two mixer
  options: OSS and Alsa.  The OSS channel names correspond to a list
  supplied by tvtime.xml and to the list in alsamixer.  For Alsa I have
  two choices of protocol or formulations to define the mixer and channel
  used, either a)option name=MixerDevice value=default/Line/ or b)
  option name=MixerDevice value=DEVICE[:CH].  On my machine tvtime
  seems to accept b) only.
  
  I have only been able to find Line or CD suggested as possible
  channels [:CH] for the alsa formulation.  Note the intial letter
  capitalization of the channel name in Alsa versus the all lower case in
  OSS.
  
  So, can I use the same channel names, with a capitalized first letter,
  as are listed for OSS or is there a new list of channel names that only
  applies to Alsa?
  
  The second part of the question I was asking was what channels do I want
  to choose.  I have a lot of info here about what each of the channels is
  *supposed* to do.  But I have received so much conflicting advice, and
  tried so many possible combinations, I wanted to start fresh being able
  to think through for myself what the settings should be.  The various
  guis I have all seem to confuse the issue(s) rather than clarify.  The
  fact that I have a PCIe bus with internal sound seems to greatly confuse
  the issue and outdates much of the google information I have found.
  
  In the end, this all may be a bug caused by faulty or outdated drivers.
  But first I would like to work my way through to a solid conclusion
  before being castigated by maintainers for not knowing what I am talking
  about.
  

 Ok let me define a couple of things. You may want to run
 man amixer for a full explanation.
 
Although I have read 'man amixer' in the past, in conjunction with your
explanations, it now makes more sense.

 amixer info - provides information about the default card.
]$ amixer info
Card default 'pulse'/'PulseAudio'
  Mixer name: 'PulseAudio'
  Components: ''
  Controls  : 4
  Simple ctrls  : 2

I tried all 4 of the control names over a month ago and got no sound
from using any of them with alsamixer and/or Advanced Volume Control
[Device: HDA Intel (AlsaMixer)].  see below.

 ---
 amixer scontrols - provides names of the controls for choice a.
 Simple mixer control 'Line',0
 would be channel Line
 
$ amixer scontrols
Simple mixer control 'Master',0
Simple mixer control 'Capture',0

 ---
 amixer scontrols - provides names of the controls for the f
 amixer controls - provides number/description for choice b.
 
 numid=19,iface=MIXER,name='Line Playback Volume'
 would be channel 19.

]$ amixer controls
numid=4,iface=MIXER,name='Master Playback Switch'
numid=3,iface=MIXER,name='Master Playback Volume'
numid=2,iface=MIXER,name='Capture Switch'
numid=1,iface=MIXER,name='Capture Volume'

Set ]$ tvtime --mixer=hw:0/Master
Tried Advanced Volume Control set to [Device: Playback: Internal Audio
(PulseAudio Mixer)] which showed only the 'Master' slider.

TVTime had no sound.  But at least responded visually to the +/- sound
keys.  However volume setting returned to 0 on each restart.

Set tvtime --mixer=hw:0/Front
Tried Advanced Volume Control set to [Device: Playback: Internal Audio
(PulseAudio Mixer)]
Got no sound, but did get the volume settings retained for each start.

I then tried the pavucontrol gui configured to 'Profile: Output Analog
Stereo + Input Analog Stereo'.  The other options I had in the drop down
list were various combinations of Input, Output; Stereo, Surround;
Analog, Digital and IEC958. 

The Profile I choose, 'Output Analog Stereo + Input Analog Stereo', gave
me the most detail under the Playback, Output Devices and Input Devices
tabs.  In fact, when using RhythmBox, Playback and Output Devices tabs
showed the application name and a sound activity bar.  Similarly, when
playing a video on CNN, Playback showed 'ALSA plug-in [firefox]' and
sound activity.

However, when using tvtime no application is recognized by pavucontrol.
Except that under the Input Devices tab, the sound activity bar jiggles
a bit, as if trying to come to life.
 ---
 amixer contents - gives much more information about the controls
   and the type of settings. It may help decide what
   control to use.

$ amixer contents
numid=4,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw--,values=1
  : values=on
numid=3,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw--,values=2,min=0,max=65536,step=1
  :