I have one of those, it’s a small adapter, and it adds ground loop noises / buzzing when charging… probably because they are made cheaply without proper isolation from the switching power supply.
They used to make docks for iPods that would do both, I would look for that style.