OpenWrt Forum Archive

Topic: shairport on openwrt

The content of this topic has been archived between 2 Sep 2014 and 25 Apr 2018. Unfortunately there are posts – most likely complete pages – missing.

Hi all,

I've posted another update to my WRT feed in github.com/mikejuni/OpenWRT-ShairPort, some updates
1. Defaults to ALSA and use ALSA volume mixer instead of software emulation.
2. Added a asound.conf that help disable DMIX which has poor quality in USB audio devices.
3. Added /etc/config/airplay and /etc/init.d/airplay which make use of UCI to config it.

Also fixed compilation for libao in the ShairPort source code. However I don't know how to make those changes required in OpenWRT make file to enable this option in OpenWRT. Anyone who wish to help could submit a patch or a git pull to me.

With these I could lower my OpenWRT shairport build CPU utilization from 40% to 10%, mainly by disabling DMIX and some tuning in calculations.

It should now be as easy as a "add a feed, enable and compile" in OpenWRT with no build dependency errors.

mikejuni wrote:

I'll probably soon add it back after fixing the compile issue with libao which is introduced by Skaman's patch. But I believe most OpenWRT users would need alsa only because they'll be using USB based audio on routers.

Sure, however note that OpenWRT is used on many different devices, not only routers.

Thanks for the input!

grayman4hire wrote:

I went ahead and submitted a request to the entware team to update ShairPort for entware based on @skaman and @mikejuni's update below.

Done! Thank you for a feedback.

ryzhov_al wrote:
grayman4hire wrote:

I went ahead and submitted a request to the entware team to update ShairPort for entware based on @skaman and @mikejuni's update below.

Done! Thank you for a feedback.

Thank you @ryzhov_al!

A couple of questions for @mikejuni and other shairport users.

On the previous build/version of shairport (this is on TomatoUSB), I only needed to run:
shairport -a "Living Room" -b 282

On the latest build based on @mikejuni, I have to use:
shairport -a "Living Room" -b 282 --ao_driver=oss

If I don't specify a ao_driver, I get a "FATAL: Could not find requested ao driver" message.

I fiddled with ao_driver=alsa, but still couldn't get it to work. I couldn't figure out the correct ao_devicename or ao_deviceid to use. Should I bother to figure this out? Am I correct that when I specific ao_driver=oss it actually defaults back to alsa?

Last question, what buffer settings are you using? I thought I read that 282 was recommended or do you use the lowest buffer you can get away with? Thanks

Any recent movement on this.  Tried to build for 12.90-rc1 and just can't seem to get it to work.  The stock shairport "2012-10-20" seems to build, install, and run, but despite running with mDNS support the clients just connect and disconnect; the mikejuni shairport-0.05 seems to crash on startup "Address family not supported by protocol".

Audio is c-media USB and cat /dev/urandom > /dev/audio produces static through the speakers, so at least I know that's working.

loading kmod-ipv6 resolved some of the errors, but still both modules fail.


With the one from trunk I get.
root@OpenWrt:~# /usr/sbin/shairport -a TESTING3 -b 256 -v3
LogLevel: 7
AirName: TESTING3
HWID: ZjN6PF
HWID_Hex(12): 005A6A4E3650
Avahi/DNS-SD started on PID: 1668
Starting connection server: specified server port: 5002
Waiting for clients to connect
Avahi/DNS-SD Name: 005A6A4E3650@TESTING3
Established under name '005A6A4E3650@TESTING3'
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect

With Mikejuni I get.
...

----Send Response Header----
Waiting To Read...
ALSA: Sample rate gotten 44100
ALSA: Use ALSA Mixer rather than soft manupulating volume
/usr/bin/shairport: simple.c: 282: snd_mixer_selem_get_playback_volume_range: Assertion `elem' failed.
Read -1 of data so far

Error reading data from socket, got: -1 bytesError reading from socket, closing client
Waiting for clients to connect

Any ideas?

UPDATE: I was able to do a

make package/shairport/prepare

diable alsa mixing in the Makefile, compile and install and the mikejuni version now works.

Went back and did more testing with the mikejuni package that was bombing out.

If using the mikejuni package and getting the "/usr/bin/shairport: simple.c: 282: snd_mixer_selem_get_playback_volume_range: Assertion `elem' failed.".  Install alsa-utils and fire up alsamixer, look at the control for the volume and change option volume '<VALUE>' in my case it was option volume 'PCM'.  This allowed it to start and run normally.

