A20 sound through the headphone output

Started by lbalas, May 19, 2014, 11:34:55 PM

Previous topic - Next topic

lbalas

Hello,

I use the newest Debian image (Release 7).
I would like to use the headphone sound out with VGA monitor.
I set the display out to VGA, it is working.
But the sound is assigned to HDMI.
I tried to edit the  /etc/asound.conf file but it was unsuccesfull (http://linux-sunxi.org/Sound)
Can somebody how I can get sound on headphone out?

Thanks in advance

Balas


lbalas

Hi Lurch,

thank you very much!
I copied the next content to /etc/asound.conf file:

pcm.!default {
  type hw
  card sunxicodec
  device 0
}

ctl.!default {
  type hw
  card sunxicodec
}


and it works!.

Thanks again
Balas

dywen

#3
Hey
==> making ;y question better:

what do you keep from the asound.conf file

pcm.dmixer {
      type dmix
      ipc_key 1024
      ipc_key_add_uid false
      ipc_perm 0660
      slave {
          pcm "hw:1,0"
          rate 48000
          channels 2
          period_time 0
          period_size 1024
          buffer_time 0
          buffer_size 4096
      }
  }

pcm.!default {
      type plug
      slave.pcm "dmixer"
  }

pcm.!hdmi-remap {
      type asym
      playback.pcm {
          type plug
          slave.pcm "remap-surround71"
      }
  }

pcm.!remap-surround71 {
      type route
      slave.pcm "hw:1,0"
      ttable {
          0.0= 1
          1.1= 1
          2.4= 1
          3.5= 1
          4.2= 1
          5.3= 1
          6.6= 1
          7.7= 1
      }
  }



?

thanks

dywen