tmassie / aospx

Automatically exported from code.google.com/p/aospx
0 stars 0 forks source link

Sounds come over speaker when headphones are pluged in #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. plugin headphones
2. press volume up/down and hear sounds
3. other sounds like notifications also can be heard

What is the expected output? What do you see instead?
only sounds via headphones

What version of the product are you using?
AR15

Please provide logcat ouput and any additional information below.

--------- beginning of /dev/log/main
D/alogcat ( 4244): stopped
D/alogcat ( 4244): starting ...
D/memalloc( 4244): /dev/pmem: Unmapping buffer base:0x4abcd000 size:430080 
offset:0
D/memalloc( 1327): /dev/pmem: Freeing buffer base:0x4bab8000 size:430080 
offset:0 fd:197
D/memalloc( 4244): /dev/pmem: Unmapping buffer base:0x4ace7000 size:860160 
offset:430080
D/memalloc( 1327): /dev/pmem: Allocated buffer base:0x4bab8000 size:122880 
offset:0 fd:196
D/memalloc( 4244): /dev/pmem: Mapped buffer base:0x4abc7000 size:122880 
offset:0 fd:47
--------- beginning of /dev/log/system
W/InputManagerService( 1327): Window already focused, ignoring focus gain of: 
com.android.internal.view.IInputMethodClient$Stub$Proxy@4146dfd0
D/memalloc( 1327): /dev/pmem: Freeing buffer base:0x4bb21000 size:430080 
offset:430080 fd:269
D/memalloc( 4244): /dev/pmem: Unmapping buffer base:0x4abc7000 size:122880 
offset:0
D/memalloc( 1327): /dev/pmem: Freeing buffer base:0x4bab8000 size:122880 
offset:0 fd:196
I/RDIO    ( 4210): [INFO][PlayerService] Wakelock released
V/WiredAccessoryObserver( 1327): Headset UEVENT: {SUBSYSTEM=switch, 
SWITCH_STATE=2, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=1197, 
ACTION=change, SWITCH_NAME=Headset}
V/WiredAccessoryObserver( 1327): newState = 2, headsetState = 2,mHeadsetState = 
0
V/WiredAccessoryObserver( 1327): Intent.ACTION_HEADSET_PLUG: state: 1 name: 
Headset mic: 0
W/AudioPolicyManager7x30( 2701): getDeviceForStrategy() unknown strategy: 4
W/AudioPolicyManager7x30( 2701): getDeviceForStrategy() unknown strategy: 4
D/memalloc( 1327): /dev/pmem: Allocated buffer base:0x4bab8000 size:245760 
offset:0 fd:269
V/AudioHardwareMSM7X30( 2701): open driver
V/AudioHardwareMSM7X30( 2701): get config
V/AudioHardwareMSM7X30( 2701): set config
V/AudioHardwareMSM7X30( 2701): buffer_size: 4800
V/AudioHardwareMSM7X30( 2701): buffer_count: 2
V/AudioHardwareMSM7X30( 2701): channel_count: 2
V/AudioHardwareMSM7X30( 2701): sample_rate: 44100
V/AudioHardwareMSM7X30( 2701): dec_id = 5
V/AudioHardwareMSM7X30( 2701): cur_rx for pcm playback = 12
V/AudioHardwareMSM7X30( 2701): getACDB, return ID 408
I/HTC Acoustic( 2701): update ACDB id: (tx, rx, tx_acdb, rx_acdb) = (1, 12, 0, 
408)
D/memalloc( 1327): /dev/pmem: Allocated buffer base:0x4bab8000 size:245760 
offset:245760 fd:278
E/AudioHardwareMSM7X30( 2701): updateDeviceInfo: E rx_device 12 and tx_device 1
E/AudioHardwareMSM7X30( 2701): updateDeviceInfo: X cur_rx 12 cur_tx 1
D/memalloc( 1327): /dev/pmem: Freeing buffer base:0x4bab8000 size:245760 
offset:0 fd:269
D/memalloc( 1327): /dev/pmem: Freeing buffer base:0x4baf4000 size:245760 
offset:245760 fd:278
D/memalloc( 1327): /dev/pmem: Allocated buffer base:0x4bab8000 size:245760 
offset:0 fd:269
V/AudioHardwareMSM7X30( 2701): open driver
V/AudioHardwareMSM7X30( 2701): get config
V/AudioHardwareMSM7X30( 2701): set config
V/AudioHardwareMSM7X30( 2701): buffer_size: 4800
V/AudioHardwareMSM7X30( 2701): buffer_count: 2
V/AudioHardwareMSM7X30( 2701): channel_count: 2
V/AudioHardwareMSM7X30( 2701): sample_rate: 44100
V/AudioHardwareMSM7X30( 2701): dec_id = 5
V/AudioHardwareMSM7X30( 2701): cur_rx for pcm playback = 12
V/AudioHardwareMSM7X30( 2701): getACDB, return ID 408
I/HTC Acoustic( 2701): update ACDB id: (tx, rx, tx_acdb, rx_acdb) = (1, 12, 0, 
408)
D/memalloc( 1327): /dev/pmem: Freeing buffer base:0x4bab8000 size:245760 
offset:0 fd:269
E/AudioHardwareMSM7X30( 2701): updateDeviceInfo: E rx_device 12 and tx_device 1
E/AudioHardwareMSM7X30( 2701): updateDeviceInfo: X cur_rx 12 cur_tx 1
D/memalloc( 1327): /dev/pmem: Allocated buffer base:0x4bab8000 size:245760 
offset:0 fd:269
V/AudioHardwareMSM7X30( 2701): open driver
V/AudioHardwareMSM7X30( 2701): get config
V/AudioHardwareMSM7X30( 2701): set config
V/AudioHardwareMSM7X30( 2701): buffer_size: 4800
V/AudioHardwareMSM7X30( 2701): buffer_count: 2
V/AudioHardwareMSM7X30( 2701): channel_count: 2
V/AudioHardwareMSM7X30( 2701): sample_rate: 44100
V/AudioHardwareMSM7X30( 2701): dec_id = 5
V/AudioHardwareMSM7X30( 2701): cur_rx for pcm playback = 12
V/AudioHardwareMSM7X30( 2701): getACDB, return ID 408
I/HTC Acoustic( 2701): update ACDB id: (tx, rx, tx_acdb, rx_acdb) = (1, 12, 0, 
408)
D/memalloc( 1327): /dev/pmem: Freeing buffer base:0x4bab8000 size:245760 
offset:0 fd:269
E/AudioHardwareMSM7X30( 2701): updateDeviceInfo: E rx_device 12 and tx_device 1
E/AudioHardwareMSM7X30( 2701): updateDeviceInfo: X cur_rx 12 cur_tx 1
D/memalloc( 1327): /dev/pmem: Allocated buffer base:0x4bab8000 size:430080 
offset:0 fd:197
D/memalloc( 4244): /dev/pmem: Mapped buffer base:0x4abcd000 size:430080 
offset:0 fd:47
D/memalloc( 1327): /dev/pmem: Allocated buffer base:0x4bab8000 size:430080 
offset:430080 fd:269
D/memalloc( 4244): /dev/pmem: Mapped buffer base:0x4ace7000 size:860160 
offset:430080 fd:60

Original issue reported on code.google.com by ross...@gmail.com on 26 Jan 2012 at 10:00

GoogleCodeExporter commented 8 years ago
Also when a music app plays all sounds only go through the headphones... not 
both

Original comment by ross...@gmail.com on 26 Jan 2012 at 10:05

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by robbe...@gmail.com on 17 Feb 2012 at 8:09

GoogleCodeExporter commented 8 years ago
Can someone verify if this issue still exists in latest BR2?

Original comment by robbe...@gmail.com on 7 Jun 2012 at 10:42

GoogleCodeExporter commented 8 years ago
Seems as if its still an issue on my device. Tested the music and youtube apps 
- they seem to play sound only through the headphones when plugged in. 
Notifications (and things like the beep when the volume buttons are pressed) 
seem to come out of both the headphones and the phone.

Using BR2.

Original comment by goldenpi...@gmail.com on 11 Jun 2012 at 4:59

GoogleCodeExporter commented 8 years ago

Original comment by robbe...@gmail.com on 18 Jun 2012 at 5:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Seems this same issue is happening on CM as well...

http://code.google.com/p/cyanogenmod/issues/detail?id=5735

Since our audio sources are based on CMs, once they fix the issue then it 
should work for us as well. Ill continue looking into it myself, but if they 
get it fixed first then ill add the changes.

Original comment by robbe...@gmail.com on 10 Jul 2012 at 8:28

GoogleCodeExporter commented 8 years ago
This happens even with the stock 2.3 of HTC.

Original comment by zm.redak...@gmail.com on 6 Aug 2012 at 6:46

GoogleCodeExporter commented 8 years ago
I was starting to wonder if this was default behavior, anyone else able to 
verify?

Original comment by robbe...@gmail.com on 8 Aug 2012 at 4:02

GoogleCodeExporter commented 8 years ago
Existz, when I saw this issue posted, I thought it was a default behavior as 
well. I remember falling asleep with my headphones on back in the GB days and 
still waking up to my alarm thinking "damn thats convenient"

Original comment by LJC2...@gmail.com on 9 Aug 2012 at 2:35

GoogleCodeExporter commented 8 years ago
Seems to be confirmed default behavior on Nexus 7 as well, so this is 
intentional. 

http://code.google.com/p/cyanogenmod/issues/detail?id=5735

Original comment by robbe...@gmail.com on 9 Aug 2012 at 2:50

GoogleCodeExporter commented 8 years ago
As of right now im going to mark this one 'Wont Fix' since it seems to be 
default behavior (with stock Sense and on other AOSP devices as well).

Original comment by robbe...@gmail.com on 9 Aug 2012 at 7:09