I have a feeling trunk shairport just won't work correctly on AA 12.09-rc1 because of library mismatches, I have a custom build that I will be working on shortly, so I can test that theory as well.  I might try and pull out the package and build it with the older trunk feed to see if that makes a difference.

brontide wrote:

Went back and did more testing with the mikejuni package that was bombing out.

If using the mikejuni package and getting the "/usr/bin/shairport: simple.c: 282: snd_mixer_selem_get_playback_volume_range: Assertion `elem' failed.".  Install alsa-utils and fire up alsamixer, look at the control for the volume and change option volume '<VALUE>' in my case it was option volume 'PCM'.  This allowed it to start and run normally.

I have a feeling trunk shairport just won't work correctly on AA 12.09-rc1 because of library mismatches, I have a custom build that I will be working on shortly, so I can test that theory as well.  I might try and pull out the package and build it with the older trunk feed to see if that makes a difference.

I have the same problem with mikejuni's package when i use a USB PCM2706 DAC, after changing option volume to 'PCM' it works.

And the problem i still have is the volume control by ios devices or itunes, it doesn't change the volume smoothly but like "non-linear", by each click of the volume '+' or '-' it will increase or decrease the volume by about 50%(i have observed the volume change by perform the command 'alsamixer' and it shows on the ssh terminal...).

So when i want to max the volume i only need click 4 or 5 time, and from max volume to almost mute also need only 4-5 clicks...

brontide wrote:

loading kmod-ipv6 resolved some of the errors, but still both modules fail.


With the one from trunk I get.
root@OpenWrt:~# /usr/sbin/shairport -a TESTING3 -b 256 -v3
LogLevel: 7
AirName: TESTING3
HWID: ZjN6PF
HWID_Hex(12): 005A6A4E3650
Avahi/DNS-SD started on PID: 1668
Starting connection server: specified server port: 5002
Waiting for clients to connect
Avahi/DNS-SD Name: 005A6A4E3650@TESTING3
Established under name '005A6A4E3650@TESTING3'
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect

With Mikejuni I get.
...

----Send Response Header----
Waiting To Read...
ALSA: Sample rate gotten 44100
ALSA: Use ALSA Mixer rather than soft manupulating volume
/usr/bin/shairport: simple.c: 282: snd_mixer_selem_get_playback_volume_range: Assertion `elem' failed.
Read -1 of data so far

Error reading data from socket, got: -1 bytesError reading from socket, closing client
Waiting for clients to connect

Any ideas?


I have the same problem with the trunk version, but I don't know how to fix it...

root@OpenWrt:/usr/bin# shairport -b 256 -vv
LogLevel: 7
AirName: ShairPort
HWID: aK_;Kf
HWID_Hex(12): 00614B5F3B4B
Avahi/DNS-SD started on PID: 2044
Starting connection server: specified server port: 5002
Failed to create ipv6 socket. Trying ipv4: Address family not supported by protocol
Waiting for clients to connect
Avahi/DNS-SD Name: 00614B5F3B4B@ShairPort
Established under name '00614B5F3B4B@ShairPort'
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect

lyf86822 wrote:
brontide wrote:

loading kmod-ipv6 resolved some of the errors, but still both modules fail.


With the one from trunk I get.
root@OpenWrt:~# /usr/sbin/shairport -a TESTING3 -b 256 -v3
LogLevel: 7
AirName: TESTING3
HWID: ZjN6PF
HWID_Hex(12): 005A6A4E3650
Avahi/DNS-SD started on PID: 1668
Starting connection server: specified server port: 5002
Waiting for clients to connect
Avahi/DNS-SD Name: 005A6A4E3650@TESTING3
Established under name '005A6A4E3650@TESTING3'
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect

With Mikejuni I get.
...

----Send Response Header----
Waiting To Read...
ALSA: Sample rate gotten 44100
ALSA: Use ALSA Mixer rather than soft manupulating volume
/usr/bin/shairport: simple.c: 282: snd_mixer_selem_get_playback_volume_range: Assertion `elem' failed.
Read -1 of data so far

