Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Setting the correct ALSA device.
#1
I am using Moode 5.2 with a USB DAC. In /etc/mpd.conf, the device field in the "ALSA default" audio_output block is set to hw:0,0. This is incorrect in my case. I need hw:1,0. I have found the place in /var/www/inc/playerlib.php where this value is read from a database:

$array = sdbquery('select value from cfg_mpd where param="device"', cfgdb_connect());

But I haven't found where the device id is determined and written to the database. Could somebody point me toward the best place to set this value?

Thanks.
Reply
#2
In MPD Config screen set "Device type" to "USB audio device" then save. This process will automatically configure hw:1,0 in mpd.conf.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Thanks for the prompt reply, Tim. I tried looking in MPD Config, but the "Device type" menu is empty (see image below). Any idea why that would be?

BTW, I have confirmed that everything works if I manually edit mpd.conf, and restart mpd, but of course the configuration gets re-written on boot.

[Image: 09vr-155xQ2TLFgTbZGb6wTgQ5lK5h2LF3v1ehGg...05-h413-no]
Reply
#4
Very odd. "Nothing selected" suggests some breakage. 

To troubleshoot try the following: 

1. Unplug USB DAC
2. Open Audio Config and set I2S audio device to "None"
3. Reboot
4. Open MPD Config
5. Verify that Audio device = "On-board audio device"
6. Plug in USB DAC
7. Close then Reopen MPD Config
8. Verify that "USB audio device" has been added to the Audio device dropdown
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
I did steps 1 through 4, but there were still no options in the device menu.
Reply
#6
@callum

Perhaps moOde's udev rules don't detect your USB DAC as an audio device?

What is the device actually (make and model)?

When it's plugged in, 

- What is the lsusb output?

- What is the verbose lsusb output for it? Does it show lots of stanzas containing telltale strings like "Audio", "AudioControl", "AudioStreaming", "Decoded PCM samples" and so forth?

Examples for a moOde player of mine with a Creative Technology BT-W2 Bluetooth adapter (to drive my headphones) which detects as a USB DAC

Code:
pi@moodeHS:~ $ lsusb
Bus 001 Device 002: ID 041e:3125 Creative Technology, Ltd <-- the BT W2
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

#################################################


pi@moodeHS:~ $ sudo lsusb -v  -s 001:002            <-- used bus:devnum from above

