You are not logged in.

#1 2014-12-21 08:41:17

yepyang
Member
Registered: 2011-03-01
Posts: 62

usb dac problem!

I had purchase ps audio nuwave dac!i want play music via usb!but got no sound via usb!anyone could help to troubleshooting?

snd_hda_codec_hdmi     45117  1 
snd_hda_codec_realtek    67127  1 
snd_hda_codec_generic    63126  1 snd_hda_codec_realtek
snd_usb_audio         135316  1 
snd_usbmidi_lib        27484  1 snd_usb_audio
snd_rawmidi            26806  1 snd_usbmidi_lib
snd_seq_device         13132  1 snd_rawmidi
snd_hda_intel          26327  5 
snd_hda_controller     26727  1 snd_hda_intel
snd_hda_codec         108552  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              17244  2 snd_usb_audio,snd_hda_codec
snd_pcm                88487  6 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26614  1 snd_pcm
snd                    73436  23 snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
Bus 004 Device 004: ID 2616:0102  
# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:
**** List of PLAYBACK Hardware Devices ****
card 0: P20 [PS AudioUSB Audio 2.0], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC898 Analog [ALC898 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC898 Digital [ALC898 Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  index: 2
	name: <alsa_card.usb-PS_Audio_PS_AudioUSB_Audio_2.0_0000-00-P20>
	driver: <module-alsa-card.c>
	owner module: 8
	properties:
		alsa.card = "0"
		alsa.card_name = "PS AudioUSB Audio 2.0"
		alsa.long_card_name = "PS Audio PS AudioUSB Audio 2.0 at usb-0000:00:1d.0-1.4, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:1d.0-usb-0:1.4:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.4/4-1.4:1.0/sound/card0"
		udev.id = "usb-PS_Audio_PS_AudioUSB_Audio_2.0_0000-00-P20"
		device.bus = "usb"
		device.vendor.id = "2616"
		device.vendor.name = "PS Audio"
		device.product.id = "0102"
		device.product.name = "PS AudioUSB Audio 2.0"
		device.serial = "PS_Audio_PS_AudioUSB_Audio_2.0_0000"
		device.string = "0"
		device.description = "PS AudioUSB Audio 2.0"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	profiles:
		output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo>
	sinks:
		alsa_output.usb-PS_Audio_PS_AudioUSB_Audio_2.0_0000-00-P20.analog-stereo/#1: PS AudioUSB Audio 2.0 Analog Stereo
	sources:
		alsa_output.usb-PS_Audio_PS_AudioUSB_Audio_2.0_0000-00-P20.analog-stereo.monitor/#1: Monitor of PS AudioUSB Audio 2.0 Analog Stereo
	ports:
		analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:

Last edited by yepyang (2014-12-21 08:53:51)

Offline

#2 2014-12-21 18:11:57

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,665

Re: usb dac problem!

I would suggest a tool such as pavucontrol.  It has drop down menus to let you set the output device, to see if channels are muted, and to see if data are actually reaching the channels through audio level indicators.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2014-12-22 05:54:06

yepyang
Member
Registered: 2011-03-01
Posts: 62

Re: usb dac problem!

HI ewaller,
    Thanks for reply!already had try pavucontrol!seems can not work!any other suggestion?Thanks!

Offline

#4 2014-12-22 06:45:59

yepyang
Member
Registered: 2011-03-01
Posts: 62

Re: usb dac problem!

seems my problem is this,but could anyone tell me how to rest?below link,Thanks!

Offline

#5 2014-12-22 14:50:51

yepyang
Member
Registered: 2011-03-01
Posts: 62

Re: usb dac problem!

already use above source to complie out,follow below command:

/* usbreset -- send a USB port reset to a USB device */

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>

#include <linux/usbdevice_fs.h>


int main(int argc, char **argv)
{
    const char *filename;
    int fd;
    int rc;

    if (argc != 2) {
        fprintf(stderr, "Usage: usbreset device-filename\n");
        return 1;
    }
    filename = argv[1];

    fd = open(filename, O_WRONLY);
    if (fd < 0) {
        perror("Error opening output file");
        return 1;
    }

    printf("Resetting USB device %s\n", filename);
    rc = ioctl(fd, USBDEVFS_RESET, 0);
    if (rc < 0) {
        perror("Error in ioctl");
        return 1;
    }
    printf("Reset successful\n");

    close(fd);
    return 0;
}

save above code with file usebreset.c
type below commands:

cc usbreset.c -o usbreset

lsusb

Bus 006 Device 004: ID 2616:0102  
chmod +x usbreset

Execute the program with sudo privilege; make necessary substitution for <Bus> and <Device> ids as found by running the lsusb command:

sudo ./usbreset /dev/bus/usb/006/004  

after above can reset the usb port!but for my case~still no sound!anyone got any idea?Thanks!

Offline

#6 2014-12-27 21:47:27

yepyang
Member
Registered: 2011-03-01
Posts: 62

Re: usb dac problem!

Update:problem is had identified!is need to make sure enable the dac channel,use below command

alsamixer -Dhw

Select your USB card(in this case is PS AudioClock Selector and PS AudioClock Selector 1)  if needed (F6) Check the bottom of the displayed meter to be OO (open). In case MM is displayed, hit the M key.

Offline

Board footer

Powered by FluxBB