{"action":"created","issue":{"url":"https://api.github.com/repos/meefik/linuxdeploy/issues/223","repository_url":"https://api.github.com/repos/meefik/linuxdeploy","labels_url":"https://api.github.com/repos/meefik/linuxdeploy/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/meefik/linuxdeploy/issues/223/comments","events_url":"https://api.github.com/repos/meefik/linuxdeploy/issues/223/events","html_url":"https://github.com/meefik/linuxdeploy/issues/223","id":76268709,"number":223,"title":"Getting audio working in chroot under KitKat 4.4.2 ","user":{"login":"ShapeShifter499","id":388665,"avatar_url":"https://avatars.githubusercontent.com/u/388665?v=3","gravatar_id":"","url":"https://api.github.com/users/ShapeShifter499","html_url":"https://github.com/ShapeShifter499","followers_url":"https://api.github.com/users/ShapeShifter499/followers","following_url":"https://api.github.com/users/ShapeShifter499/following{/other_user}","gists_url":"https://api.github.com/users/ShapeShifter499/gists{/gist_id}","starred_url":"https://api.github.com/users/ShapeShifter499/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShapeShifter499/subscriptions","organizations_url":"https://api.github.com/users/ShapeShifter499/orgs","repos_url":"https://api.github.com/users/ShapeShifter499/repos","events_url":"https://api.github.com/users/ShapeShifter499/events{/privacy}","received_events_url":"https://api.github.com/users/ShapeShifter499/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-14T07:36:18Z","updated_at":"2016-04-01T17:20:42Z","closed_at":null,"body":"Hi,\r\n\r\nI have a LG Volt and everything is so nice but I cannot get audio working.   I have Arch Linux installed in the chroot.  When I try to run alsamixer I get \"cannot load mixer controls: Invalid argument\".  I've done a bit of googling but I haven't found any solutions.  Do you have any ideas how to get audio working?"},"comment":{"url":"https://api.github.com/repos/meefik/linuxdeploy/issues/comments/204477432","html_url":"https://github.com/meefik/linuxdeploy/issues/223#issuecomment-204477432","issue_url":"https://api.github.com/repos/meefik/linuxdeploy/issues/223","id":204477432,"user":{"login":"radosd","id":18217421,"avatar_url":"https://avatars.githubusercontent.com/u/18217421?v=3","gravatar_id":"","url":"https://api.github.com/users/radosd","html_url":"https://github.com/radosd","followers_url":"https://api.github.com/users/radosd/followers","following_url":"https://api.github.com/users/radosd/following{/other_user}","gists_url":"https://api.github.com/users/radosd/gists{/gist_id}","starred_url":"https://api.github.com/users/radosd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radosd/subscriptions","organizations_url":"https://api.github.com/users/radosd/orgs","repos_url":"https://api.github.com/users/radosd/repos","events_url":"https://api.github.com/users/radosd/events{/privacy}","received_events_url":"https://api.github.com/users/radosd/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T17:20:41Z","updated_at":"2016-04-01T17:20:41Z","body":"I'll write here some comments for getting audio inside chroot. Hope it'll be useful for someone.\r\n\r\nmy device is nexus 4, debian stable (no pulseaudio)\r\n\r\nfirst - find out which of the devices in /proc/asound/card0/ is used for playing audio via speaker. I started playing tuneinradio stream from android - then grep -v closed\r\n\r\nOK - so I know my audio is served via pcm14p.\r\n\r\nNext - alsactl monitor - while starting playback from tuneinradio - I see:\r\ncard 0, #334 (2,0,0,SLIM TX3 MUX,0) VALUE\r\ncard 0, #364 (2,0,0,RX3 MIX1 INP2,0) VALUE\r\ncard 0, #365 (2,0,0,RX3 MIX1 INP1,0) VALUE\r\ncard 0, #372 (2,0,0,RX4 DSM MUX,0) VALUE\r\ncard 0, #271 (2,0,0,SLIMBUS_0_RX Audio Mixer MultiMedia5,0) VALUE\r\n\r\nThen I searched inside sources of cyanogenmod:\r\nhttps://github.com/CyanogenMod/android_device_lge_mako/blob/cm-13.0/mixer_paths.xml\r\n\r\nlooks quite similar:\r\n`    <path name=\"speaker\">\r\n        <ctl name=\"SLIM_0_RX Channels\" value=\"One\" />\r\n        <ctl name=\"RX3 MIX1 INP1\" value=\"RX1\" />\r\n        <ctl name=\"RX3 MIX1 INP2\" value=\"RX6\" />\r\n        <ctl name=\"RX4 DSM MUX\" value=\"DSM_INV\" />\r\n        <ctl name=\"SLIM TX3 MUX\" value=\"RMIX3\" />\r\n    </path>\r\n`\r\nSo in fact - what was needed:\r\namixer sset 'SLIMBUS_0_RX Audio Mixer MultiMedia5' on\r\namixer sset 'SLIM TX3 MUX' 'RMIX3'\r\namixer sset 'RX3 MIX1 INP2' 'RX6'\r\namixer sset 'RX3 MIX1 INP1' 'RX1'\r\namixer sset 'RX4 DSM MUX' 'DSM_INV'\r\n\r\nThen I may direct alsa to hw:0,14 and sound works fine. For line-out it's similar.\r\n\r\nCan someone confirm it works also for other devices?"}}