Menu

#685 SOLVED: Use of mixer channel names made of multiple words

closed
nobody
None
5
2008-01-05
2008-01-05
Radu
No

Hello folks,
I'm using tvtime with an M-Audio Revolution 5.1 soundcard (ICE1724). This soundcard has some particular names for the mixer channels:

$ amixer controls
numid=1,iface=CARD,name='ICE1724 EEPROM'
numid=19,iface=MIXER,name='PCM Center Playback Volume'
numid=20,iface=MIXER,name='PCM LFE Playback Volume'
numid=21,iface=MIXER,name='PCM Rear Playback Volume'
numid=18,iface=MIXER,name='PCM Playback Volume'
numid=24,iface=MIXER,name='PCM Capture Switch'
numid=23,iface=MIXER,name='PCM Capture Volume'
numid=27,iface=MIXER,name='Line Loopback Playback Volume'
numid=28,iface=MIXER,name='CD Loopback Playback Volume'
numid=26,iface=MIXER,name='Mic Loopback Playback Volume'

and,

$ amixer scontrols
Simple mixer control 'PCM',0
Simple mixer control 'PCM Center',0
Simple mixer control 'PCM LFE',0
Simple mixer control 'PCM Rear',0
Simple mixer control 'Line Loopback',0
Simple mixer control 'CD Loopback',0
Simple mixer control 'Mic Loopback',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Output',0
Simple mixer control 'IEC958',1
Simple mixer control 'Capture Channel',0
Simple mixer control 'Deemphasis',0
Simple mixer control 'H/W',0
Simple mixer control 'H/W',1
Simple mixer control 'H/W',2
Simple mixer control 'H/W',3
Simple mixer control 'H/W',4
Simple mixer control 'H/W',5
Simple mixer control 'Loopback',0
Simple mixer control 'Multi Track Internal Clock',0
Simple mixer control 'Multi Track Peak',0
Simple mixer control 'Multi Track Rate Locking',0
Simple mixer control 'Multi Track Rate Reset',0

My tvtuner is connected to what would be the 'CD Loopback',and I can control the volume from an external mixer to that channel. But I can't figure out how to tell tvtime to use CD Loopback to control the mixer!
Here's what I tried:

