[alsa-devel] HDMI output with headphone jack sense possible on Conexant CX20561?
My audio codec is Conexant CX20561 (Hermosa) (haven't been able to find anything about 'Hermosa' on the Wiki).
I'd like to be able to do a few things which I have not been able to do with tutorials I found on the web:
- Whenever I plug in headphones, HDMI output is muted and headphones are enabled - Right now, the way I do this is by manually editing /etc/asound.conf to have the following (commented out makes headphones work, not commented makes HDMI work without any headphone/laptop speaker output)
/etc/asound.conf: defaults.pcm.card 0 defaults.pcm.device 3
where 3 is my HDMI (IEC958 2; no idea what IEC958 1 is for) output. So I have a switcher script that does the commenting and uncommenting. Would be nice if this could be automatic (even if alsa had to run such a script on detecting headphones).
- Route audio output (PCM) to input (for mixer recording) (Intel HDA cannot do this apparently by default (thanks DRM), needs some hacking around?)
Information from alsa-info.sh: http://www.alsa- project.org/db/?f=107f3f6012e68f04d3562d5e11aeb052a1454884
Are my model options correct?
And if it's important to know, I build ALSA in-kernel. Is this not recommended? I know at the very least it makes it such that I have to reboot to make any new options to take effect.
Thanks all
participants (1)
-
Andrew Udvare