Bus 001 Device 002: ID 041e:3125 Creative Technology, Ltd
Device Descriptor:
 bLength                18
 bDescriptorType         1
 bcdUSB               2.00
 bDeviceClass            0 (Defined at Interface level)
 bDeviceSubClass         0
 bDeviceProtocol         0
 bMaxPacketSize0        64
 idVendor           0x041e Creative Technology, Ltd
 idProduct          0x3125
 bcdDevice            1.00
 iManufacturer           0
 iProduct                2 Creative Bluetooth Audio W2
 iSerial                 3 0075FDAE003C0002
 bNumConfigurations      1
 Configuration Descriptor:
   bLength                 9
   bDescriptorType         2
   wTotalLength          199
   bNumInterfaces          4
   bConfigurationValue     1
   iConfiguration          0
   bmAttributes         0x80
     (Bus Powered)
   MaxPower               96mA
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        0
     bAlternateSetting       0
     bNumEndpoints           0
     bInterfaceClass         1 Audio
     bInterfaceSubClass      1 Control Device
     bInterfaceProtocol      0
     iInterface              0
     AudioControl Interface Descriptor:
       bLength                10
       bDescriptorType        36
       bDescriptorSubtype      1 (HEADER)
       bcdADC               1.00
       wTotalLength           52
       bInCollection           2
       baInterfaceNr( 0)       1
       baInterfaceNr( 1)       2
     AudioControl Interface Descriptor:
       bLength                12
       bDescriptorType        36
       bDescriptorSubtype      2 (INPUT_TERMINAL)
       bTerminalID             1
       wTerminalType      0x0101 USB Streaming
       bAssocTerminal          0
       bNrChannels             2
       wChannelConfig     0x0003
         Left Front (L)
         Right Front (R)
       iChannelNames           0
       iTerminal               0
     AudioControl Interface Descriptor:
       bLength                 9
       bDescriptorType        36
       bDescriptorSubtype      3 (OUTPUT_TERMINAL)
       bTerminalID             3
       wTerminalType      0x0301 Speaker
       bAssocTerminal          0
       bSourceID               1
       iTerminal               0
     AudioControl Interface Descriptor:
       bLength                12
       bDescriptorType        36
       bDescriptorSubtype      2 (INPUT_TERMINAL)
       bTerminalID             4
       wTerminalType      0x0203 Personal Microphone
       bAssocTerminal          0
       bNrChannels             1
       wChannelConfig     0x0001
         Left Front (L)
       iChannelNames           0
       iTerminal               0
     AudioControl Interface Descriptor:
       bLength                 9
       bDescriptorType        36
       bDescriptorSubtype      3 (OUTPUT_TERMINAL)
       bTerminalID             6
       wTerminalType      0x0101 USB Streaming
       bAssocTerminal          0
       bSourceID               4
       iTerminal               0
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        1
     bAlternateSetting       0
     bNumEndpoints           0
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        1
     bAlternateSetting       1
     bNumEndpoints           1
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
     AudioStreaming Interface Descriptor:
       bLength                 7
       bDescriptorType        36
       bDescriptorSubtype      1 (AS_GENERAL)
       bTerminalLink           6
       bDelay                  0 frames
       wFormatTag              1 PCM
     AudioStreaming Interface Descriptor:
       bLength                11
       bDescriptorType        36
       bDescriptorSubtype      2 (FORMAT_TYPE)
       bFormatType             1 (FORMAT_TYPE_I)
       bNrChannels             1
       bSubframeSize           2
       bBitResolution         16
       bSamFreqType            1 Discrete
       tSamFreq[ 0]        48000
       AudioControl Endpoint Descriptor:
         bLength                 7
         bDescriptorType        37
         bDescriptorSubtype      1 (EP_GENERAL)
         bmAttributes         0x00
         bLockDelayUnits         2 Decoded PCM samples
         wLockDelay              0 Decoded PCM samples
     Endpoint Descriptor:
       bLength                 9
       bDescriptorType         5
       bEndpointAddress     0x83  EP 3 IN
       bmAttributes            1
         Transfer Type            Isochronous
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0060  1x 96 bytes
       bInterval               1
       bRefresh                0
       bSynchAddress           0
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        2
     bAlternateSetting       0
     bNumEndpoints           0
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        2
     bAlternateSetting       1
     bNumEndpoints           1
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
     AudioStreaming Interface Descriptor:
       bLength                 7
       bDescriptorType        36
       bDescriptorSubtype      1 (AS_GENERAL)
       bTerminalLink           1
       bDelay                  0 frames
       wFormatTag              1 PCM
     AudioStreaming Interface Descriptor:
       bLength                11
       bDescriptorType        36
       bDescriptorSubtype      2 (FORMAT_TYPE)
       bFormatType             1 (FORMAT_TYPE_I)
       bNrChannels             2
       bSubframeSize           2
       bBitResolution         16
       bSamFreqType            1 Discrete
       tSamFreq[ 0]        48000
       AudioControl Endpoint Descriptor:
         bLength                 7
         bDescriptorType        37
         bDescriptorSubtype      1 (EP_GENERAL)
         bmAttributes         0x81
           Sampling Frequency
           MaxPacketsOnly
         bLockDelayUnits         2 Decoded PCM samples
         wLockDelay              0 Decoded PCM samples
     Endpoint Descriptor:
       bLength                 9
       bDescriptorType         5
       bEndpointAddress     0x03  EP 3 OUT
       bmAttributes            1
         Transfer Type            Isochronous
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x00c0  1x 192 bytes
       bInterval               1
       bRefresh                0
       bSynchAddress           0
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        3
     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     129
        Report Descriptors:
          ** UNAVAILABLE **
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x81  EP 1 IN
       bmAttributes            3
         Transfer Type            Interrupt
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0010  1x 16 bytes
       bInterval               1