radu@Xanadu:~$ tvtime --mixer=/dev/mixer:CD Loopback
Running tvtime 1.0.2.
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/radu/.tvtime/tvtime.xml
cpuinfo: CPU Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, family 6, model 15, stepping 11.
cpuinfo: CPU measured at 2400,114MHz.
tvtime: Cannot set priority to -10: Permission denied.
xcommon: Display :0.0, vendor The X.Org Foundation, vendor release 10300000
xfullscreen: Using XINERAMA for dual-head information.
xfullscreen: Pixels are square.
xfullscreen: Number of displays is 1.
xfullscreen: Head 0 at 0,0 with size 1680x1050.
xcommon: Have XTest, will use it to ping the screensaver.
xcommon: Pixel aspect ratio 1:1.
xcommon: Pixel aspect ratio 1:1.
xcommon: Window manager is KWin and is EWMH compliant.
xcommon: Using EWMH state fullscreen property.
xcommon: Using EWMH state above property.
xcommon: Using EWMH state below property.
xcommon: Pixel aspect ratio 1:1.
xcommon: Displaying in a 768x576 window inside 768x576 space.
xvoutput: Using XVIDEO adaptor 280: NV17 Video Texture.
speedycode: Using MMXEXT optimized functions.
station: Reading stationlist from /home/radu/.tvtime/stationlist.xml
videoinput: Using video4linux2 driver 'cx8800', card 'Leadtek Winfast 2000XP Expert' (bus PCI:0000:03:07.0).
videoinput: Version is 6, capabilities 5010011.
videoinput: Maximum input width: 768 pixels.
tvtime: Sampling input at 768 pixels per scanline.
xcommon: Pixel aspect ratio 1:1.
xcommon: Displaying in a 768x576 window inside 768x576 space.
xcommon: Received a map, marking window as visible (56).
tvtime: Cleaning up.
Thank you for using tvtime.
radu@Xanadu:~$ tvtime --mixer=/dev/mixer:CD\ Loopback
Running tvtime 1.0.2.
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/radu/.tvtime/tvtime.xml
cpuinfo: CPU Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, family 6, model 15, stepping 11.
cpuinfo: CPU measured at 2400,141MHz.
tvtime: Cannot set priority to -10: Permission denied.
xcommon: Display :0.0, vendor The X.Org Foundation, vendor release 10300000
xfullscreen: Using XINERAMA for dual-head information.
xfullscreen: Pixels are square.
xfullscreen: Number of displays is 1.
xfullscreen: Head 0 at 0,0 with size 1680x1050.
xcommon: Have XTest, will use it to ping the screensaver.
xcommon: Pixel aspect ratio 1:1.
xcommon: Pixel aspect ratio 1:1.
xcommon: Window manager is KWin and is EWMH compliant.
xcommon: Using EWMH state fullscreen property.
xcommon: Using EWMH state above property.
xcommon: Using EWMH state below property.
xcommon: Pixel aspect ratio 1:1.
xcommon: Displaying in a 768x576 window inside 768x576 space.
xvoutput: Using XVIDEO adaptor 280: NV17 Video Texture.
speedycode: Using MMXEXT optimized functions.
station: Reading stationlist from /home/radu/.tvtime/stationlist.xml
videoinput: Using video4linux2 driver 'cx8800', card 'Leadtek Winfast 2000XP Expert' (bus PCI:0000:03:07.0).
videoinput: Version is 6, capabilities 5010011.
videoinput: Maximum input width: 768 pixels.
tvtime: Sampling input at 768 pixels per scanline.
mixer: No such mixer channel 'CD Loopback', using channel 'line'.
xcommon: Pixel aspect ratio 1:1.
xcommon: Displaying in a 768x576 window inside 768x576 space.
xcommon: Received a map, marking window as visible (56).
tvtime: Cleaning up.
Thank you for using tvtime.
radu@Xanadu:~$ tvtime --mixer=/dev/mixer:'CD Loopback'
Running tvtime 1.0.2.
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/radu/.tvtime/tvtime.xml
cpuinfo: CPU Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, family 6, model 15, stepping 11.
cpuinfo: CPU measured at 2400,070MHz.
tvtime: Cannot set priority to -10: Permission denied.
xcommon: Display :0.0, vendor The X.Org Foundation, vendor release 10300000
xfullscreen: Using XINERAMA for dual-head information.
xfullscreen: Pixels are square.
xfullscreen: Number of displays is 1.
xfullscreen: Head 0 at 0,0 with size 1680x1050.
xcommon: Have XTest, will use it to ping the screensaver.
xcommon: Pixel aspect ratio 1:1.
xcommon: Pixel aspect ratio 1:1.
xcommon: Window manager is KWin and is EWMH compliant.
xcommon: Using EWMH state fullscreen property.
xcommon: Using EWMH state above property.
xcommon: Using EWMH state below property.
xcommon: Pixel aspect ratio 1:1.
xcommon: Displaying in a 768x576 window inside 768x576 space.
xvoutput: Using XVIDEO adaptor 280: NV17 Video Texture.
speedycode: Using MMXEXT optimized functions.
station: Reading stationlist from /home/radu/.tvtime/stationlist.xml
videoinput: Using video4linux2 driver 'cx8800', card 'Leadtek Winfast 2000XP Expert' (bus PCI:0000:03:07.0).
videoinput: Version is 6, capabilities 5010011.
videoinput: Maximum input width: 768 pixels.
tvtime: Sampling input at 768 pixels per scanline.
mixer: No such mixer channel 'CD Loopback', using channel 'line'.
xcommon: Pixel aspect ratio 1:1.
xcommon: Displaying in a 768x576 window inside 768x576 space.
xcommon: Received a map, marking window as visible (56).
tvtime: Cleaning up.
Thank you for using tvtime

I've also tried to add in various ways to tvtime.xml:

<option name="MixerDevice" value="/dev/mixer:CD Loopback"/>

and still i can't control it.
I sthere any way to control mixer channel names made of 2 or more words? (that is, channels that contain spaces in their name). I f I select a channel with only one word as a name: "PCM" tvtime CAN control it, but that channel does not change the volume of the tuner.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Hi there, you mixing up OSS and alsa. For OSS, try one of these (cd?):

    vol, bass, treble, synth, pcm, speaker, line, mic, cd, mix, pcm2,
    rec, igain, ogain, line1, line2, line3, dig1, dig2, dig3, phin,
    phout, video, radio, monitor

    If those does not work, take a look on the alsa-oss_mixer (or so) kernel module, you might map the correct channel there.

    OSS doesn't have names with multiple words, the alsa mixer is a different thingy. One can be found around here (or stapelspeicher.org/tvtime). When using it, quote like: --mixer="default/CD Loopback" or --mixer=default/"CD Loopback".

    Have fun.

     
  • Nobody/Anonymous

    Logged In: NO

    Ah yes, this can be closed because this is not a bug in tvtime.

     
  • Radu

    Radu - 2008-01-05
    • status: open --> closed
     
  • Radu

    Radu - 2008-01-05

    Logged In: YES
    user_id=1974206
    Originator: YES

    SOLVED: I looked in /proc/asound/card0/oss_mixer and the alsa controls were mapped only for the PCM control. I changed in that file:

    CD "CD Loopback" 0

    and started tvtime like this: tvtime --mixer=/dev/mixer:CD Loopback
    It works!
    Thank you, everyone!

     
  • Radu

    Radu - 2008-01-05
    • summary: Use of mixer channel names made of multiple words --> SOLVED: Use of mixer channel names made of multiple words
     

Log in to post a comment.