Bug 904775

Summary: Gnomeradio has no mechanism to route the audio to soundcard, needs to be ported to ALSA API.
Product: [Fedora] Fedora Reporter: triniton <trinitonadam>
Component: gnomeradioAssignee: Paulo Roma Cavalcanti <promac>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 18CC: geoubuntu, itamar, superquad.vortex2
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-05 18:33:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
alsa info none

Description triniton 2013-01-27 13:49:46 UTC
Description of problem:

When will alsa support to gnomeradio?
Currently, you can not use the up and down arrow keys for volume management.
The new systems, throwing the OSS, and there is no /dev/mixer.

It possible like someone implement alsa support ( including alsa mixer ) like in tvtime.

Thanks

Comment 1 POJAR GEORGE 2013-01-29 18:05:54 UTC
I write a patch ( ubuntu gnomeradio version ) to support for looping back audio through alsa devices ( including mixer control ).

Should be tested in several types of tv/fm tuners and then all the work will be made ​​public.

Package for ubuntu is here: https://launchpad.net/~geoubuntu/+archive/test

Best regards.

Comment 2 Raymond 2013-01-30 01:20:52 UTC
post the output of alsa-info.sh


did you connect your radio to line in or aux of your onboard sound ?

Comment 3 POJAR GEORGE 2013-01-30 07:34:40 UTC
My radio tuner is connected to line in.

In function of your tuner, change "Mixer Source" from "Preference" to:

default/Line or
default/CD or
hw:0/Line or
etc.

Comment 4 POJAR GEORGE 2013-01-30 07:45:24 UTC
Created attachment 690203 [details]
alsa info

Comment 5 Raymond 2013-01-30 08:27:03 UTC
you have to unmute  line playback switch and change line playback volume using alsamixer -c0

no need to change capture source to line since you are using the analog mixer of AC97 codec to mix the input signal from line in to line out 

set line playback to 0dB 

amixer -c 0 set Line playback 72% unmute


the output volume is controlled by master playback volume and switch


Simple mixer control 'Line',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]



control.18 {
		iface MIXER
		name 'Line Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.19 {
		iface MIXER
		name 'Line Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}

Comment 6 POJAR GEORGE 2013-03-27 15:33:03 UTC
Probably one of the most popular questions I see new users ask about gnomeradio is along the lines of the following:

    "It looks like gnomeradio is working (showing me gui), but for some reason I am not hearing any audio. What is wrong with my tuner?"

    Unfortunately, in the vast majority of cases, there is nothing wrong with the tuner. The problem is that gnomeradio was originally designed to be used with older tuner cards that have a dedicated audio output cable, which you are expected to connect to speakers. Most newer tuner products deliver their audio via an ALSA device, for which gnomeradio has no mechanism to route the audio to soundcard.

    As a result, users end to run sox or arecord/aplay in a separate terminal window (which always seemed like a rather ridiculous workaround).

    Solution: Added support for looping back audio through alsa devices. This feature automatically get an alsa device associated with a radio device. It will start an audio streaming between the radio device and the audio output device.

SCREENSHOT: Gnomeradio working with alsa https://launchpadlibrarian.net/135293108/gnomeradio_alsa.png

Package for ubuntu is here: https://launchpad.net/~geoubuntu/+archive/test-ppa/+sourcepub/3047676/+listing-archive-extra

Comment 7 POJAR GEORGE 2013-03-27 16:05:46 UTC
Gnomeradio loopback digital audio from radio device: https://launchpadlibrarian.net/135415302/Gnomeradio%20alsa%20loopback.png

Comment 8 Raymond 2013-11-15 13:46:01 UTC
as only desktop computer cab install those tuner and desktop has line in (blue Jack) and thosr
e audio codec still have line playback volume control

it is just waste of CPU to use any loopback when your have the hardware mixer

Comment 9 Fedora End Of Life 2013-12-21 10:53:18 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2014-02-05 18:33:53 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.