Tiny Core Extensions > TCE Q&A Forum

ALSA and external USB Sound Card (UCA222)

<< < (2/3) > >>

aus9:
hi

1) since you want 2 devices.....you initially blacklist your internal then re-create it to load with index=1, there is no need to force usb onto index=0.........I have failed to explain that bit to you eh?

Pls post the output of your bootlocal and your grub kernel line bootcode for blacklisting

and post in a code box the command pls.

--- Code: ---lsmod
--- End code ---

EDIT we will need the full list to see the usb stuff.

2) since I lack skills in mpd you may consider this link......tinypoodle or others may be able to mod it so you have
udev rules for usb sound device detected
then piping into both outputs at once.....while it appears to only swap at the moment
https://bbs.archlinux.org/viewtopic.php?pid=334988


3) leaping ahead.....I not sure what your sound module for usb is called

count the number of colour connectors......they are your stacks.

you have a spdif........not sure as I asked but maybe we got confused?.....pls specify if that is to be true output pls....so why the need for others?......I repeat.... which alsamixer setting are you referring to you for digital out....spdif ?

4) it might be useful to post a snapshot of your current alsamixer output screen?

5) it appears you may have only this to play with


--- Code: ---Module snd-usb-audio
  --------------------

    Module for USB audio and USB MIDI devices.

    vid             - Vendor ID for the device (optional)
    pid             - Product ID for the device (optional)
    nrpacks        - Max. number of packets per URB (default: 8)
    async_unlink    - Use async unlink mode (default: yes)
    device_setup    - Device specific magic number (optional)
                    - Influence depends on the device
                    - Default: 0x0000
    ignore_ctl_error - Ignore any USB-controller regarding mixer
                   interface (default: no)

    This module supports multiple devices, autoprobe and hotplugging.

    NB: nrpacks parameter can be modified dynamically via sysfs.
        Don't put the value over 20.  Changing via sysfs has no sanity
    check.
    NB: async_unlink=0 would cause Oops.  It remains just for
        debugging purpose (if any).
    NB: ignore_ctl_error=1 may help when you get an error at accessing
        the mixer element such as URB error -22.  This happens on some
        buggy USB device or the controller.

--- End code ---

so I am guessing we could try....in your bootlocal.....optional add index=0 but I think thats unnecessary

/sbin/modprobe  snd-usb-audio  vid=08bb  pid=2902

aus9:
above post has been editted numerous times so pls read again depending on your timezone pls.

aus9:
TaoTePuh

forgive me for only just looking at maintainer of mpd and in particular
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/mpd.tcz.info

Playback Support:
                ALSA support ..................enabled
                FIFO support ..................enabled
                HTTP daemon support ...........enabled
                JACK support ..................enabled
                libao support .................enabled
                OSS support ...................enabled
                OS X support ..................disabled
                Pipeline output support .......disabled
                PulseAudio support ............enabled
                Media MVP support .............enabled
                SHOUTcast support .............enabled
                Solaris /dev/audio support ....disabled


2) Do you have any hate of pulseaudio?

If above replies do not generate a working solution for you.....pulseaudio....running as a sound server should be able to stream outputs to both sound devices?

....I am working on a pulseaudio wiki....but I am not overly fond of it....and have limited experience of it

and IMHO....pa is not what defines Tinycore?

EDIT....a wiki now exists

http://wiki.tinycorelinux.com/pa

3) I assume you know there is a forum of MPD?

http://www.musicpd.org/forum/

regards

hiro:
Alsamixer is not *that* great.
Try aplay -l and -L to see your alsa cards and outputs

> and IMHO....pa is not what defines Tinycore?

What does this mean?

TaoTePuh:
aus9, thank you for your efforts!

These are my current settings:

blacklisted modules in menu.lst

--- Code: ---blacklist=snd_intel8x0 blacklist=snd_intel8x0m blacklist=snd_usb_audio

--- End code ---

I start the devices like this - later I put it into the file boolocal.sh

--- Code: ---sudo /sbin/modprobe snd_usb_audio ignore_ctl_error vid=0x08bb  pid=0x2902 index=0
sudo /sbin/modprobe snd_intel8x0  index=1
sudo /sbin/modprobe snd_intel8x0m index=2
sudo /sbin/modprobe snd_mixer_oss
sudo /sbin/modprobe snd_seq
sudo /sbin/modprobe snd-pcm-oss
sudo /sbin/modprobe snd_seq_midi_event
sudo /sbin/modprobe snd-seq-oss
sudo /sbin/modprobe snd_page_alloc