Error reading data from socket, got: -1 bytesError reading from socket, closing client
Waiting for clients to connect

Any ideas?


I have the same problem with the trunk version, but I don't know how to fix it...

root@OpenWrt:/usr/bin# shairport -b 256 -vv
LogLevel: 7
AirName: ShairPort
HWID: aK_;Kf
HWID_Hex(12): 00614B5F3B4B
Avahi/DNS-SD started on PID: 2044
Starting connection server: specified server port: 5002
Failed to create ipv6 socket. Trying ipv4: Address family not supported by protocol
Waiting for clients to connect
Avahi/DNS-SD Name: 00614B5F3B4B@ShairPort
Established under name '00614B5F3B4B@ShairPort'
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect


I think the latest commit has fixed this problem. Here is the link. https://github.com/abrasive/shairport/commit/b61faf1edc7823738e508519e6636fd4506774f3
Can someone update the trunk version? Thanks a lot!

(Last edited by lyf86822 on 16 Jun 2013, 06:03)

hi,xurxo,did you build shairport successfully?I met the same problem as you,want your reply,TKS

Hi,all.
When I run  /etc/init.d/dbus start, it outputs "Unknown group "netdev" in message bus configuration file".Anyone met this problem?I google this information,I am told this will not be harmful. Then I run the following: avahi-daemon -D,shairport -a 'Living Room' -b 282 -d,all run perfectly.I can find itunes appear "Living Room" in Airplay,but when press "Living Room" to play music,error is produced "15000".I run ps,all is OK:
2944 root      1704 S    /usr/sbin/dbus-daemon --system
2949 nobody    2180 S    avahi-daemon: running [OpenWrt.local]
2951 root      2568 S    shairport -a Living Room -b 282 -d
2952 root      1628 S    avahi-publish-service 00662F55622F@Living Room _raop

Anyone knows how to solve this problem?

Thanks

grayman4hire wrote:
FullOpen wrote:

Hi,all.
When I run  /etc/init.d/dbus start, it outputs "Unknown group "netdev" in message bus configuration file".Anyone met this problem?I google this information,I am told this will not be harmful. Then I run the following: avahi-daemon -D,shairport -a 'Living Room' -b 282 -d,all run perfectly.I can find itunes appear "Living Room" in Airplay,but when press "Living Room" to play music,error is produced "15000".I run ps,all is OK:
2944 root      1704 S    /usr/sbin/dbus-daemon --system
2949 nobody    2180 S    avahi-daemon: running [OpenWrt.local]
2951 root      2568 S    shairport -a Living Room -b 282 -d
2952 root      1628 S    avahi-publish-service 00662F55622F@Living Room _raop

Anyone knows how to solve this problem?

Thanks

Who's build are you using? If you use Mikejuni's package/Makefile it will autostart shairport properly.

because of wr703n's small flash:4M, I opkg install shairport from openwrt,I think it should be Mikejuni's,any suggestion to solve it? thanks for your quick reply

I opkg madplay,and play music,it is perfect.I think the module needed will be no problem.
Is it dbus problem?When google dbus,it need dhcdbg module to control dbus dhcp host
,is that really true?

Maybe someone tried to run mikejuni version of shairport on current developer version of OpenWRT (Barrier Breaker)?
I also get this "Error: Unable to accept connection to server socket: Bad address" message. Maybe someone knows what is wrong?

TP-LINK MR3020 sta mode (wireless) interference.

Hi, everyone

OpenWRT Version: Attitude Adjustment , r38863
Shairport Fork: https://github.com/sm3rt/OpenWRT-ShairPort

I have compiled Shairport with the latest Attitude Adjustment and all is working well apart from one small problem that has me pulling my hair out for a week.

