Outputting audio by both HDMI and regular audio jack

Hi All, I had to patch SDL alsa driver code to pick the correct device
for HDMI out but then ofcourse no audio is output via the audio jack.
Is it possible to provide audio out both via HDMI and audio jack?