sudo /usr/local/etc/init.d/alsasound start

--- End code ---

If done like that, I get sound on the UCA222 (ear phones and spdif).

lsmod (after loading the modules)

--- Code: ---Module                  Size  Used by    Not tainted                                                                                       
snd_seq_dummy            648  0                                                                                                           
snd_seq_oss            15364  0                                                                                                           
snd_seq_midi_event      2624  1 snd_seq_oss                                                                                               
snd_pcm_oss            24484  0                                                                                                           
snd_seq                26036  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event                                                               
snd_mixer_oss           8648  1 snd_pcm_oss                                                                                               
snd_intel8x0m           6884  0                                                                                                           
snd_intel8x0           17724  0                                                                                                           
snd_ac97_codec         66516  2 snd_intel8x0m,snd_intel8x0                                                                                 
ac97_bus                 412  1 snd_ac97_codec                                                                                             
snd_usb_audio          44836  0                                                                                                           
snd_pcm                37628  5 snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_usb_audio                                       
snd_timer              10564  2 snd_seq,snd_pcm                                                                                           
snd_page_alloc          4016  3 snd_intel8x0m,snd_intel8x0,snd_pcm                                                                         
snd_hwdep               3004  1 snd_usb_audio                                                                                             
snd_usb_lib             9104  1 snd_usb_audio                                                                                             
snd_rawmidi            10004  1 snd_usb_lib                                                                                               
snd_seq_device          2808  4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi                                                             
snd                    26200 14 snd_seq_oss,snd_pcm_oss,snd_seq,snd_mixer_oss,
                                snd_intel8x0m,snd_intel8x0,snd_ac97_codec,
                                snd_usb_audio,snd_pcm,snd_timer,snd_hwdep,
                                snd_usb_lib,snd_rawmidi,snd_seq_device                                                                             
soundcore               2640  1 snd                                                                                                       
radeon                379556  2                                                                                                           
ttm                    26292  1 radeon                                                                                                     
drm_kms_helper         15480  1 radeon                                                                                                     
drm                    93504  5 radeon,ttm,drm_kms_helper                                                                                 
i2c_algo_bit            2984  1 radeon                                                                                                     
cifs                  161640  8                                                                                                           
dm_mod                 35392  0                                                                                                           
ipw2200               101408  0                                                                                                           
libipw                 16292  1 ipw2200                                                                                                   
cfg80211               73276  2 ipw2200,libipw                                                                                             
lib80211                1984  2 ipw2200,libipw
i2c_i801                5748  0
intel_agp              16252  0
joydev                  5808  0
i2c_core                9380  5 radeon,drm_kms_helper,drm,i2c_algo_bit,i2c_i801
agpgart                15792  3 ttm,drm,intel_agp
squashfs               14728 117
ramzswap               10240  1
loop                    8068 234
pcmcia                 12756  0
scsi_wait_scan           276  0
yenta_socket           13432  1
sdhci_pci               4144  0
8139cp                 10860  0
rsrc_nonstatic          5780  1 yenta_socket
sdhci                  10392  1 sdhci_pci
mmc_core               27968  1 sdhci
8139too                12868  0
pcmcia_core            17332  3 pcmcia,yenta_socket,rsrc_nonstatic
serio_raw               2380  0

--- End code ---


--- Quote ---count the number of colour connectors......they are your stacks.
--- End quote ---

I did not understand. I have 2x cinch in, 2x cinch out, 1x earphone and 1x optical spdif at the UCA222. What do you mean by "stacks"?


--- Quote ---you have a spdif........not sure as I asked but maybe we got confused?.....pls specify if that is to be true output pls....so why the need for others?......
--- End quote ---

My notebook has no spdif. My notebook only has an earphone output. So I got the UCA222.


--- Quote ---......I repeat.... which alsamixer setting are you referring to you for digital out....spdif ?
--- End quote ---

I do not know exactly what you mean by "alsamixer setting". If I load the modules as decribed above, I get one controller (PCM) in alsamixer. This controller controls the volume of the earphone output on the UCA222. Unfortunately I have no controller for spdif.


--- Quote ---4) it might be useful to post a snapshot of your current alsamixer output screen?
--- End quote ---




--- Quote ---2) Do you have any hate of pulseaudio?
--- End quote ---

No, no hate but no experience. At first I wanted to know if I can do this (multiple outputs at the same time) directly with alsa.


--- Quote ---EDIT....a wiki now exists
http://wiki.tinycorelinux.com/pa
--- End quote ---

Thanks! I will now try pulseaudio.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version