Indiana's law, which passed with bipartisan support, forbids students from using wireless communication devices during instructional time. There are exceptions for educational purposes, emergencies and students who need their phones for medical or disability reasons. It's up to schools to come up with their own discipline procedures for violations.
...
Phones aren't only a distraction from academics; educators and students say they've also driven interpersonal conflicts and contributed to poor mental health.
...
Students typically use their phones to listen to music, but that's no longer allowed during instructional time in Indiana. Grace says music helped her stay focused during quiet work time at school. Without it, she says, she's struggling to concentrate.
You can still use an MP3 player if you absolutely must have music, although I've never heard of a teacher allowing students to listen to music during class in the 40+ years that that's been a possibility.