Device Status:     0x0000
 (Bus Powered)

Regards,
Kent
Reply
#7
@TheOldPresbyope : It's an FiiO e10k, and the computer is a Pi 3B+.

I've pasted the verbose output for lsusb at the bottom of this post, and yes there's a lot of Audio, AudioControl, etc.. I also got this on stderr: "Couldn't open device, some information will be missing," which sounds like it might be relevant.

When I plug in the DAC, `udevadm monitor` prints the following:
Code:
KERNEL[620.447807] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2 (usb)
KERNEL[620.448070] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
KERNEL[620.467950] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1852:7022.0003 (hid)
KERNEL[620.469701] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1852:7022.0003/input/input2 (input)
KERNEL[620.530596] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1852:7022.0003/input/input2/event0 (input)
KERNEL[620.531229] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1852:7022.0003/hidraw/hidraw0 (hidraw)
KERNEL[620.538593] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1 (usb)
KERNEL[620.560407] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1 (sound)
KERNEL[620.561086] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1/pcmC1D0p (sound)
KERNEL[620.561583] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1/pcmC1D0c (sound)
KERNEL[620.562016] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1/pcmC1D1p (sound)
KERNEL[620.562441] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1/controlC1 (sound)
KERNEL[620.562692] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.2 (usb)
KERNEL[620.562922] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.3 (usb)
UDEV  [620.584661] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2 (usb)
UDEV  [620.591167] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV  [620.606429] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1852:7022.0003 (hid)
UDEV  [620.620115] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1852:7022.0003/hidraw/hidraw0 (hidraw)
UDEV  [620.623724] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1852:7022.0003/input/input2 (input)
UDEV  [620.758259] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1 (usb)
UDEV  [620.763741] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.3 (usb)
UDEV  [620.769004] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.2 (usb)
UDEV  [620.781446] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1 (sound)
UDEV  [620.787102] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1/pcmC1D0c (sound)
KERNEL[620.791684] change   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1 (sound)
UDEV  [620.793900] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1/pcmC1D1p (sound)
UDEV  [620.802395] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1/pcmC1D0p (sound)
UDEV  [620.817208] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1852:7022.0003/input/input2/event0 (input)
UDEV  [620.831539] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1/controlC1 (sound)
UDEV  [620.839603] change   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/sound/card1 (sound)



