The ability to get device space audio fails on iOS 15.1

When I use the following API to get device space audio capability, It always return NO on iOS15.1, YES is returned only after the state is played and MPRemoteCommand is set. That was true before iOS15.1.

if (@available(iOS 15.0, *)) {

        NSArray<AVAudioSessionPortDescription *> *outputs = [AVAudioSession sharedInstance].currentRoute.outputs;

        if (outputs.count > 0) {

            AVAudioSessionPortDescription *portDescription = [outputs objectAtIndex:0];

            NSString *log = [NSString stringWithFormat:@"portType:%@,portName:%@,isSpatialEnabled:%d",portDescription.portType,portDescription.portName,portDescription.isSpatialAudioEnabled];

            NSLog(@"%@",log);

        }

    }

The ability to get device space audio fails on iOS 15.1
 
 
Q