(This only works on 30-pin devices, and will not work with the new Lightning adapters.)
I thought some readers might be interested in how I got digital audio out of my iPad.
The Apple 30-pin to USB (female) adapter, sold as part of the “photo kit” I think, was a wonderful bit of hardware that would allow all kinds of things Apple didn’t intend (ie keyboards and so on.)
I have some Grado headphones, and a little NuForce uDAC that can power them.
To get this to all work together, I’ve plugged the 30-pin adapter into the iPad and a USB A Male to USB B Male cable into a >powered< hub. (Note that the iPad becomes the “computer” to the hub’s one and only B input.)
Then another similar cable goes from the one of the hub’s A sockets into the uDAC’s B socket.
The iPad complains about the setup, but it works just fine, and I’ve enjoyed many hours of quality listening with this odd configuration.
FWIW.
Tracy