Code:
Bus 001 Device 005: ID 1852:7022 GYROCOM C&C Co., LTD
Device Descriptor:
 bLength                18
 bDescriptorType         1
 bcdUSB               1.10
 bDeviceClass            0 (Defined at Interface level)
 bDeviceSubClass         0
 bDeviceProtocol         0
 bMaxPacketSize0         8
 idVendor           0x1852 GYROCOM C&C Co., LTD
 idProduct          0x7022
 bcdDevice            0.01
 iManufacturer           1
 iProduct                2
 iSerial                 0
 bNumConfigurations      1
 Configuration Descriptor:
   bLength                 9
   bDescriptorType         2
   wTotalLength          386
   bNumInterfaces          4
   bConfigurationValue     1
   iConfiguration          0
   bmAttributes         0x80
     (Bus Powered)
   MaxPower              500mA
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        0
     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.00
         bCountryCode            0 Not supported
         bNumDescriptors         1
         bDescriptorType        34 Report
         wDescriptorLength      58
        Report Descriptors:
          ** UNAVAILABLE **
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x81  EP 1 IN
       bmAttributes            3
         Transfer Type            Interrupt
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0012  1x 18 bytes
       bInterval              32
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        1
     bAlternateSetting       0
     bNumEndpoints           0
     bInterfaceClass         1 Audio
     bInterfaceSubClass      1 Control Device
     bInterfaceProtocol      0
     iInterface              3
     AudioControl Interface Descriptor:
       bLength                10
       bDescriptorType        36
       bDescriptorSubtype      1 (HEADER)
       bcdADC               1.00
       wTotalLength           62
       bInCollection           2
       baInterfaceNr( 0)       2
       baInterfaceNr( 1)       3
     AudioControl Interface Descriptor:
       bLength                12
       bDescriptorType        36
       bDescriptorSubtype      2 (INPUT_TERMINAL)
       bTerminalID             5
       wTerminalType      0x0605 SPDIF interface
       bAssocTerminal          0
       bNrChannels             2
       wChannelConfig     0x0003
         Left Front (L)
         Right Front (R)
       iChannelNames           0
       iTerminal               0
     AudioControl Interface Descriptor:
       bLength                12
       bDescriptorType        36
       bDescriptorSubtype      2 (INPUT_TERMINAL)
       bTerminalID             9
       wTerminalType      0x0101 USB Streaming
       bAssocTerminal          0
       bNrChannels             2
       wChannelConfig     0x0003
         Left Front (L)
         Right Front (R)
       iChannelNames           0
       iTerminal               0
     AudioControl Interface Descriptor:
       bLength                 9
       bDescriptorType        36
       bDescriptorSubtype      3 (OUTPUT_TERMINAL)
       bTerminalID             3
       wTerminalType      0x0605 SPDIF interface
       bAssocTerminal          0
       bSourceID              16
       iTerminal               0
     AudioControl Interface Descriptor:
       bLength                 9
       bDescriptorType        36
       bDescriptorSubtype      3 (OUTPUT_TERMINAL)
       bTerminalID             7
       wTerminalType      0x0101 USB Streaming
       bAssocTerminal          0
       bSourceID               5
       iTerminal               0
     AudioControl Interface Descriptor:
       bLength                10
       bDescriptorType        36
       bDescriptorSubtype      6 (FEATURE_UNIT)
       bUnitID                16
       bSourceID               9
       bControlSize            1
       bmaControls( 0)      0x01
         Mute Control
       bmaControls( 1)      0x02
         Volume Control
       bmaControls( 2)      0x02
         Volume Control
       iFeature                0
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        2
     bAlternateSetting       0
     bNumEndpoints           0
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        2
     bAlternateSetting       1
     bNumEndpoints           1
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
     AudioStreaming Interface Descriptor:
       bLength                 7
       bDescriptorType        36
       bDescriptorSubtype      1 (AS_GENERAL)
       bTerminalLink           7
       bDelay                  0 frames
       wFormatTag              1 PCM
     AudioStreaming Interface Descriptor:
       bLength                26
       bDescriptorType        36
       bDescriptorSubtype      2 (FORMAT_TYPE)
       bFormatType             1 (FORMAT_TYPE_I)
       bNrChannels             2
       bSubframeSize           2
       bBitResolution         16
       bSamFreqType            6 Discrete
       tSamFreq[ 0]         8000
       tSamFreq[ 1]        16000
       tSamFreq[ 2]        32000
       tSamFreq[ 3]        44100
       tSamFreq[ 4]        48000
       tSamFreq[ 5]        96000
     Endpoint Descriptor:
       bLength                 9
       bDescriptorType         5
       bEndpointAddress     0x82  EP 2 IN
       bmAttributes            9
         Transfer Type            Isochronous
         Synch Type               Adaptive
         Usage Type               Data
       wMaxPacketSize     0x0184  1x 388 bytes
       bInterval               1
       bRefresh                0
       bSynchAddress           0
       AudioControl Endpoint Descriptor:
         bLength                 7
         bDescriptorType        37
         bDescriptorSubtype      1 (EP_GENERAL)
         bmAttributes         0x01
           Sampling Frequency
         bLockDelayUnits         2 Decoded PCM samples
         wLockDelay              2 Decoded PCM samples
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        2
     bAlternateSetting       2
     bNumEndpoints           1
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
     AudioStreaming Interface Descriptor:
       bLength                 7
       bDescriptorType        36
       bDescriptorSubtype      1 (AS_GENERAL)
       bTerminalLink           7
       bDelay                  0 frames
       wFormatTag              1 PCM
     AudioStreaming Interface Descriptor:
       bLength                26
       bDescriptorType        36
       bDescriptorSubtype      2 (FORMAT_TYPE)
       bFormatType             1 (FORMAT_TYPE_I)
       bNrChannels             2
       bSubframeSize           3
       bBitResolution         24
       bSamFreqType            6 Discrete
       tSamFreq[ 0]         8000
       tSamFreq[ 1]        16000
       tSamFreq[ 2]        32000
       tSamFreq[ 3]        44100
       tSamFreq[ 4]        48000
       tSamFreq[ 5]        96000
     Endpoint Descriptor:
       bLength                 9
       bDescriptorType         5
       bEndpointAddress     0x82  EP 2 IN
       bmAttributes            9
         Transfer Type            Isochronous
         Synch Type               Adaptive
         Usage Type               Data
       wMaxPacketSize     0x0246  1x 582 bytes
       bInterval               1
       bRefresh                0
       bSynchAddress           0
       AudioControl Endpoint Descriptor:
         bLength                 7
         bDescriptorType        37
         bDescriptorSubtype      1 (EP_GENERAL)
         bmAttributes         0x01
           Sampling Frequency
         bLockDelayUnits         2 Decoded PCM samples
         wLockDelay              2 Decoded PCM samples
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        3
     bAlternateSetting       0
     bNumEndpoints           0
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        3
     bAlternateSetting       1
     bNumEndpoints           1
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
     AudioStreaming Interface Descriptor:
       bLength                 7
       bDescriptorType        36
       bDescriptorSubtype      1 (AS_GENERAL)
       bTerminalLink           9
       bDelay                  0 frames
       wFormatTag              1 PCM
     AudioStreaming Interface Descriptor:
       bLength                20
       bDescriptorType        36
       bDescriptorSubtype      2 (FORMAT_TYPE)
       bFormatType             1 (FORMAT_TYPE_I)
       bNrChannels             2
       bSubframeSize           2
       bBitResolution         16
       bSamFreqType            4 Discrete
       tSamFreq[ 0]        32000
       tSamFreq[ 1]        44100
       tSamFreq[ 2]        48000
       tSamFreq[ 3]        96000
     Endpoint Descriptor:
       bLength                 9
       bDescriptorType         5
       bEndpointAddress     0x03  EP 3 OUT
       bmAttributes            9
         Transfer Type            Isochronous
         Synch Type               Adaptive
         Usage Type               Data
       wMaxPacketSize     0x0184  1x 388 bytes
       bInterval               1
       bRefresh                0
       bSynchAddress           0
       AudioControl Endpoint Descriptor:
         bLength                 7
         bDescriptorType        37
         bDescriptorSubtype      1 (EP_GENERAL)
         bmAttributes         0x01
           Sampling Frequency
         bLockDelayUnits         2 Decoded PCM samples
         wLockDelay              2 Decoded PCM samples
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        3
     bAlternateSetting       2
     bNumEndpoints           1
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
     AudioStreaming Interface Descriptor:
       bLength                 7
       bDescriptorType        36
       bDescriptorSubtype      1 (AS_GENERAL)
       bTerminalLink           9
       bDelay                  0 frames
       wFormatTag              1 PCM
     AudioStreaming Interface Descriptor:
       bLength                20
       bDescriptorType        36
       bDescriptorSubtype      2 (FORMAT_TYPE)
       bFormatType             1 (FORMAT_TYPE_I)
       bNrChannels             2
       bSubframeSize           3
       bBitResolution         24
       bSamFreqType            4 Discrete
       tSamFreq[ 0]        32000
       tSamFreq[ 1]        44100
       tSamFreq[ 2]        48000
       tSamFreq[ 3]        96000
     Endpoint Descriptor:
       bLength                 9
       bDescriptorType         5
       bEndpointAddress     0x03  EP 3 OUT
       bmAttributes            9
         Transfer Type            Isochronous
         Synch Type               Adaptive
         Usage Type               Data
       wMaxPacketSize     0x0246  1x 582 bytes
       bInterval               1
       bRefresh                0
       bSynchAddress           0
       AudioControl Endpoint Descriptor:
         bLength                 7
         bDescriptorType        37
         bDescriptorSubtype      1 (EP_GENERAL)
         bmAttributes         0x01
           Sampling Frequency
         bLockDelayUnits         2 Decoded PCM samples
         wLockDelay              2 Decoded PCM samples
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        3
     bAlternateSetting       3
     bNumEndpoints           1
     bInterfaceClass         1 Audio
     bInterfaceSubClass      2 Streaming
     bInterfaceProtocol      0
     iInterface              0
     AudioStreaming Interface Descriptor:
       bLength                 7
       bDescriptorType        36
       bDescriptorSubtype      1 (AS_GENERAL)
       bTerminalLink           9
       bDelay                  0 frames
       wFormatTag           8193 IEC1937_AC-3
     AudioStreaming Interface Descriptor:
       bLength                11
       bDescriptorType        36
       bDescriptorSubtype      2 (FORMAT_TYPE)
       bFormatType             3 (FORMAT_TYPE_III)
       bNrChannels             2
       bSubframeSize           2
       bBitResolution         16
       bSamFreqType            1 Discrete
       tSamFreq[ 0]        48000
     Endpoint Descriptor:
       bLength                 9
       bDescriptorType         5
       bEndpointAddress     0x03  EP 3 OUT
       bmAttributes            9
         Transfer Type            Isochronous
         Synch Type               Adaptive
         Usage Type               Data
       wMaxPacketSize     0x00c0  1x 192 bytes
       bInterval               1
       bRefresh                0
       bSynchAddress           0
       AudioControl Endpoint Descriptor:
         bLength                 7
         bDescriptorType        37
         bDescriptorSubtype      1 (EP_GENERAL)
         bmAttributes         0x01
           Sampling Frequency
         bLockDelayUnits         2 Decoded PCM samples
         wLockDelay              2 Decoded PCM samples
