Lines Matching full:card
21 /* monitor sound card, cpe state
27 A thread is spawned to poll() on sound card state files in /proc.
28 On observing a sound card state change, this thread invokes the
64 int card;
124 static int add_new_sndcard(int card, int fd)
131 s->card = card;
137 ALOGV("card %d initial state %s %d", card, state, online);
183 snprintf(path, sizeof(path), "/proc/asound/card%s/state", ptr);
184 ALOGV("Opening sound card state : %s", path);
198 // query cpe state for this card as well
200 snprintf(path, sizeof(path), "/proc/asound/card%s/cpe0_state", ptr);
207 ALOGV("Open cpe state card state %s", path);
210 ALOGW("Open cpe state card state failed, retry : %s", path);
366 ALOGV("card num %d, new state %s", s->card, rd_buf);
368 bool is_cpe = (s->card >= CPE_MAGIC_NUM);
389 // cpe actual card num is (card - MAGIC_NUM). so subtract accordingly
390 snprintf(val, sizeof(val), "%d,%s", s->card - (is_cpe ? CPE_MAGIC_NUM : 0),
478 LOG_ALWAYS_FATAL("unxpected error in card poll fd 0x%x",