a7xelte: amplifier: Fix pcm_open fail case
authorChristopher N. Hesse <raymanfx@gmail.com>
Mon, 27 Aug 2018 06:55:39 +0000 (08:55 +0200)
committerSourajit Karmakar <sourajit.karmakar@gmail.com>
Tue, 7 Jul 2020 14:51:36 +0000 (10:51 -0400)
commit54d3eb5c0e37453369154f7ce7ceaf4f851259b4
tree8a845d4dacfc4cf7f8a9c1482e72d62a3dfae472
parenta4f97214214f5f31a5361a7c3eb58d0e55148a58
a7xelte: amplifier: Fix pcm_open fail case

By default, we try to open card 0 devive 0 to play dummy audio which in
turn enables the amplifier IC clocks for us.

However, in some cases card 0 device 0 is already used when trying to
enable the amplifier - catch this case and avoid a watchdog bite.

Change-Id: I8eb5dc39fd289d0883df1bf71c31024cc3fbe358
amplifier/tfa.c