Reply
#8
@callum

That error message occurs because you didn't run the command as root (sudo lsusb ...). The effect of not accessing the device is pretty harmless. In my example, I lose two identification strings in the first stanza:

Code:
 idVendor           0x041e Creative Technology, Ltd
 idProduct          0x3125
 bcdDevice            1.00
 iManufacturer           0
 iProduct                2 Creative Bluetooth Audio W2  <-- this becomes just "2"
 iSerial                 3 0075FDAE003C0002             <-- and this just "3"

At a glance, it seems udev did its job. You should see the results in the list of cards output of aplay -L. Again, for my example

Code:
pi@moodeHS:~ $ aplay -L|more
null
   Discard all samples (playback) or generate zero samples (capture)
btaplay_dmix
alsaequal
plug_alsaequal
btstream
crossfeed
plug_bs2b
eqfa4p
plug_eqfa4p
invpolarity
default
sysdefault:CARD=W2
   Creative Bluetooth Audio W2, USB Audio
   Default Audio Device
front:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   Front speakers
surround21:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   4.0 Surround output to Front and Rear speakers
surround41:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   Direct sample mixing device
dsnoop:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   Direct sample snooping device
hw:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   Direct hardware device without any conversions
plughw:CARD=W2,DEV=0
   Creative Bluetooth Audio W2, USB Audio
   Hardware device with all software conversions


Tim's the master of all things relating to the audio chain. I'm a dilettante and need to mull this one through now that I've got more info.

Regards,
Kent
Reply
#9
(05-26-2019, 01:26 AM)callum Wrote: I did steps 1 through 4, but there were still no options in the device menu.

That indicates a broken installation. Try a fresh image :-)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#10
Haha, that solved it. Easy fix Smile I wouldn't have thought a problem writing the image could have such innocuous consequences.

Thanks for the help Tim and Kurt!
Reply


Forum Jump: