Bug 913196 - sound is not autoswitching between speaker and headphone
Summary: sound is not autoswitching between speaker and headphone
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pulseaudio
Version: 18
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-20 16:03 UTC by Ali Yazdi
Modified: 2013-08-04 09:14 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-04 09:14:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
This script wakes up my speaker output during a login session (1.22 KB, text/plain)
2013-02-21 21:35 UTC, Hugh Caley
no flags Details

Description Ali Yazdi 2013-02-20 16:03:57 UTC
Description of problem:
sound is not autoswitching between speaker and headphone

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. play a sound 
2. insert Microphone 
3.
  
Actual results:

Speaker and microphone both play sound 

Expected results:

speaker should be muted and sound should played only by microphone 

Additional info:

This is a continuation of bug 786342. I installed a fresh F18 and still have the problem.


here is my alsa-info:

http://www.alsa-project.org/db/?f=90e5bda69220981984df5d76b1da2070000f04b3

Comment 1 Ali Yazdi 2013-02-20 16:07:13 UTC
sorry, headphone not microphone. I don't know why I typed microphone.

Comment 2 Raymond 2013-02-21 00:47:10 UTC
but headphone Jack is kcontrol is still false (i.e. unplugged)

try hda-jack-sense-test

control.21 {
		iface CARD
		name 'Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}

Comment 3 Hugh Caley 2013-02-21 21:35:04 UTC
Created attachment 700847 [details]
This script wakes up my speaker output during a login session

The attached script wakes up my external speaker connection during a login session;  I have to run it twice and then my speakers/headphones work fine, until I log out.

Comment 4 Hugh Caley 2013-02-21 21:36:28 UTC
(In reply to comment #3)
> Created attachment 700847 [details]
> This script wakes up my speaker output during a login session
> 
> The attached script wakes up my external speaker connection during a login
> session;  I have to run it twice and then my speakers/headphones work fine,
> until I log out.

Here is some output from my iMac running Fedora 18 related to sound:

grep "Codec:" /proc/asound/card*/codec*
/proc/asound/card0/codec#0:Codec: Cirrus Logic CS4206
/proc/asound/card1/codec#0:Codec: ATI R6xx HDMI
[hughc@willow bin]$ sudo dmidecode -s system-product-name
iMac12,1

Comment 5 Raymond 2013-02-22 07:03:57 UTC
set(0x01, 0x715, 0x04) # 0x01071504 (SET_GPIO_DATA)
set(0x01, 0x716, 0x0c) # 0x0107160c (SET_GPIO_MASK)
set(0x01, 0x717, 0x0c) # 0x0107170c (SET_GPIO_DIRECTION)

alternative is to use hda-verb

http://git.alsa-project.org/?p=alsa-tools.git;a=blob;f=hda-verb/README;hb=HEAD


do you mean GPIO  have to set after suspend or resume ?

Comment 6 Ali Yazdi 2013-02-22 11:23:30 UTC
(In reply to comment #2)
> but headphone Jack is kcontrol is still false (i.e. unplugged)
> 
> try hda-jack-sense-test
> 

Where can I find this file to run it? I searched but could not find it.

Comment 7 Ali Yazdi 2013-02-22 14:53:51 UTC
to comment #3)
> Created attachment 700847 [details]
> This script wakes up my speaker output during a login session
> 
> The attached script wakes up my external speaker connection during a login
> session;  I have to run it twice and then my speakers/headphones work fine,
> until I log out.


I ran this on my laptop. Sony F series (full spec is on alsa-info URL in first post). It has no affect. Sound still played by both headphone and speakers. The second time I ran it. the volume of headphone dropped significantly.

Comment 8 Hugh Caley 2013-02-22 18:42:18 UTC
Oops, sorry, looking closer at this bug I see that it is not actually very close to my problem.  I will take my script elsewhere ;)

Comment 9 Raymond 2013-08-04 05:18:38 UTC
>>try hda-jack-sense-test


>Where can I find this file to run it? I searched but could not find it.


http://mailman.alsa-project.org/pipermail/alsa-devel/2011-May/039809.html

Comment 10 Ali Yazdi 2013-08-04 09:14:26 UTC
I am closing the bug as I have already sold the laptop, and can not follow the bug.


Note You need to log in before you can comment on or make changes to this bug.