PART SIX

Debian6.0.4 howto make alsa headphone play sound.(this is just the work around.)but yet simply and will fix them every time you login.
Previous steps taken before this tutorial.


Now lets get my usb headphones working.
184. Goto gnome-terminal and become superuser(steps 1. Then 3-4.)
Result!
185. Once you are superuser. Type lsusb(press enter.)
root@debian6:/home/andrew# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 046d:c31d Logitech, Inc.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 046d:c05a Logitech, Inc. Optical Mouse M90
Bus 002 Device 002: ID 047f:ad01 Plantronics, Inc.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@debian6:/home/andrew#
As you can see in the results. Bus 002 Device 002: ID 047f:ad01 Plantronics, Inc. Are my usb headphones.
now lets see some more results for the usb device.
186. Type lsmod | grep usb
Result!
root@debian6:/home/andrew# lsmod | grep usbsnd_usb_audio 64086 2
snd_usb_lib 13976 1 snd_usb_audio
snd_rawmidi 15515 2 snd_usb_lib,snd_seq_midi
snd_pcm 60487 4 snd_hda_intel,snd_usb_audio,snd_hda_codec
snd_hwdep 5380 2 snd_usb_audio,snd_hda_codec
snd 46542 12 snd_hda_codec_realtek,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_rawmidi,snd_pcm,snd_hwdep,snd_seq,snd_timer,snd_seq_device
usbhid 33324 0
hid 63273 1 usbhid
usbcore 123186 6 snd_usb_audio,snd_usb_lib,usbhid,ohci_hcd,ehci_hcd
nls_base 6377 1 usbcore
root@debian6:/home/andrew#
Its there and running at the momment but no sound. So this must be a alsa problem.
187. Now type nano /etc/modprobe.d/alsa-base.conf(press enter.)
Result!
autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd$
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modp$
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modp$

# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2

Now you see that bottom line. We want to make this load first.So

188. Lets change options snd-usb-audi index=-2. Just by changing the number.
(0 is the default i believe, But 1 was the option that worked for me)example. options snd-usb-audio index=-1
189. press ctrl and x together. Then press y (press enter.)
Now we have to make sound restart on start-up

190. Goto Startmenu-->Preferences-->Startup applications(Left click.)
picture 1(sound)

A new window will pop up.

191. Left click Add button.
192. Change name(mine is sound work around)
193. Copy and paste /etc/init.d/alsa-utils stop & alsa force-reload & /etc/init.d/alsa-utils start into the Command field.
194. Change Description field with what ever you like. Can even leave it blank.
195. Left click Save button at the bottom right of the window. And go ahead and Left click on the Close button of the first window.

picture 2(sound)

Congratulations!!!!! we have sound. (This might only work for some people though.)
Now we have to restart the pc

EDIT..
The command needs to have admin rights.
So go back to gnome-terminal and become superuser(steps 1, Then 3-4.)

196. Once superuser . Typenano /etc/init.d/sound.autostart(press enter.)
197.In that file copy and paste this into it.#!/bin/sh
198.Then add this under that line/etc/init.d/alsa-utils stop & alsa force-reload & /etc/init.d/alsa-utils start
199. Now lets save the file. Press ctrl and x together. Then press y(press enter.)

Now we have to make it executable.
200. So type.sudo chmod +x /etc/init.d/sound.autostart(press enter.)
201. Once that is done. We need to typesudo update-rc.d sound.autostart defaults 80(press enter.)

That will make the little script we created autostart. And also let init.d recognize it.
Thats all I Have to do to get my usb headphones to work.

Have fun and good luck