LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot get flash to work properly with an external USB Audio card - no sound (https://www.linuxquestions.org/questions/linux-software-2/cannot-get-flash-to-work-properly-with-an-external-usb-audio-card-no-sound-672896/)

Voland 09-28-2008 10:36 AM

Cannot get flash to work properly with an external USB Audio card - no sound
 
Hi everyone!

After weeks of trying to figure out the problem on my own,
I finally decided to come here for help.

I have an Terratec Aureon 5.1 USB Mk.2 external which is hooked up
to my laptop (with an internal HDA Intel) and a 5.1 speaker set.
With the following .asoundrc:
Code:

pcm.!default{type hw card Audio}
ctl.!default{type hw card Audio}


pcm.dmix51 {
  type dmix
  ipc_key 1024
  ipc_key_add_uid false
  ipc_perm 0666
  slave {
    pcm "hw:Audio"
    channels 6
    period_time 0
    period_size 1024
    buffer_size 8192
    rate 48000
    }
}

ctl.dmix51 {
  type hw
  card Audio
}

pcm.stereo {
  type plug
  slave.pcm "dmix51"
  ttable.0.0 1
  ttable.1.1 1
}

pcm.!default {
  type route
  slave.pcm "dmix51"
  slave.channels 6
  ttable.0.0 1
  ttable.1.1 1
  ttable.0.2 1
  ttable.1.3 1
  ttable.0.4 0.7
  ttable.1.4 0.7
  ttable.0.5 0.7
  ttable.1.5 0.7
}

pcm.duplicate {
  type plug
  slave.pcm "dmix51"
  slave.channels 6
  route_policy duplicate
}

I manage to get properly mixed sound from every sound program
except for flash - I get perfect video etc., but no sound.
I'm pretty sure that the cause for the problem is that flash is trying to access the wrong sound device(the internal sound card), however I only get sound from it if I run iceweasel as root, which is also kinda weird.
I've tried everything from blacklisting the internal card to editing the indexes in /etc/modprobe.d/alsa-base, but I'm still
stuck. Anyway - hopefully someone can help me, so I can finally enjoy my flash apps with sound :)
Oh, btw, I'm on Debian 64-bit..

Voland 10-02-2008 10:57 AM

Oh come on - there's no way nobody can help me with this.. Plz.

tredegar 10-02-2008 11:54 AM

Quote:

Oh come on - there's no way nobody can help me with this.
Please remember some of us are busy

It is possible that flash may be trying to access the device /dev/dsp directly.

This is likely to be your Intel card. And there's no way to make it use /dev/dsp1, which is likely to be your external card.
I had a similar problem with an external USB card and realplay - no sound.

The solution was this:
Code:

root@p4:~#  rm  /dev/dsp
root@p4:~#  ln -sT  /dev/dsp1  /dev/dsp
root@p4:~#  /etc/init.d/alsa-utils  restart


Voland 10-02-2008 02:11 PM

Thx for your reply.

I don't seem to have a /dev/dsp device at all - any ideas what might be the cause? :S


All times are GMT -5. The time now is 06:58 AM.