When I have my MR3020 connected directly to another access point in my network and have shairport streaming through its ethernet port I have (near) perfect audio.

When I switch to STA mode and connect my MR3020 as a client over wireless I start to have small POP´s, clicks and background noise / interference.

After a week of digging around I have come to the conclusion that it is radio wave interference caused by the internal aerial, or lack of one. Is any one able to confirm simular results?

I am using ALSA to direct Shairports output directly to the USB DAC:

asound.conf

pcm.!default {
  type plug
  slave.pcm "hw:0,0"
}

Shairport is up and running correctly with config:

config airplay
    option bname 'Numbnuts'
    option initbuf 300
    option daemonize true

USB DAC status is consistent when connected through wireless client or through ethernet. I was originally hoping that it was some sort of resampling going on when connected through wireless.

#cat /proc/asound/card0/stream0

C-Media Electronics Inc. USB PnP Sound Device at usb-ehci-platform-1, full spee : USB Audio

Playback:
  Status: Running
    Interface = 1
    Altset = 1
    URBs = 2 [ 1 1 ]
    Packet Size = 200
    Momentary freq = 44100 Hz (0x2c.199a)
  Interface 1
    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 1 OUT (ADAPTIVE)
    Rates: 48000, 44100

Capture:
  Status: Stop
  Interface 2
    Altset 1
    Format: S16_LE
    Channels: 1
    Endpoint: 2 IN (ADAPTIVE)
    Rates: 48000, 44100
#cat /proc/asound/card0/pcm0p/sub0/status

state: RUNNING
owner_pid   : 949
trigger_time: 6835.421757873
tstamp      : 10366.601723231
delay       : 65536
avail       : 44
avail_max   : 55372
-----
hw_ptr      : 155723604
appl_ptr    : 155789096

Shairport Running with wireless connection

#shairport ... -vv

Failed to bind to address ::
Bound to address 0.0.0.0
avahi: avahi_register
avahi: register_service
Listening for connections.
culling threads.
new RTSP connection
received request: ANNOUNCE rtsp://192.168.10.102/3468496320 RTSP/1.0
    CSeq: 1
    Content-Type: application/sdp
    Content-Length: 574
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 1626069284
sending response: RTSP/1.0 200 OK
    CSeq: 1
    Audio-Jack-Status: connected; type=analog
received request: SETUP rtsp://192.168.10.102/3468496320 RTSP/1.0
    CSeq: 2
    Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=6001;timing_port=6002
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 1626069284
rtp_setup: cport=6001 tport=6002
rtp listening on port 43915
sending response: RTSP/1.0 200 OK
    CSeq: 2
    Audio-Jack-Status: connected; type=analog
    Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=6001;timing_port=6002;server_port=43915
    Session: 1
received request: RECORD rtsp://192.168.10.102/3468496320 RTSP/1.0
    CSeq: 3
    Session: 1
    Range: npt=0-
    RTP-Info: seq=46817;rtptime=748372815
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 1626069284
sending response: RTSP/1.0 200 OK
    CSeq: 3
    Audio-Jack-Status: connected; type=analog
received request: SET_PARAMETER rtsp://192.168.10.102/3468496320 RTSP/1.0
    CSeq: 4
    Session: 1
    Content-Type: text/parameters
    Content-Length: 20
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 1626069284
volume: -13.500604
sending response: RTSP/1.0 200 OK
    CSeq: 4
    Audio-Jack-Status: connected; type=analog
received request: SET_PARAMETER rtsp://192.168.10.102/3468496320 RTSP/1.0
    CSeq: 5
    Session: 1
    Content-Type: text/parameters
    Content-Length: 20
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 1626069284
volume: -13.500604
sending response: RTSP/1.0 200 OK
    CSeq: 5
    Audio-Jack-Status: connected; type=analog
syncing to first seqno B6E1
buffering over. starting play
WARNING: requesting resend on 2 packets (B86F:B870)
established desired fill of 298.965000 frames, so output chain buffered about 1.035000 frames
received request: OPTIONS * RTSP/1.0
    CSeq: 6
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 1626069284
sending response: RTSP/1.0 200 OK
    CSeq: 6
    Audio-Jack-Status: connected; type=analog
    Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER
+++++++++
+++++++++
.........

Shairport Running with wired connection

#shairport ... -vv

Failed to bind to address ::
Bound to address 0.0.0.0
avahi: avahi_register
avahi: register_service
Listening for connections.
culling threads.
new RTSP connection
received request: OPTIONS * RTSP/1.0
    CSeq: 1
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 3022224022
    Apple-Challenge: 2SIjBWArEnXtMGSL8S9yHQ
sending response: RTSP/1.0 200 OK
    Apple-Response: AK86+xIYj4Pmn5KOnZ2YokfMlhjQrSr9A0qIGPHIgIQpXaUxru6Unm1eGkH/oP3eF66ywN3JGtcRpCRYLEIdlPDanwdSczZUhlTLyNNUFkkbFLJLs/mel8ERYd6UaurkrY70ci1pVL1ZvMXDoAjpP59VzncybKPmlZPtScI0m3djNT9kS6v+jzj87woHfPCnB/iXFhDauMZY7gv84LWXTVuu1bpV8ru41mduJFxmv71TZMxtlaULtqdMEXr+RIuStZLaeP5ZUzGLMYV61NKEmVGG4BefbPX2TGb+mmD1+XRt2ZSyUMoHhZzpzqtzS5ujZdehkSInGrmcx4lyI4Ye3g
    CSeq: 1
    Audio-Jack-Status: connected; type=analog
    Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER
RTSP connection closed
closing RTSP connection
terminating RTSP thread
culling threads.
one joined
new RTSP connection
received request: ANNOUNCE rtsp://192.168.10.102/3468498685 RTSP/1.0
    CSeq: 1
    Content-Type: application/sdp
    Content-Length: 573
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 3022224022
sending response: RTSP/1.0 200 OK
    CSeq: 1
    Audio-Jack-Status: connected; type=analog
received request: SETUP rtsp://192.168.10.102/3468498685 RTSP/1.0
    CSeq: 2
    Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=6001;timing_port=6002
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 3022224022
rtp_setup: cport=6001 tport=6002
rtp listening on port 53127
sending response: RTSP/1.0 200 OK
    CSeq: 2
    Audio-Jack-Status: connected; type=analog
    Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=6001;timing_port=6002;server_port=53127
    Session: 1
received request: RECORD rtsp://192.168.10.102/3468498685 RTSP/1.0
    CSeq: 3
    Session: 1
    Range: npt=0-
    RTP-Info: seq=27452;rtptime=3269296137
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 3022224022
sending response: RTSP/1.0 200 OK
    CSeq: 3
    Audio-Jack-Status: connected; type=analog
received request: SET_PARAMETER rtsp://192.168.10.102/3468498685 RTSP/1.0
    CSeq: 4
    Session: 1
    Content-Type: text/parameters
    Content-Length: 20
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 3022224022
volume: -13.500604
sending response: RTSP/1.0 200 OK
    CSeq: 4
    Audio-Jack-Status: connected; type=analog
received request: SET_PARAMETER rtsp://192.168.10.102/3468498685 RTSP/1.0
    CSeq: 5
    Session: 1
    Content-Type: text/parameters
    Content-Length: 20
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 3022224022
volume: -13.500604
sending response: RTSP/1.0 200 OK
    CSeq: 5
    Audio-Jack-Status: connected; type=analog
syncing to first seqno 6B3C
buffering over. starting play
established desired fill of 297.843000 frames, so output chain buffered about 2.157000 frames
received request: OPTIONS * RTSP/1.0
    CSeq: 6
    User-Agent: iTunes/11.1.3 (Windows; Microsoft Windows 7 x64 Home Premium Edition (Build 7600)) AppleWebKit/536.30.1
    Client-Instance: 76E89ACF4B76D5FF
    DACP-ID: 76E89ACF4B76D5FF
    Active-Remote: 3022224022
sending response: RTSP/1.0 200 OK
    CSeq: 6
    Audio-Jack-Status: connected; type=analog
    Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER
+++++++++
+++++++++
+++++++++
.........

I am still hoping I am able to still fix this through configurations. If anyone can shed any light on this would be much appreciated

Thanks in advance

Jack

(Last edited by BURR on 28 Nov 2013, 16:59)

I'm having the exact same issue as BURR.  popping and clicking can be heard on playback.  Downloaded everything yesterday and compiled Attitude Adjustment.

Figured out my problem.

If I plug a small USB hub in between my WR703 and the soundcard or DAC it works fine.  Must be some compatibility issue with the WR703 and DAC, but it's working now.

Hi Rickg

You need to use a USB 2.0 sound card, this is not the cause of my problem. (The mr3020 is not USB 1 compatible)

I have updated my Shiarport again to fix the logging of 'resend packet' requests as on the shairport github. It has really sorted a lot of the crackling out but every now and then I get a really big pop or crack. I have complied shairport on a few other routers and all seem to work perfectly.

I am going to try and connect a 120uF capacitor on the Vbus of the USB to see of it is voltage spiking that is causing the issues. It could be the source of the problem because it makes similar popping/crackling when I hot plug the DAC.

If anyone else can share their experience would be greatly appreciated

BURR wrote:

Hi Rickg

You need to use a USB 2.0 sound card, this is not the cause of my problem. (The mr3020 is not USB 1 compatible)

I have updated my Shiarport again to fix the logging of 'resend packet' requests as on the shairport github. It has really sorted a lot of the crackling out but every now and then I get a really big pop or crack. I have complied shairport on a few other routers and all seem to work perfectly.

I am going to try and connect a 120uF capacitor on the Vbus of the USB to see of it is voltage spiking that is causing the issues. It could be the source of the problem because it makes similar popping/crackling when I hot plug the DAC.

If anyone else can share their experience would be greatly appreciated

I use github.com/sm3rt/OpenWRT-ShairPort.git to buid shariplay in BB. it is done.
but when i run etc/init.d/airplay, it show like this:

root@Openwrt:/etc/init.d# /etc/init.d/airplay start
WARNING: couldn't create avahi client: Daemon not running!
Listening for connections.
6989
root@Openwrt:/etc/init.d# Failed to create client object: Daemon not running
FATAL: MDNS child process died unexpectedly!
Shutting down...

Hi all,
i have an old Problem running shairport (Version from 2012-10-20)
It runs on a Arduino Yun.

LogLevel: 7
AirName: Yun6
HWID: Oe,M>
HWID_Hex(12): 004F652C4D3E
Avahi/DNS-SD started on PID: 24140
Starting connection server: specified server port: 5002
Waiting for clients to connect
Avahi/DNS-SD Name: 004F652C4D3E@Yun6
Established under name '004F652C4D3E@Yun6'
Error: Unable to accept connection to server socket: Bad address
Waiting for clients to connect

If i am right, the Problem belongs to an IPv6 issue.
The issue is may solved now by fixing the IPv6 problems.
BUT i am not able to compile the new Version because the arduino yun ist to small for an enviroment like gcc.
If somebody has solved the issue pleas let me know and may someone is able to bring it into the linino downloads?
Or is there a way of crosscompiling (openwrt sdk)?

regards, thomas

stevo wrote:

Got it to work by adding a policy for avahi in the dbus configuration.

what did you add exactly? I have a similar problem, see https://forum.openwrt.org/viewtopic.php?pid=224863#p224863
edit: found the solution, see other topic

(Last edited by dddesign on 11 Feb 2014, 21:33)

I think I finally fixed my popping issue on the WR703.  Today I found there is a patch for a USB 1.1 reset.  I was getting a huge number of resend errors along with popping.  After installing this version it's as solid as a rock.  The version of 703 I have, has an upgraded flash as well as memory from SLboat.   I assume this patch will work on a standard WR703 with attitude adjustment, but have not tired it.

requesting resend on 1 packets (port 6001)

https://github.com/SLboat/Openwrt_12.09_r36088-USB11_RESET_PATCH

Hope it helps someone who is having this issue.

(Last edited by rickg on 25 Feb 2014, 16:28)