Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 34

Thread: USB Soundkarte Volumeregler

  1. #16
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by pheidrias View Post
    Finally I got a self-compiled version going (with alsa-support) - but the sound problem remains.

    Is it possible, that this phenomenon stems from the fact, that the router does not provide enough power for an external 2,5" HDD and the soundcard? If I change the cable or if I plug inbetween a non-active HUB, the sound quality changes!

    Or is it some real interference (in the physical sense) with the other usb device (hdd)?

    How sensitive is the ASUS on USB-Port-position or the insertion of a hub?
    hehe, yeah, could be a power problem.
    I didn't thought that the soundcard would draw that much power.
    The router has slightly less amps available on the usb ports than a real pc, that's why I also use a powered usb hub

    (keine Ahnung, warum ich das jetzt alles auf englisch geschrieben habe - naja es ist spät)
    Sorry, my German is a bit poor, that's why we sort of switched to english.
    Reading German is ok, but I'm terrible at writing it

  2. #17
    Quote Originally Posted by wpte View Post
    Reading German is ok...
    http://translate.google.de/translate...5%23post238425



    good night
    RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
    pyload 0.4.9
    minidlna 1.1.2
    samba 3.6.5
    openvpn 2.3.10
    ̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired

  3. #18
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by !gm View Post
    I can read it without google translate
    but you know just as well as I do that english (or any other language) to german in translate gives you the worst sentences ever
    Just as english to dutch

    in the end pheidrias asked for help, I tried to help him, that's what this forum is all about.

  4. #19
    Quote Originally Posted by wpte View Post
    in the end pheidrias asked for help, I tried to help him, that's what this forum is all about.
    Which is really !

    Apropos: Hoping, that the sound-quality problems will disappear with the delivery of a powered USB-Hub, I'd like to come back to the original problem.

    Do you think, this (http://www.synology-forum.de/showthr...Fernbedienung&) could work on our ASUS-Routers as well?

    You might understand a little more C than me - so maybe you could have a look at the (small ;-) ) source file...

    In fact, I assume, the forward/etc. buttons do work just like multimedia keys on "modern" keyboards...

  5. #20
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by pheidrias View Post
    Do you think, this (http://www.synology-forum.de/showthr...Fernbedienung&) could work on our ASUS-Routers as well?

    You might understand a little more C than me - so maybe you could have a look at the (small ;-) ) source file...

    In fact, I assume, the forward/etc. buttons do work just like multimedia keys on "modern" keyboards...
    I'm not sure if they are multimedia keys like on keyboards
    This C program uses libusb, which allows you to compile this directly on your router if you have the appropriate packages installed:
    Code:
    ipkg install optware-devel
    ipkg install buildroot
    (takes some time to download)

    that and the libusb library could do the trick

    If it doesn't work out of the box, could you give me the output of these:
    lsusb
    lsusb -v
    It gives info on your usb devices

  6. #21
    Hi wpte!

    mpdremote compiled without problems.
    However, if I start it via
    Code:
    cd /opt/bin
    ./mpdremote_check.sh
    I only get:
    sh: pts/0: unknown operand
    mpdremote (the compiled binary, also copied to /opt/bin) itself executed puts my ssh-terminal into nirvana - can't stop it via CTRL-D, CTRL-C or CTRL-X...

    lsusb gives:
    lsusb
    Bus 002 Device 001: ID 1d6b:0001
    Bus 001 Device 004: ID 041e:30d1 Creative Technology, Ltd
    Bus 001 Device 003: ID 0bc2:2101 Seagate RSS LLC
    Bus 001 Device 002: ID 0424:2502 Standard Microsystems Corp.
    Bus 001 Device 001: ID 1d6b:0002
    lsusb -v is attached.
    Attached Files Attached Files

  7. #22
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    hmmm yes, I just checked it myself

    The implementation isn't that great either...
    Code:
    signal(SIGINT, endloop);
      signal(SIGHUP, endloop);
      signal(SIGTERM, endloop);
    
      while(loop) {
        memset(packet,0,sizeof(packet));
        ret = hid_interrupt_read(hid,0x82,packet,PACKET_LEN,1000);
        if( ret == HID_RET_SUCCESS ){
          if (packet[0] == 0x03) {
    //        printPacket(packet,PACKET_LEN);
            if (handleKey(&packet[1]) == 0)
    		break;
          }
        }
      }
    he is using signals, so you *could* shut it down, however... that doesn't really happen now does it
    why?
    Code:
    ret = hid_interrupt_read(hid,0x82,packet,PACKET_LEN,1000);
    he waits for an interrupt... which doesn't happen
    so either way, you stay in the loop as long as the interrupt doesn't return any answer.

    so what needs to be done?
    1. kick out the while loop and make the program fork into a "daemon mode"
    2. probably some changes based on the usb data you gave me
    I'll try to work on it in the weekend, is that ok for you?

  8. #23
    Quote Originally Posted by wpte View Post
    I'll try to work on it in the weekend, is that ok for you?
    Are you kidding? This would be GREAT!

    I can try to assist you with stand-by, while you're coding ;-).

    Could you read out of lsusb, wether the buttons are Multimedia-Keyboard-like?

    THANKS A LOT,
    pheidrias

  9. #24
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by pheidrias View Post
    Are you kidding? This would be GREAT!

    I can try to assist you with stand-by, while you're coding ;-).

    Could you read out of lsusb, wether the buttons are Multimedia-Keyboard-like?
    hehe

    Code:
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        4
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         3 Human Interface Device
          bInterfaceSubClass      0 No Subclass
          bInterfaceProtocol      0 None
          iInterface              0 
            HID Device Descriptor:
              bLength                 9
              bDescriptorType        33
              bcdHID               1.11
              bCountryCode            0 Not supported
              bNumDescriptors         1
              bDescriptorType        34 Report
              wDescriptorLength      45
              Report Descriptor: (length is 45)
                Item(Global): Usage Page, data= [ 0x01 ] 1
                                Generic Desktop Controls
                Item(Local ): Usage, data= [ 0x06 ] 6
                                Keyboard
                Item(Main  ): Collection, data= [ 0x01 ] 1
                                Application
                Item(Global): Usage Page, data= [ 0x07 ] 7
                                Keyboard
                Item(Local ): Usage Minimum, data= [ 0xe0 ] 224
                                Control Left
                Item(Local ): Usage Maximum, data= [ 0xe7 ] 231
                                GUI Right
                Item(Global): Logical Minimum, data= [ 0x00 ] 0
                Item(Global): Logical Maximum, data= [ 0x01 ] 1
                Item(Global): Report Size, data= [ 0x01 ] 1
                Item(Global): Report Count, data= [ 0x08 ] 8
                Item(Main  ): Input, data= [ 0x02 ] 2
                                Data Variable Absolute No_Wrap Linear
                                Preferred_State No_Null_Position Non_Volatile Bitfield
                Item(Global): Report Count, data= [ 0x01 ] 1
                Item(Global): Report Size, data= [ 0x08 ] 8
                Item(Main  ): Input, data= [ 0x01 ] 1
                                Constant Array Absolute No_Wrap Linear
                                Preferred_State No_Null_Position Non_Volatile Bitfield
                Item(Global): Report Count, data= [ 0x06 ] 6
                Item(Global): Report Size, data= [ 0x08 ] 8
                Item(Global): Logical Minimum, data= [ 0x00 ] 0
                Item(Global): Logical Maximum, data= [ 0x65 ] 101
                Item(Global): Usage Page, data= [ 0x07 ] 7
                                Keyboard
                Item(Local ): Usage Minimum, data= [ 0x00 ] 0
                                No Event
                Item(Local ): Usage Maximum, data= [ 0x65 ] 101
                                Keyboard Application (Windows Key for Win95 or Compose)
                Item(Main  ): Input, data= [ 0x00 ] 0
                                Data Array Absolute No_Wrap Linear
                                Preferred_State No_Null_Position Non_Volatile Bitfield
                Item(Main  ): End Collection, data=none
    It shows that the audio usb device also has a HID (human interface device).
    Now that HID seems to be a keyboard kind of thing with "Generic Desktop Controls" that I believe are those generic play, pause, next, back buttons
    There are several examples on the internet how to read them, so it shouldn't be to hard to cook something up

  10. #25
    Quote Originally Posted by wpte View Post
    There are several examples on the internet how to read them, so it shouldn't be to hard to cook something up
    The kitchen is yours, Maitre!

  11. #26
    Hello!

    I finally tested the system with an active USB-Hub and the sound quality was drasticly increased (although it wasn't as good as when directly connected to my laptop/PC)!

    Now it's just the multimedia-buttons fun missing. Any news on this?

    Thanks a lot,
    pheidrias

  12. #27
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by pheidrias View Post
    Hello!

    I finally tested the system with an active USB-Hub and the sound quality was drasticly increased (although it wasn't as good as when directly connected to my laptop/PC)!

    Now it's just the multimedia-buttons fun missing. Any news on this?

    Thanks a lot,
    pheidrias
    Cool stuff!
    It's supposed to read out the buttons.
    I have: volume up, volume down, next, previous, play/pause
    Apart from that I didn't see any other buttons in the usb dump.

    I also fixed that the process stayed alive... forever.
    The problem now is... I don't think I will read out the soundcard correctly. It has been over a year that I used libusb, so I have to read up on that first.

    I did however re-feel the anger of using libusb again... I just find it a horrible library (to work with)
    So right now I'd say I'm on 75% of completing it

  13. #28
    Quote Originally Posted by wpte View Post
    I did however re-feel the anger of using libusb again... I just find it a horrible library (to work with)
    For me, working with USB itself has always been a horrible thing. Never got all USB-devices at one time working in right speed etc...
    Independent of the operating system in use, unfortunately...

  14. #29
    Quote Originally Posted by wpte View Post
    I just find it a horrible library (to work with)
    Hi again! Do you think, you'll be able to pick yourself up to finish this horror thing? Now, after Halloween, this might be some easy thing to do?

    Would be great,
    pheidrias

  15. #30
    Hi wpte!

    Any news on this?
    Maybe you could post the 75% you were able to finish until here and someone else could try to finish 'em?

    Thanks,
    pheidrias

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. linuxrc bug? - WL-500g not booting from usb drive with hub
    By daniel632 in forum WL-500g Custom Development
    Replies: 5
    Last Post: 14-03-2012, 15:28
  2. Íåñêîëüêî âîïðîñîâ ïî Samba è USB HDD
    By falselight in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 188
    Last Post: 28-02-2012, 15:43
  3. ÷åøñêàÿ ïðîøèâêà 1.71
    By Asmadei in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 191
    Last Post: 02-12-2010, 13:57
  4. 7.09 + USB + hotplug
    By oilinki in forum WL-700g Q&A
    Replies: 0
    Last Post: 18-11-2007, 12:51

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •